/* DexHaul card grader UI (Board 2026-11-06). Loads after blog.css + pokedex.css (site tokens);
   every rule is scoped under #grader-app (or a .gr- class) so nothing leaks into the page.
   Look: the site's navy/yellow theme, rounded white cards, Fredoka headings, Archivo display
   numbers, DM Mono labels. Mobile first; works from 320px. */
#grader-app { --gr-navy: var(--navy, #10194f); --gr-navy-2: var(--navy-2, #1a2566); --gr-yel: var(--yellow, #ffcb05);
  --gr-red: var(--red-dark, #b7280a); --gr-blue: var(--blue, #3b4cca); --gr-ink: var(--ink, #171b2d); --gr-slate: var(--slate, #5c6378);
  --gr-line: var(--line, #e4e8f4); --gr-bg: var(--bg, #f5f7fc); --gr-ring: 0 0 0 3px rgba(59, 76, 202, .3);
  --gr-good: #15803d; --gr-fair: #b45309; --gr-poor: #c22a0a;
  --gr-disp: Archivo, "Arial Narrow", var(--head, system-ui), sans-serif; --gr-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gr-head: var(--head, "Fredoka", "Nunito", system-ui, sans-serif); --gr-body: var(--body, "Nunito", system-ui, sans-serif);
  display: block; margin: 0 0 32px; color: var(--gr-ink); font-family: var(--gr-body); }
#grader-app *, #grader-app *::before, #grader-app *::after { box-sizing: border-box; }
#grader-app :focus-visible { outline: 3px solid var(--gr-blue); outline-offset: 2px; }
/* visually hidden, screen-reader only. clip-path + inset pin the 1px box to its containing block's corner, so it
   can never sit at its static position far to the right and widen the page (the care-kit rail did: +1,000px on phones) */
#grader-app .gr-sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
#grader-app .gr-ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
#grader-app [hidden] { display: none !important; }
#grader-app .gr-screen { display: flex; flex-direction: column; gap: 16px; }
#grader-app .gr-screen:focus { outline: none; }

/* ---------- panels + type ---------- */
#grader-app .gr-panel { position: relative; background: #fff; border: 1px solid var(--gr-line); border-radius: 16px;
  box-shadow: 0 2px 10px -6px rgba(16, 25, 79, .25); padding: 18px 16px; min-width: 0; }
#grader-app .gr-kicker { margin: 0 0 6px; font: 500 12px/1.3 var(--gr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gr-slate); }
#grader-app .gr-h2 { margin: 0 0 10px; font: 600 clamp(24px, 5.4vw, 34px)/1.12 var(--gr-head); color: var(--gr-navy); }
#grader-app .gr-h2:focus { outline: none; }
#grader-app .gr-h3 { margin: 0 0 10px; font: 600 20px/1.2 var(--gr-head); color: var(--gr-navy); }
#grader-app .gr-h3 small { font: 500 12px var(--gr-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gr-slate); margin-left: 6px; }
#grader-app .gr-lede { margin: 0 0 14px; font-size: 16.5px; line-height: 1.55; color: var(--gr-ink); max-width: 44em; }
#grader-app .gr-sub { margin: 6px 0 12px; font-size: 14px; color: var(--gr-slate); }
#grader-app .gr-note { margin: 12px 0 0; font-size: 14px; color: var(--gr-slate); }
#grader-app .gr-disc { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--gr-slate); }
#grader-app p { overflow-wrap: anywhere; }

/* ---------- buttons ---------- */
#grader-app .gr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 20px; border: 0; border-radius: 999px; font: 800 15px/1.15 var(--gr-body); text-align: center;
  text-decoration: none; cursor: pointer; background: #fff; color: var(--gr-navy); transition: filter .15s, transform .15s, background .15s; }
#grader-app .gr-btn:hover { filter: brightness(1.07); }
#grader-app .gr-btn:active { transform: translateY(1px); }
#grader-app .gr-btn[disabled] { opacity: .55; cursor: progress; }
#grader-app .gr-btn-red { background: var(--gr-red); color: #fff; }
#grader-app .gr-btn-red:hover { background: #8f1f07; filter: none; }
#grader-app .gr-btn-blue { background: var(--gr-blue); color: #fff; }
#grader-app .gr-btn-blue:hover { background: var(--blue-dark, #2c3aa0); filter: none; }
#grader-app .gr-btn-line { background: #fff; color: var(--gr-navy); box-shadow: inset 0 0 0 2px var(--gr-navy); }
#grader-app .gr-btn-ghost { background: var(--gr-bg); color: var(--gr-navy); box-shadow: inset 0 0 0 1px var(--gr-line); }
#grader-app .gr-btn-lg { min-height: 54px; padding: 12px 28px; font-size: 16.5px; }
#grader-app .gr-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
#grader-app .gr-ctas .gr-btn { flex: 1 1 auto; }
#grader-app .gr-link { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--gr-blue); font: 800 14.5px var(--gr-body);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#grader-app .gr-file { position: relative; overflow: hidden; }
#grader-app .gr-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
#grader-app .gr-file:focus-within { outline: 3px solid var(--gr-blue); outline-offset: 2px; }
@media (min-width: 560px) { #grader-app .gr-ctas .gr-btn { flex: 0 1 auto; } }

/* ---------- intro (navy hero, the price guide's dot screen) ---------- */
#grader-app .gr-hero { background-color: var(--gr-navy); color: #fff; border: 0; border-bottom: 5px solid var(--gr-yel); overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.6px); background-size: 14px 14px; padding: 22px 18px 24px; }
#grader-app .gr-hero .gr-kicker { color: var(--gr-yel); }
#grader-app .gr-hero .gr-h2 { color: #fff; font-size: clamp(27px, 6vw, 42px); max-width: 18em; }
#grader-app .gr-hero .gr-lede { color: #d6d9ee; }
#grader-app .gr-how { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px; }
#grader-app .gr-hero .gr-how + .gr-ctas { margin-top: 28px; }   /* clear space between the 3 steps and the button */
#grader-app .gr-how li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #fff; }
#grader-app .gr-how span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
  border-radius: 50%; background: var(--gr-yel); color: var(--gr-navy); font: 900 16px var(--gr-disp); }
#grader-app .gr-hero .gr-btn-red { background: var(--gr-yel); color: var(--gr-navy); }
#grader-app .gr-hero .gr-btn-red:hover { background: #ffd83d; }
#grader-app .gr-hero :focus-visible { outline-color: #fff; }
#grader-app .gr-privacy { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 700; font-size: 14.5px; color: var(--gr-good); }
#grader-app .gr-hero .gr-privacy { color: #b8f5c8; }
#grader-app .gr-free { margin: 8px 0 0; font: 500 13px var(--gr-mono); letter-spacing: .02em; color: var(--gr-slate); }
#grader-app .gr-hero .gr-free { color: #c9cde6; }
#grader-app .gr-free-on { display: flex; align-items: center; gap: 6px; }
@media (min-width: 720px) {
  #grader-app .gr-hero { padding: 34px 36px 34px; }
  #grader-app .gr-how { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 26px; }
}

/* ---------- tips ---------- */
#grader-app .gr-tips { display: grid; gap: 14px; align-items: center; }
#grader-app .gr-art { width: 100%; max-width: 260px; height: auto; display: block; border-radius: 14px; }
#grader-app .gr-tiplist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
#grader-app .gr-tiplist li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
#grader-app .gr-tiplist li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 4px;
  background: var(--gr-yel); box-shadow: inset 0 0 0 2px var(--gr-navy); }
@media (min-width: 560px) { #grader-app .gr-tips { grid-template-columns: 220px 1fr; } }

/* ---------- capture ---------- */
#grader-app .gr-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
#grader-app .gr-slot { display: flex; flex-direction: column; align-items: center; }
#grader-app .gr-slot-pick { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; cursor: pointer;
  background: var(--gr-bg); border: 2px dashed rgba(16, 25, 79, .22); color: var(--gr-ink); font: inherit; text-align: left; }
#grader-app .gr-slot.is-on .gr-slot-pick { border: 2px solid var(--gr-blue); background: #eef0fd; box-shadow: var(--gr-ring); }
#grader-app .gr-slot.has-shot .gr-slot-pick { border-style: solid; }
#grader-app .gr-slot-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--gr-navy); }
#grader-app .gr-slot-img canvas { max-width: 100%; max-height: 100%; display: block; }
#grader-app .gr-slot-art { width: 100%; height: 100%; display: block; }
#grader-app .gr-slot-t b { display: block; font: 600 17px var(--gr-head); color: var(--gr-navy); }
#grader-app .gr-slot-t small { display: flex; align-items: center; gap: 4px; font: 500 12px var(--gr-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--gr-slate); }
#grader-app .gr-slot.has-shot .gr-slot-t small { color: #166534; }   /* 6.3:1 on the selected slot's #eef0fd (green #15803d was 4.4:1) */
#grader-app .gr-slot-t small .gr-ic { width: 15px; height: 15px; }
#grader-app .gr-drop { border-radius: 14px; padding: 14px; background: #fff8e1; border: 2px solid #ffe28a; transition: background .15s, border-color .15s; }
#grader-app .gr-drop.is-over { background: #fff1b8; border-color: var(--gr-yel); }
#grader-app .gr-cap-for { margin: 0 0 10px; font-weight: 700; }
#grader-app .gr-drop.is-compact { background: var(--gr-bg); border-color: var(--gr-line); }
#grader-app .gr-drop.is-compact .gr-btn { min-height: 44px; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(16, 25, 79, .3); background: #fff; color: var(--gr-navy); }
#grader-app .gr-ctas-go { margin: 0 0 14px; }
#grader-app .gr-cap-btns { display: grid; gap: 10px; }
#grader-app .gr-drop-hint { margin: 10px 0 0; font-size: 13px; color: var(--gr-slate); text-align: center; }
@media (pointer: coarse) { #grader-app .gr-drop-hint { display: none; } }
@media (min-width: 560px) { #grader-app .gr-cap-btns { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
@media (min-width: 720px) { #grader-app .gr-slots { grid-template-columns: repeat(2, minmax(0, 240px)); } }
#grader-app .gr-notice, #grader-app .gr-warn { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #fff4e5; border: 1px solid #fcd9a8; color: #6b3500; font-size: 14.5px; line-height: 1.45; }
#grader-app .gr-notice .gr-ic, #grader-app .gr-warn .gr-ic { color: #d97706; margin-top: 1px; }


/* ---------- quality gate ---------- */
#grader-app .gr-gate-grid { display: grid; gap: 16px; align-items: start; }
#grader-app .gr-gate-photo { border-radius: 12px; overflow: hidden; background: var(--gr-navy); display: flex; justify-content: center; }
#grader-app .gr-gate-photo canvas { max-width: 100%; max-height: 52vh; display: block; }
#grader-app .gr-issues { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
#grader-app .gr-issue { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff4e5; border: 1px solid #fcd9a8; color: #5c2d00; line-height: 1.45; }
#grader-app .gr-issue .gr-ic { color: #d97706; margin-top: 1px; }
#grader-app .gr-issue b { display: block; color: #3d1d00; }
#grader-app .gr-gate-meters { display: grid; gap: 10px; }
#grader-app .gr-mrow { display: grid; grid-template-columns: 84px 1fr 72px; align-items: center; gap: 10px; }
#grader-app .gr-mlab, #grader-app .gr-mword { font: 500 12px var(--gr-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--gr-slate); }
#grader-app .gr-mword { color: var(--gr-good); text-align: right; }
#grader-app .gr-mrow.is-bad .gr-mword { color: var(--gr-poor); }
#grader-app .gr-mbar { height: 12px; border-radius: 6px; background: var(--gr-line); overflow: hidden; }
#grader-app .gr-mbar em { display: block; height: 100%; background: #22c55e; border-radius: 6px; }
#grader-app .gr-mrow.is-bad .gr-mbar em { background: #ef4444; }
@media (min-width: 720px) { #grader-app .gr-gate-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- progress ---------- */
#grader-app .gr-progress { text-align: center; padding: 30px 18px; }
#grader-app .gr-spin { display: inline-block; width: 56px; height: 56px; position: relative; margin: 0 auto 12px; }
#grader-app .gr-spin span { position: absolute; inset: 0; border-radius: 50%; border: 5px solid var(--gr-line); border-top-color: var(--gr-red);
  border-right-color: var(--gr-yel); animation: gr-spin .9s linear infinite; }
#grader-app .gr-spin-sm { width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; }
#grader-app .gr-spin-sm span { border-width: 3px; }
@keyframes gr-spin { to { transform: rotate(360deg); } }
#grader-app .gr-plist { list-style: none; margin: 8px auto 16px; padding: 0; display: inline-grid; gap: 6px; text-align: left; }
#grader-app .gr-plist li { position: relative; padding-left: 28px; color: var(--gr-slate); font-weight: 600; }
#grader-app .gr-plist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gr-line); }
#grader-app .gr-plist li.is-now { color: var(--gr-navy); font-weight: 800; }
#grader-app .gr-plist li.is-now::before { border-color: var(--gr-blue); border-top-color: transparent; animation: gr-spin .8s linear infinite; }
#grader-app .gr-plist li.is-done { color: var(--gr-good); }
#grader-app .gr-plist li.is-done::before { background: var(--gr-good); border-color: var(--gr-good);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#grader-app .gr-pbar { height: 8px; max-width: 360px; margin: 0 auto; border-radius: 4px; background: var(--gr-line); overflow: hidden; }
#grader-app .gr-pbar em { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gr-red), var(--gr-yel)); transition: width .3s ease; }

/* ---------- stage (canvas + SVG overlay + handles), shared by results and manual corners ---------- */
#grader-app .gr-stage { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 630 / 880;
  background: #0b1140; border-radius: 12px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#grader-app .gr-stage-cv, #grader-app .gr-ov, #grader-app .gr-handles { position: absolute; inset: 0; width: 100%; height: 100%; }
#grader-app .gr-stage-cv { display: block; border-radius: 12px; }
#grader-app .gr-ov { overflow: visible; pointer-events: none; }
#grader-app .gr-ov-t { font: 800 25px var(--gr-mono); fill: #fff; stroke: #0b1140; stroke-width: 6px; paint-order: stroke; stroke-linejoin: round; }
#grader-app .gr-ov-n { font: 800 18px var(--gr-body); fill: #fff; }
#grader-app .gr-handles { pointer-events: none; }
#grader-app .gr-hd, #grader-app .gr-pt { position: absolute; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent;
  transform: translate(-50%, -50%); pointer-events: auto; touch-action: none; cursor: grab; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; -webkit-tap-highlight-color: transparent; }
#grader-app .gr-hd span { display: block; border-radius: 7px; background: var(--gr-yel); box-shadow: 0 0 0 2px #0b1140, 0 3px 10px rgba(0, 0, 0, .45); transition: transform .12s; }
#grader-app .gr-hd-left span, #grader-app .gr-hd-right span { width: 14px; height: 38px; cursor: ew-resize;
  background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(16, 25, 79, .5) 7px 9px); background-size: 6px 100%; background-position: center; background-repeat: no-repeat; }
#grader-app .gr-hd-top span, #grader-app .gr-hd-bottom span { width: 38px; height: 14px; cursor: ns-resize;
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(16, 25, 79, .5) 7px 9px); background-size: 100% 6px; background-position: center; background-repeat: no-repeat; }
#grader-app .gr-hd:hover span, #grader-app .gr-hd.is-drag span { transform: scale(1.15); }
#grader-app .gr-hd:focus-visible, #grader-app .gr-pt:focus-visible { outline: 3px solid #fff; outline-offset: -2px; box-shadow: 0 0 0 6px rgba(59, 76, 202, .7); }
#grader-app .gr-hd.is-drag { cursor: grabbing; }
#grader-app .gr-pt span { width: 22px; height: 22px; border-radius: 50%; background: var(--gr-yel); box-shadow: 0 0 0 3px #0b1140, 0 0 0 5px #fff, 0 4px 12px rgba(0, 0, 0, .5); }
#grader-app .gr-pt.is-drag span { transform: scale(1.2); }
#grader-app .gr-stage-manual { max-width: 560px; aspect-ratio: auto; }
#grader-app .gr-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11, 17, 64, .35); border-radius: 12px; }
#grader-app .gr-busy .gr-spin { margin: 0; }

/* ---------- results ---------- */
#grader-app .gr-results { display: flex; flex-direction: column; gap: 16px; }
#grader-app .gr-sum { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; }
#grader-app .gr-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 108px; padding: 12px 10px 10px;
  border-radius: 16px; background: var(--gr-yel); color: var(--gr-navy); text-align: center; box-shadow: inset 0 -4px 0 rgba(16, 25, 79, .18); }
#grader-app .gr-badge-k { font: 500 10.5px var(--gr-mono); letter-spacing: .08em; text-transform: uppercase; }
#grader-app .gr-badge-co { font: 900 20px/1 var(--gr-disp); font-stretch: 115%; margin-top: 6px; }
#grader-app .gr-badge-v { font: 900 44px/1 var(--gr-disp); font-stretch: 110%; letter-spacing: -.02em; white-space: nowrap; }
#grader-app .gr-sum .gr-h2 { font-size: clamp(22px, 5vw, 30px); }
#grader-app .gr-sum-txt { min-width: 0; }
#grader-app .gr-sum-nums { margin: 0; display: grid; gap: 6px; }
#grader-app .gr-sum-nums div { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
#grader-app .gr-sum-nums dt { font: 500 12px var(--gr-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--gr-slate); min-width: 9.5em; }
#grader-app .gr-sum-nums dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 800 17px var(--gr-disp); font-stretch: 105%; color: var(--gr-navy); }
#grader-app .gr-sum .gr-warn { grid-column: 1 / -1; }
#grader-app .gr-sum-txt .gr-warn { margin-top: 10px; }
@media (max-width: 420px) { #grader-app .gr-sum { grid-template-columns: 1fr; } #grader-app .gr-badge { flex-direction: row; gap: 10px; justify-content: flex-start; padding: 10px 14px; }
  #grader-app .gr-badge-co { margin: 0; } }
#grader-app .gr-res-grid { display: grid; gap: 16px; }
#grader-app .gr-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 980px) {
  #grader-app .gr-res-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: start; }
}
@media (min-width: 980px) and (min-height: 820px) { #grader-app .gr-viewer { position: sticky; top: 92px; } }

/* viewer */
#grader-app .gr-vhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
#grader-app .gr-vhead .gr-h3 { margin: 0; }
#grader-app .gr-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin: 0 0 12px; background: var(--gr-bg);
  border-radius: 12px; border: 1px solid var(--gr-line); }
#grader-app .gr-tabs button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--gr-navy); cursor: pointer;
  font: 900 15px var(--gr-disp); font-stretch: 110%; letter-spacing: .04em; }
#grader-app .gr-tabs button[aria-selected="true"] { background: var(--gr-navy); color: var(--gr-yel); box-shadow: 0 2px 8px -3px rgba(16, 25, 79, .6); }
#grader-app .gr-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--gr-bg); border: 1px solid var(--gr-line); border-radius: 999px; }
#grader-app .gr-seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--gr-navy);
  font: 800 14px var(--gr-body); cursor: pointer; }
#grader-app .gr-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 6px -2px rgba(16, 25, 79, .45), inset 0 0 0 2px var(--gr-navy); }
@media (pointer: coarse) { #grader-app .gr-seg button { min-height: 44px; } }
#grader-app .gr-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px auto 0; max-width: 440px; }
#grader-app .gr-ro { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--gr-bg); border: 1px solid var(--gr-line); min-width: 0; }
#grader-app .gr-ro-k { font: 500 11px var(--gr-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gr-slate); }
#grader-app .gr-ro-v { font: 900 clamp(24px, 7vw, 32px)/1 var(--gr-disp); font-stretch: 105%; color: var(--gr-navy); font-variant-numeric: tabular-nums; }
#grader-app .gr-ro-v i { font-style: normal; color: var(--gr-slate); padding: 0 2px; font-weight: 700; }
#grader-app .gr-pill { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font: 800 12px var(--gr-body); }
#grader-app .gr-pill .gr-ic { width: 14px; height: 14px; }
#grader-app .gr-pill.is-ok { background: #dcfce7; color: #14532d; }
#grader-app .gr-pill.is-bad { background: #fee2e2; color: #7f1d1d; }
#grader-app .gr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; justify-content: center; margin: 10px 0 0; font-size: 13px; color: var(--gr-slate); }
#grader-app .gr-li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#grader-app .gr-sw { display: inline-block; width: 16px; height: 10px; flex: none; }
#grader-app .gr-sw-c { background: #22d3ee; } #grader-app .gr-sw-y { background: var(--gr-yel); box-shadow: inset 0 0 0 1px rgba(16, 25, 79, .3); }
#grader-app .gr-sw-g { background: rgba(34, 197, 94, .55); }
#grader-app .gr-toolbar { display: grid; gap: 8px; justify-content: stretch; margin: 14px auto 0; max-width: 440px; }
#grader-app .gr-toolbar .gr-seg { display: flex; flex-wrap: nowrap; }
#grader-app .gr-toolbar .gr-seg button { flex: 1 1 0; padding: 0 6px; white-space: nowrap; }
#grader-app .gr-hint { margin: 10px 0 0; font-size: 13.5px; color: var(--gr-slate); text-align: center; }
#grader-app .gr-vactions { display: flex; justify-content: center; gap: 14px; margin-top: 4px; }

/* zooms: two across on phones; laid out like the card itself (corners at corners) when there's room */
#grader-app .gr-zgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#grader-app .gr-zcenter { display: none; }
/* phones (two across): read like a card, row by row: corners and side edges first, then the top and bottom edges */
@media (max-width: 559px) {
  #grader-app .gr-z-tl { order: 1; } #grader-app .gr-z-tr { order: 2; }
  #grader-app .gr-z-l { order: 3; }  #grader-app .gr-z-r { order: 4; }
  #grader-app .gr-z-bl { order: 5; } #grader-app .gr-z-br { order: 6; }
  #grader-app .gr-z-t { order: 7; }  #grader-app .gr-z-b { order: 8; }
}
#grader-app .gr-detect { margin-top: 14px; border-top: 1px solid var(--gr-line); padding-top: 10px; }
#grader-app .gr-detect summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 700 15px var(--gr-head); color: var(--gr-ink, #171b2d); }
#grader-app .gr-detect summary:focus-visible { outline: 3px solid var(--gr-blue); outline-offset: 2px; }
#grader-app .gr-detect-t { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 10px; }
#grader-app .gr-detect-t th, #grader-app .gr-detect-t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--gr-line); vertical-align: top; }
#grader-app .gr-detect-t thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gr-slate); }
#grader-app .gr-detect-t td { font-weight: 700; white-space: nowrap; }
#grader-app .gr-detect p { margin: 0; font-size: 13.5px; color: var(--gr-slate); }
@media (min-width: 560px) {
  #grader-app .gr-zgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #grader-app .gr-zcenter { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px;
    background: var(--gr-navy); color: #fff; font-size: 12.5px; }
  #grader-app .gr-zcenter b { font: 600 15px var(--gr-head); color: var(--gr-yel); }
  #grader-app .gr-zcenter span { display: flex; align-items: center; gap: 6px; }
  #grader-app .gr-zcenter i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
}
#grader-app .gr-zoom { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0; border: 2px solid var(--gr-line); border-radius: 12px;
  overflow: hidden; background: #0b1140; cursor: zoom-in; text-align: left; font: inherit; color: var(--gr-ink); }
#grader-app .gr-zoom canvas { display: block; width: 100%; aspect-ratio: 1; }
#grader-app .gr-zoom.is-worst { border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, .35); }
#grader-app .gr-zoom:hover { border-color: var(--gr-blue); }
#grader-app .gr-zlab { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 8px 2px; background: #fff; }
#grader-app .gr-zlab b { font: 800 13px var(--gr-body); color: var(--gr-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#grader-app .gr-zbadge { display: inline-block; padding: 2px 8px 6px; background: #fff; font: 500 11.5px var(--gr-mono); color: var(--gr-slate); }
#grader-app .gr-zoom .gr-zbadge { display: block; }
/* traffic light: three lamps, the lit one coloured */
#grader-app .gr-light { display: inline-flex; gap: 3px; padding: 3px 5px; border-radius: 999px; background: #1f2433; flex: none; }
#grader-app .gr-light i { width: 9px; height: 9px; border-radius: 50%; background: #3b4152; }
#grader-app .gr-lv-good .gr-light i:nth-child(3) { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
#grader-app .gr-lv-fair .gr-light i:nth-child(2) { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
#grader-app .gr-lv-poor .gr-light i:nth-child(1) { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
#grader-app .gr-lv-good .gr-zbadge, #grader-app .gr-zbadge.gr-lv-good { color: #14532d; }
#grader-app .gr-lv-fair .gr-zbadge, #grader-app .gr-zbadge.gr-lv-fair { color: #78350f; }
#grader-app .gr-lv-poor .gr-zbadge, #grader-app .gr-zbadge.gr-lv-poor { color: #7f1d1d; }
#grader-app .gr-dlg-meta .gr-zbadge, #grader-app .gr-surf-rate .gr-zbadge { padding: 3px 10px; border-radius: 999px; font-weight: 500; }
#grader-app .gr-zbadge.gr-lv-good { background: #dcfce7; } #grader-app .gr-zbadge.gr-lv-fair { background: #fef3c7; } #grader-app .gr-zbadge.gr-lv-poor { background: #fee2e2; }

/* grade estimate */
#grader-app .gr-gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 339px) { #grader-app .gr-gcards { grid-template-columns: 1fr; } }
#grader-app .gr-why { grid-column: 1 / -1; padding: 10px 12px; background: var(--gr-bg); border-left: 4px solid var(--gr-navy); font-size: 14px; }
#grader-app .gr-why ul { margin: 4px 0 0; padding-left: 18px; }
#grader-app .gr-why li { margin: 2px 0; }
#grader-app .gr-gcard { padding: 12px 12px 10px; border-radius: 14px; border: 2px solid var(--gr-line); background: #fff; min-width: 0; }
#grader-app .gr-gcard.is-on { border-color: var(--gr-navy); box-shadow: 0 0 0 3px rgba(255, 203, 5, .7); }
#grader-app .gr-gcard header { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; }
#grader-app .gr-gname { font: 600 16px var(--gr-head); color: var(--gr-navy); }
#grader-app .gr-gband { font: 900 clamp(26px, 7vw, 34px)/1 var(--gr-disp); font-stretch: 110%; color: var(--gr-navy); white-space: nowrap; }
#grader-app .gr-gsub { margin: 2px 0 8px; font: 500 12px var(--gr-mono); color: var(--gr-slate); }
#grader-app .gr-probs { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin: 6px 0 8px; background: var(--gr-line); }
#grader-app .gr-pr { flex: 1 1 0; min-width: 22px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 12px; }
#grader-app .gr-pr b { font: 900 13px var(--gr-disp); } #grader-app .gr-pr i { font-style: normal; }
/* white 12-13px text on every segment passes WCAG AA 4.5:1: 10 #14532d 9.1:1, 9 #15803d 5.0:1, 8 #b45309 5.0:1, lower #b91c1c 6.5:1 */
#grader-app .gr-pr-10 { background: #14532d; } #grader-app .gr-pr-9 { background: #15803d; }
#grader-app .gr-pr-8 { background: #b45309; } #grader-app .gr-pr-lower { background: #b91c1c; }
#grader-app .gr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
#grader-app .gr-chips li { padding: 4px 10px; border-radius: 12px; background: #fee2e2; color: #7f1d1d; font-size: 12.5px; font-weight: 800; line-height: 1.35; }
#grader-app .gr-chips li.is-ok { background: #dcfce7; color: #14532d; }
#grader-app .gr-gnotes { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; font-size: 13.5px; color: var(--gr-slate); }
#grader-app .gr-gnotes .gr-ic { color: var(--gr-slate); width: 18px; height: 18px; }
#grader-app .gr-chips li.is-info { background: var(--gr-bg); color: var(--gr-slate); font-weight: 700; box-shadow: inset 0 0 0 1px var(--gr-line); }

/* surface scan */
#grader-app .gr-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--gr-bg);
  border: 1px solid var(--gr-line); cursor: pointer; line-height: 1.45; font-size: 15px; }
#grader-app .gr-check a { color: var(--gr-blue); font-weight: 800; text-underline-offset: 2px; }
#grader-app .gr-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--gr-blue); }
#grader-app .gr-surf-res { margin-top: 12px; }
#grader-app .gr-surf-rate { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; font-weight: 700; }
#grader-app .gr-finds { margin: 0; padding-left: 26px; display: grid; gap: 6px; }
#grader-app .gr-finds li::marker { font-weight: 900; color: #c0267a; }
#grader-app .gr-sev { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 500 11px var(--gr-mono); text-transform: uppercase; background: #fef3c7; color: #78350f; }
#grader-app .gr-sev-high { background: #fee2e2; color: #7f1d1d; } #grader-app .gr-sev-low { background: #e0f2fe; color: #0c4a6e; }

/* should you grade it? */
#grader-app .gr-vform { display: grid; gap: 12px; margin: 10px 0 12px; }
@media (min-width: 640px) { #grader-app .gr-vform { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
#grader-app .gr-lab { display: block; margin: 0 0 6px; font: 500 12px var(--gr-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gr-slate); }
#grader-app .gr-input { width: 100%; height: 52px; padding: 0 14px; border: 2px solid rgba(16, 25, 79, .22); border-radius: 12px; background: #fff;
  font: 600 16px var(--gr-body); color: var(--gr-ink); -webkit-appearance: none; appearance: none; }
#grader-app select.gr-input { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310194f' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
#grader-app .gr-input:focus { outline: none; border-color: var(--gr-blue); box-shadow: var(--gr-ring); }
#grader-app .gr-combo { position: relative; }
#grader-app .gr-listbox { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 4px; list-style: none; max-height: 330px; overflow: auto;
  background: #fff; border: 1px solid var(--gr-line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(16, 25, 79, .5); }
#grader-app .gr-opt { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
#grader-app .gr-opt[aria-selected="true"], #grader-app .gr-opt:hover { background: #fff7d6; }
#grader-app .gr-opt img, #grader-app .gr-ph { width: 34px; height: 47px; flex: none; object-fit: cover; border-radius: 3px; background: var(--gr-line); }
#grader-app .gr-opt span { flex: 1; min-width: 0; }
#grader-app .gr-opt b, #grader-app .gr-picked b { display: block; font-weight: 800; color: var(--gr-navy); }
#grader-app .gr-opt small, #grader-app .gr-picked small { display: block; font: 500 11.5px var(--gr-mono); color: var(--gr-slate); text-transform: uppercase; }
#grader-app .gr-opt .gr-opt-p { flex: none; font: 500 13px var(--gr-mono); color: var(--gr-navy); }
#grader-app .gr-opt-none { padding: 12px; color: var(--gr-slate); }
#grader-app .gr-picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff8e1; border: 1px solid #ffe28a; margin-bottom: 12px; }
#grader-app .gr-picked img, #grader-app .gr-picked .gr-ph { width: 44px; height: 61px; flex: none; object-fit: cover; border-radius: 4px; }
#grader-app .gr-picked > span { flex: 1; min-width: 0; }
#grader-app .gr-picked a { font-size: 13.5px; font-weight: 800; color: var(--gr-blue); }
#grader-app .gr-vload { display: flex; align-items: center; padding: 14px; color: var(--gr-slate); font-weight: 700; }
#grader-app .gr-vnote { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; padding: 8px 12px; background: #fff4e5;
  border: 1px solid #fcd9a8; color: #6b3500; font-size: 13.5px; line-height: 1.4; }
#grader-app .gr-vnote.is-busy { background: var(--gr-bg); border-color: var(--gr-line); color: var(--gr-slate); font-weight: 700; }
#grader-app .gr-vnote .gr-link, #grader-app .gr-notice .gr-link { min-height: 32px; padding: 0 4px; font-size: 13.5px; }
#grader-app .gr-verdict { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border-left: 6px solid var(--gr-slate); background: var(--gr-bg); margin-bottom: 12px; }
#grader-app .gr-verdict-k { font: 500 11px var(--gr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gr-slate); }
#grader-app .gr-verdict > b { font: 900 clamp(24px, 6vw, 32px)/1.05 var(--gr-disp); font-stretch: 108%; color: var(--gr-navy); }
#grader-app .gr-verdict ul { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
#grader-app .gr-v-good { border-left-color: var(--gr-good); background: #effcf3; }
#grader-app .gr-v-fair { border-left-color: #d97706; background: #fff8eb; }
#grader-app .gr-v-poor { border-left-color: var(--gr-poor); background: #fff1ee; }
#grader-app .gr-glist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (max-width: 420px) { #grader-app .gr-gl { padding: 8px; } #grader-app .gr-glist .gr-gl-v { font-size: 18px; } }
#grader-app .gr-gl { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--gr-line); }
#grader-app .gr-gl-k { font: 500 11px var(--gr-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gr-slate); }
#grader-app .gr-gl-v, #grader-app .gr-money { font: 900 22px var(--gr-disp); color: var(--gr-navy); font-variant-numeric: tabular-nums; }
#grader-app .gr-verdict .gr-money { font-size: inherit; }
#grader-app .gr-gl small { font-size: 12px; color: var(--gr-slate); }
#grader-app .gr-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px 6px; }
#grader-app .gr-table { width: 100%; min-width: 440px; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
#grader-app .gr-table th, #grader-app .gr-table td { padding: 9px 8px; text-align: right; vertical-align: top; border-bottom: 1px dashed var(--gr-line); }
#grader-app .gr-table thead th { font: 900 15px var(--gr-disp); font-stretch: 110%; color: var(--gr-navy); border-bottom: 2px solid var(--gr-navy); white-space: nowrap; }
#grader-app .gr-table thead th small { display: block; font: 800 10.5px var(--gr-body); color: var(--gr-good); text-transform: uppercase; letter-spacing: .05em; }
#grader-app .gr-table tbody th { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; font-weight: 700; color: var(--gr-slate); min-width: 110px; }
#grader-app .gr-table td { font-weight: 800; color: var(--gr-ink); white-space: nowrap; }
#grader-app .gr-table td small { display: block; font: 500 11px var(--gr-mono); color: var(--gr-slate); }
#grader-app .gr-table .is-best { background: #effcf3; }
#grader-app .gr-tr-profit th, #grader-app .gr-tr-profit td { border-bottom: 2px solid var(--gr-line); }
#grader-app .gr-tr-profit th { color: var(--gr-navy); font-weight: 800; }
#grader-app .gr-tr-profit b { font: 900 18px var(--gr-disp); }
#grader-app .gr-table .is-up { color: var(--gr-good); } #grader-app .gr-table .is-down { color: var(--gr-poor); }
#grader-app .gr-tv { display: inline-block; padding: 3px 8px; font-size: 12.5px; white-space: normal; border-left-width: 4px; border-left-style: solid; }
#grader-app .gr-table tr:last-child th, #grader-app .gr-table tr:last-child td { border-bottom: 0; vertical-align: middle; }

/* care kit: a rail of the homepage's product cards */
#grader-app .gr-caution { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff8e1;
  border: 1px solid #ffe28a; font-size: 14.5px; font-weight: 700; color: #4a3a00; }
#grader-app .gr-caution .gr-ic { color: #b58800; }
/* position: relative makes the scroller the containing block of its cards' screen-reader text, so that text is
   clipped by (and scrolls inside) the rail instead of widening the page */
#grader-app .gr-rail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 62%); gap: 10px; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
@media (min-width: 640px) { #grader-app .gr-rail { grid-auto-columns: 196px; } }
#grader-app .gr-prod { scroll-snap-align: start; display: flex; background: #fff; border: 1px solid var(--gr-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 10px -6px rgba(16, 25, 79, .25); transition: transform .22s ease, box-shadow .22s ease; min-width: 0; }
#grader-app .gr-prod:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(16, 25, 79, .45); }
#grader-app .gr-prod-link { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; color: var(--gr-ink); text-decoration: none; }
#grader-app .gr-prod-link:focus-visible { outline-offset: -3px; }
#grader-app .gr-prod-img { aspect-ratio: 1; background: #fff; display: block; overflow: hidden; }
#grader-app .gr-prod-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
#grader-app .gr-prod-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
#grader-app .gr-prod-kind { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--gr-navy); color: var(--gr-yel); font: 500 10.5px var(--gr-mono);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
#grader-app .gr-prod-seller { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#grader-app .gr-prod-host { font-size: 12px; color: var(--gr-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
#grader-app .gr-spon { font-weight: 700; }
#grader-app .gr-spon::after { content: " · "; font-weight: 400; }
#grader-app .gr-prod-name { font-size: 14px; font-weight: 700; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.64em; }
#grader-app .gr-prod-price { font: 600 18px var(--gr-head); margin-top: 2px; }
#grader-app .gr-prod-cur { font-size: 11.5px; color: var(--gr-slate); min-height: 16px; }
#grader-app .gr-prod-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 6px 12px;
  border-radius: 999px; background: var(--gr-red); color: #fff; font-size: 13.5px; font-weight: 800; }
#grader-app .gr-prod-body .gr-prod-cta { margin-top: 10px; }
#grader-app .gr-prod:hover .gr-prod-cta { background: #8f1f07; }

/* share */
#grader-app .gr-share-grid { display: grid; gap: 16px; align-items: center; }
#grader-app .gr-share-cv { width: 100%; max-width: 340px; height: auto; aspect-ratio: 1080 / 1350; margin: 0 auto; display: block; border-radius: 14px;
  background: var(--gr-navy); box-shadow: 0 18px 40px -22px rgba(16, 25, 79, .6); }
#grader-app .gr-share-txt p { margin: 0 0 6px; }
@media (min-width: 640px) { #grader-app .gr-share-grid { grid-template-columns: 300px 1fr; } }
#grader-app .gr-again { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 0; }

/* zoom dialog */
#grader-app .gr-dlg { width: min(94vw, 560px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--gr-ink);
  box-shadow: 0 30px 80px -20px rgba(6, 10, 40, .7); }
#grader-app .gr-dlg::backdrop { background: rgba(6, 10, 40, .72); }
#grader-app .gr-dlg[open]:not([role]) { display: block; }
#grader-app .gr-dlg[role][open] { position: fixed; inset: 3vh 0 auto; margin: 0 auto; z-index: 1001; display: block; }
#grader-app .gr-dlg-in { padding: 14px; }
#grader-app .gr-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#grader-app .gr-dlg-head .gr-h3 { margin: 0; }
#grader-app .gr-dlg-x, #grader-app .gr-cam-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gr-bg); color: var(--gr-navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
#grader-app .gr-dlg-cv { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; background: #0b1140; }
#grader-app .gr-dlg-meta { margin: 10px 0 0; font-size: 14px; color: var(--gr-slate); }
#grader-app .gr-dlg-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* ---------- live camera guide (full screen) ---------- */
html.gr-noscroll, html.gr-noscroll body { overflow: hidden; }
#grader-app .gr-cam { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #000; color: #fff; }
#grader-app .gr-cam-view { position: relative; flex: 1; overflow: hidden; }
#grader-app .gr-cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
#grader-app .gr-cam-mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#grader-app .gr-cam-outline { stroke: rgba(255, 255, 255, .7); stroke-width: 2; stroke-dasharray: 8 7; }
#grader-app .gr-cam-brackets { stroke: var(--gr-yel); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
#grader-app .gr-cam-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
#grader-app .gr-cam-title { margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(16, 25, 79, .85); font: 600 16px var(--gr-head); color: var(--gr-yel); }
#grader-app .gr-cam-x { background: rgba(255, 255, 255, .92); }
#grader-app .gr-cam-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; padding: 9px 16px; border-radius: 999px; max-width: 92%;
  background: rgba(16, 25, 79, .9); font-weight: 800; font-size: 15px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#grader-app .gr-cam-hint.is-ok { background: rgba(21, 128, 61, .92); }
#grader-app .gr-cam-meters { position: absolute; left: 12px; top: calc(68px + env(safe-area-inset-top, 0px)); display: grid; gap: 6px; }
#grader-app .gr-meter { display: grid; grid-template-columns: 44px 70px; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; background: rgba(16, 25, 79, .8); }
#grader-app .gr-meter i { font: 500 10.5px var(--gr-mono); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
#grader-app .gr-meter b { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
#grader-app .gr-meter em { display: block; height: 100%; width: 10%; background: #22c55e; transition: width .25s; }
#grader-app .gr-meter.is-bad em { background: #f59e0b; }
#grader-app .gr-cam-level { justify-self: start; padding: 5px 10px; border-radius: 10px; background: rgba(16, 25, 79, .8); font: 500 11px var(--gr-mono); text-transform: uppercase; color: #fde68a; }
#grader-app .gr-cam-level.is-ok { color: #86efac; }
#grader-app .gr-cam-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: #000; }
#grader-app .gr-cam-side { justify-self: start; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; min-height: 52px;
  padding: 6px 10px; border-radius: 12px; color: #fff; font: 800 12px var(--gr-body); }
#grader-app label.gr-cam-side { cursor: pointer; background: rgba(255, 255, 255, .12); }
#grader-app .gr-cam-note { justify-self: end; justify-content: center; color: #c9cde6; font-weight: 700; text-align: center; }
#grader-app .gr-shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
#grader-app .gr-shutter span { width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: background .2s, transform .1s; }
#grader-app .gr-shutter.is-warn span { background: var(--gr-yel); }
#grader-app .gr-shutter.is-ok { border-color: #22c55e; }
#grader-app .gr-shutter:active span { transform: scale(.9); }
#grader-app .gr-shutter[disabled] { opacity: .4; }
#grader-app .gr-shutter:focus-visible { outline: 3px solid var(--gr-yel); outline-offset: 3px; }
#grader-app .gr-cam.is-flash .gr-cam-view::after { content: ""; position: absolute; inset: 0; background: #fff; animation: gr-flash .14s ease-out forwards; }
@keyframes gr-flash { from { opacity: .9; } to { opacity: 0; } }

/* ---------- desktop spacing ---------- */
@media (min-width: 720px) {
  #grader-app .gr-panel { padding: 22px 24px; }
  #grader-app .gr-screen, #grader-app .gr-results, #grader-app .gr-res-grid, #grader-app .gr-col { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #grader-app *, #grader-app *::before, #grader-app *::after { transition: none !important; }
  #grader-app .gr-spin span, #grader-app .gr-plist li.is-now::before { animation-duration: 2.4s; }
  #grader-app .gr-prod:hover { transform: none; }
}
@media (forced-colors: active) {
  #grader-app .gr-hd span, #grader-app .gr-pt span { forced-color-adjust: none; }
}

/* ---------- theme 2026-11 (blog.css): square with cut corners, never pills; display headings ----------
   The site's current look (price guide, Pokédex, blog) overrides the older rounded tokens; matched here so
   the grader sits naturally in the page. Clipped elements draw their focus ring inside. */
#grader-app .gr-h2 { font-family: var(--gr-disp); font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em;
  line-height: 1.02; font-size: clamp(22px, 5vw, 32px); }
#grader-app .gr-hero .gr-h2 { font-size: clamp(26px, 6vw, 44px); }
#grader-app .gr-sum .gr-h2 { font-size: clamp(20px, 4.6vw, 28px); }
#grader-app .gr-h3 { font-family: var(--gr-disp); font-weight: 800; font-stretch: 110%; font-size: 19px; text-transform: none; }
#grader-app .gr-panel:not(.gr-value), #grader-app .gr-badge, #grader-app .gr-gcard, #grader-app .gr-prod, #grader-app .gr-zoom, #grader-app .gr-slot-pick,
#grader-app .gr-drop, #grader-app .gr-verdict, #grader-app .gr-dlg {
  border-radius: 0; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
#grader-app .gr-value { border-radius: 0; }   /* not clipped: its card list drops over the next panel */
#grader-app .gr-panel { box-shadow: none; }
#grader-app .gr-btn, #grader-app .gr-seg button, #grader-app .gr-tabs button, #grader-app .gr-input, #grader-app .gr-pill, #grader-app .gr-chips li,
#grader-app .gr-best, #grader-app .gr-prod-cta, #grader-app .gr-prod-kind, #grader-app .gr-ro, #grader-app .gr-gl, #grader-app .gr-issue, #grader-app .gr-notice,
#grader-app .gr-warn, #grader-app .gr-caution, #grader-app .gr-check, #grader-app .gr-picked, #grader-app .gr-tabs, #grader-app .gr-seg, #grader-app .gr-listbox,
#grader-app .gr-opt, #grader-app .gr-slot-img, #grader-app .gr-stage, #grader-app .gr-stage-cv, #grader-app .gr-gate-photo, #grader-app .gr-share-cv,
#grader-app .gr-dlg-cv, #grader-app .gr-zbadge, #grader-app .gr-sev, #grader-app .gr-probs, #grader-app .gr-busy, #grader-app .gr-cam-title, #grader-app .gr-cam-hint,
#grader-app .gr-meter, #grader-app .gr-cam-level, #grader-app .gr-zcenter, #grader-app .gr-art { border-radius: 0; }
#grader-app .gr-btn, #grader-app .gr-prod-cta { font-family: var(--gr-disp); font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .04em;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
#grader-app .gr-btn-lg { font-size: 17px; }
#grader-app .gr-btn:focus-visible, #grader-app .gr-file:focus-within { outline: 3px solid #fff; outline-offset: -6px; box-shadow: none; }
#grader-app .gr-btn-line:focus-visible, #grader-app .gr-btn-ghost:focus-visible, #grader-app .gr-file:focus-within { outline-color: var(--gr-blue); }
#grader-app .gr-slot-pick:focus-visible, #grader-app .gr-zoom:focus-visible, #grader-app .gr-prod-link:focus-visible { outline: 3px solid var(--gr-blue); outline-offset: -5px; }
#grader-app .gr-tabs button[aria-selected="true"], #grader-app .gr-seg button[aria-pressed="true"] { clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
#grader-app .gr-seg button[aria-pressed="true"] { background: var(--gr-navy); color: var(--gr-yel); box-shadow: none; }
#grader-app .gr-seg button, #grader-app .gr-tabs button { font-family: var(--gr-disp); font-weight: 800; font-stretch: 105%; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
#grader-app .gr-tabs button { font-size: 15px; }
#grader-app .gr-badge-v, #grader-app .gr-gband { font-stretch: 120%; }
@media (max-width: 480px) {
  #grader-app .gr-table { font-size: 13px; min-width: 400px; }
  #grader-app .gr-table th, #grader-app .gr-table td { padding: 8px 6px; }
  #grader-app .gr-table tbody th { min-width: 92px; }
  #grader-app .gr-tr-profit b { font-size: 16px; }
}
#grader-app .gr-nw { white-space: nowrap; }
@media (max-width: 359px) {
  #grader-app .gr-toolbar .gr-seg button { font-size: 11px; letter-spacing: .02em; min-width: 0; padding: 0 4px; }
  #grader-app .gr-panel { padding: 16px 12px; }
}

/* sign-up gate: the magic link was opened on another device or in a mail app's own browser */
#grader-app .gr-elsewhere { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gr-line); }
#grader-app .gr-elsewhere .gr-note { margin: 0; flex: 1 1 220px; }
#grader-app .gr-elsewhere .gr-btn { min-height: 44px; }

/* ---------- "Should you grade it?" in the 2026-11 theme (Board 2026-11-06): navy verdict band, square tiles,
   navy table header, solid verdict chips; the explanation lives in a collapsed accordion ---------- */
#grader-app .gr-verdict { gap: 6px; padding: 18px 20px; border: 0; border-left: 0; background: var(--gr-navy); color: #fff; }
#grader-app .gr-verdict-k { color: var(--gr-yel); }
#grader-app .gr-verdict .gr-verdict-t { display: flex; align-items: center; gap: 12px; font: 900 clamp(24px, 6vw, 34px)/1.02 var(--gr-disp);
  font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
#grader-app .gr-verdict-dot { width: 16px; height: 16px; flex: none; background: var(--gr-slate);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px); }
#grader-app .gr-v-good .gr-verdict-dot { background: #22c55e; }
#grader-app .gr-v-fair .gr-verdict-dot { background: #f59e0b; }
#grader-app .gr-v-poor .gr-verdict-dot { background: #ef4444; }
#grader-app .gr-verdict.gr-v-good, #grader-app .gr-verdict.gr-v-fair, #grader-app .gr-verdict.gr-v-poor { background: var(--gr-navy); border-left: 0; }
#grader-app .gr-verdict.gr-v-good { box-shadow: inset 0 -4px 0 #22c55e; }
#grader-app .gr-verdict.gr-v-fair { box-shadow: inset 0 -4px 0 #f59e0b; }
#grader-app .gr-verdict.gr-v-poor { box-shadow: inset 0 -4px 0 #ef4444; }
#grader-app .gr-verdict-s { font-size: 15px; line-height: 1.45; color: #dfe4ff; }
#grader-app .gr-verdict-s strong { color: #fff; }
#grader-app .gr-verdict .gr-vmoney { font: 900 17px var(--gr-disp); color: var(--gr-yel); font-variant-numeric: tabular-nums; }
#grader-app .gr-gl { border: 2px solid var(--gr-navy); border-top-width: 5px; border-top-color: var(--gr-yel); background: #fff; padding: 10px 12px; }
#grader-app .gr-gl-k { color: var(--gr-navy); font-weight: 700; }
#grader-app .gr-gl-v { font-stretch: 112%; }
#grader-app .gr-table { border: 2px solid var(--gr-navy); }
#grader-app .gr-table thead th { background: var(--gr-navy); color: #fff; font-stretch: 120%; text-transform: uppercase; letter-spacing: .02em;
  border-bottom: 0; padding: 11px 8px; }
#grader-app .gr-table thead th.is-best { background: var(--gr-yel); color: var(--gr-navy); }
#grader-app .gr-table thead th small { display: inline-block; margin-top: 3px; padding: 1px 6px; background: var(--gr-navy); color: var(--gr-yel);
  font: 700 10px var(--gr-mono); letter-spacing: .06em; }
#grader-app .gr-table tbody th { font: 500 11.5px var(--gr-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--gr-navy); }
#grader-app .gr-table td { border-bottom: 1px solid var(--gr-line); }
#grader-app .gr-table .is-best { background: #fff8d6; }
#grader-app .gr-tr-profit th, #grader-app .gr-tr-profit td { background: #f5f7fc; border-top: 2px solid var(--gr-navy); border-bottom: 2px solid var(--gr-navy); }
#grader-app .gr-tr-profit td.is-best { background: #ffef9e; }
#grader-app .gr-tr-profit b { font-stretch: 112%; }
#grader-app .gr-table .is-up { color: #11703a; } #grader-app .gr-table .is-down { color: #b42318; }
#grader-app .gr-tv { border: 0; padding: 5px 9px; font: 800 11.5px var(--gr-disp); font-stretch: 112%; text-transform: uppercase; letter-spacing: .03em;
  color: #fff; background: var(--gr-slate); white-space: nowrap;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
#grader-app .gr-tv.gr-v-good { background: #11703a; } #grader-app .gr-tv.gr-v-fair { background: #b45309; } #grader-app .gr-tv.gr-v-poor { background: #b42318; }
#grader-app .gr-vwhy { margin-top: 12px; border-top: 1px solid var(--gr-line); padding-top: 8px; }
#grader-app .gr-vwhy summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 700 15px var(--gr-head); color: var(--gr-navy); }
#grader-app .gr-vwhy summary:focus-visible { outline: 3px solid var(--gr-blue); outline-offset: 2px; }
#grader-app .gr-vwhy ul { margin: 2px 0 10px; padding-left: 20px; font-size: 14px; }
#grader-app .gr-vwhy p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gr-slate); }
@media (max-width: 520px) {
  #grader-app .gr-glist { grid-template-columns: 1fr; }
  #grader-app .gr-gl { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
  #grader-app .gr-gl .gr-gl-v { justify-self: end; font-size: 20px; }
  #grader-app .gr-gl small { grid-column: 1 / -1; }
}

/* landing: the start button centred and twice the size */
#grader-app .gr-hero .gr-how + .gr-ctas { justify-content: center; }
#grader-app .gr-hero .gr-ctas .gr-btn-lg { flex: 0 1 auto; min-height: 84px; min-width: min(100%, 380px); padding: 16px 56px; font-size: 26px; letter-spacing: .05em; }
@media (max-width: 559px) { #grader-app .gr-hero .gr-ctas .gr-btn-lg { flex: 1 1 100%; min-height: 76px; padding: 14px 20px; font-size: 22px; } }

/* share icon beside "Adjust card corners" (draws the grade-preview image on demand) */
#grader-app .gr-vactions { align-items: center; flex-wrap: wrap; }
#grader-app .gr-share-msg { text-align: center; margin: 4px 0 0; overflow-wrap: anywhere; }
#grader-app .gr-share-msg:empty { display: none; }

/* grade chances: the bar shows the split, the key below carries every number (nothing clipped in thin segments) */
#grader-app .gr-probs { height: 22px; margin: 8px 0 6px; }
#grader-app .gr-pr { min-width: 6px; }
#grader-app .gr-plegend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; padding: 0; font: 500 12.5px/1.3 var(--gr-mono); color: var(--gr-navy); }
#grader-app .gr-plegend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#grader-app .gr-plegend i { width: 10px; height: 10px; flex: none; }
#grader-app .gr-plegend b { font: 900 13px var(--gr-disp); }

/* roomier results: grade cards go one per row when their column is narrow; zoom names wrap instead of "Botto…" */
#grader-app .gr-gcards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
#grader-app .gr-gcard { padding: 14px 16px 12px; }
#grader-app .gr-gcard header { flex-wrap: nowrap; align-items: center; }
#grader-app .gr-zlab { align-items: flex-start; padding: 8px 8px 3px; }
#grader-app .gr-zlab b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; font-size: 12.5px; }

/* border-line handles 2026-11: an SVG grip (white keyline, navy rim, yellow face, direction arrows) replaces the striped pill */
#grader-app .gr-hd span, #grader-app .gr-hd-left span, #grader-app .gr-hd-right span, #grader-app .gr-hd-top span, #grader-app .gr-hd-bottom span {
  width: 34px; height: 22px; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 2px 4px rgba(11, 17, 64, .55)); }
#grader-app .gr-hd span svg { display: block; width: 100%; height: 100%; }
#grader-app .gr-hd-left span, #grader-app .gr-hd-right span { cursor: ew-resize; }
#grader-app .gr-hd-top span, #grader-app .gr-hd-bottom span { cursor: ns-resize; transform: rotate(90deg); }
#grader-app .gr-hd:hover span, #grader-app .gr-hd.is-drag span { transform: scale(1.15); }
#grader-app .gr-hd-top:hover span, #grader-app .gr-hd-bottom:hover span, #grader-app .gr-hd-top.is-drag span, #grader-app .gr-hd-bottom.is-drag span { transform: rotate(90deg) scale(1.15); }
#grader-app .gr-hd:focus-visible { outline: none; box-shadow: none; }
#grader-app .gr-hd:focus-visible span { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 3px #3b4cca) drop-shadow(0 0 2px #3b4cca); }

/* view tools under the card: theme buttons, not text links */
#grader-app .gr-vactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
#grader-app .gr-btn-tool { min-height: 44px; padding: 8px 14px; font-size: 13px; gap: 7px; flex: 1 1 auto; }
#grader-app .gr-btn-tool .gr-ic { width: 17px; height: 17px; flex: none; }
#grader-app .gr-btn-navy { background: var(--gr-navy); color: var(--gr-yel); }
#grader-app .gr-btn-navy:hover { background: #0b1140; filter: none; }
#grader-app .gr-btn-navy:focus-visible { outline-color: var(--gr-yel); }
#grader-app .gr-share-ic { min-width: 0; flex: 0 1 auto; }
@media (min-width: 560px) { #grader-app .gr-btn-tool { flex: 0 1 auto; } }

/* handle size: bigger grip everywhere, and a thumb-sized one (60px touch area) on phones */
#grader-app .gr-hd span, #grader-app .gr-hd-left span, #grader-app .gr-hd-right span, #grader-app .gr-hd-top span, #grader-app .gr-hd-bottom span { width: 40px; height: 26px; }
@media (pointer: coarse), (max-width: 559px) {
  #grader-app .gr-hd { width: 60px; height: 60px; }
  #grader-app .gr-hd span, #grader-app .gr-hd-left span, #grader-app .gr-hd-right span, #grader-app .gr-hd-top span, #grader-app .gr-hd-bottom span { width: 50px; height: 33px; }
}
/* tool buttons on phones: two side by side, Share full width under them */
@media (max-width: 559px) {
  #grader-app .gr-vactions { display: grid; grid-template-columns: 1fr 1fr; }
  #grader-app .gr-btn-tool { padding: 8px 8px; font-size: 12.5px; letter-spacing: .02em; }
  #grader-app .gr-share-ic { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  #grader-app .gr-btn-line.gr-btn-tool .gr-ic { display: none; }   /* both labels stay on one line at phone width */
  #grader-app .gr-btn-tool { white-space: nowrap; }
}

#grader-app .gr-fromphoto { display: block; margin-top: 2px; color: var(--gr-slate); font: 500 11.5px/1.35 var(--gr-mono); }
#grader-app .gr-picked .gr-fromphoto { text-transform: none; letter-spacing: 0; }
#grader-app .gr-combo[hidden] { display: none; }
#grader-app .gr-picked .gr-btn-tool { flex: 0 0 auto; margin-left: auto; }
#grader-app .gr-picked { margin-top: 10px; }
@media (max-width: 479px) {
  #grader-app .gr-picked { flex-wrap: wrap; }
  #grader-app .gr-picked .gr-btn-tool { flex: 1 1 100%; margin-left: 0; }
}

/* touch-drag magnifier (lives on <body>, outside #grader-app): white keyline, navy rim, round */
.gr-loupe { position: fixed; z-index: 2147482000; pointer-events: none; border-radius: 50%; background: #0b1140;
  box-shadow: 0 0 0 3px #0b1140, 0 0 0 5px #fff, 0 10px 28px rgba(11, 17, 64, .55); }
.gr-loupe[hidden] { display: none; }
/* corner dots: a thumb-sized touch area on phones, so a finger can land beside the dot and drag it */
@media (pointer: coarse), (max-width: 559px) { #grader-app .gr-pt { width: 72px; height: 72px; } }
#grader-app .gr-pt.is-drag span { box-shadow: 0 0 0 3px #0b1140, 0 0 0 5px #fff, 0 0 0 10px rgba(255, 203, 5, .35), 0 4px 12px rgba(0, 0, 0, .5); }

/* ═══ corners & edges 2026-11: a grade on every zoom, a subgrade strip, the surface result in the centre ═══ */
#grader-app .gr-tone-good { --tone: #15803d; --tone-bg: #dcfce7; }
#grader-app .gr-tone-fair { --tone: #b45309; --tone-bg: #fef3c7; }
#grader-app .gr-tone-poor { --tone: #b91c1c; --tone-bg: #fee2e2; }
#grader-app .gr-tone-none { --tone: #475569; --tone-bg: #eef0f6; }
#grader-app .gr-subs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 12px; }
#grader-app .gr-sub-c { display: grid; gap: 2px; padding: 8px 8px 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--gr-line), inset 0 -4px 0 var(--tone); text-align: center;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); min-width: 0; }
#grader-app .gr-sub-c span { font: 500 10.5px/1.2 var(--gr-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gr-slate); }
#grader-app .gr-sub-c b { font: 900 24px/1 var(--gr-disp); font-stretch: 115%; color: var(--tone); }
#grader-app .gr-sub-c small { font: 500 10px/1.2 var(--gr-mono); color: var(--gr-slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 379px) { #grader-app .gr-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

#grader-app .gr-zoom { border-color: var(--gr-line); }
#grader-app .gr-zoom .gr-zg { position: absolute; top: 6px; right: 6px; min-width: 40px; padding: 5px 7px 4px; background: #0b1140; color: #fff;
  font: 900 17px/1 var(--gr-disp); font-stretch: 110%; text-align: center; box-shadow: inset 0 -3px 0 var(--tone), 0 0 0 2px #fff;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
#grader-app .gr-zoom .gr-zlab { align-items: center; padding: 7px 8px 7px; }
#grader-app .gr-zoom .gr-zw { flex: none; padding: 2px 6px; font: 500 10.5px/1.2 var(--gr-mono); color: var(--tone); background: var(--tone-bg); }
#grader-app .gr-zoom.is-worst { border-color: var(--tone); box-shadow: 0 0 0 2px var(--tone-bg); }
#grader-app .gr-zcenter { display: block; padding: 0; background: none; }
#grader-app .gr-zsurf { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 8px;
  background: #0b1140 radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 12px 12px; color: #fff; text-align: center;
  box-shadow: inset 0 -4px 0 var(--tone); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
#grader-app .gr-zsurf-k { font: 500 11px var(--gr-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gr-yel); }
#grader-app .gr-zsurf-g { font: 900 34px/1 var(--gr-disp); font-stretch: 115%; color: #fff; }
#grader-app .gr-zsurf-w { font: 800 13.5px var(--gr-disp); }
#grader-app .gr-zsurf small { font-size: 11.5px; color: #c9cde6; line-height: 1.3; }
#grader-app .gr-zsurf .gr-btn-tool { margin-top: 4px; min-height: 40px; font-size: 12px; padding: 6px 12px; flex: 0 0 auto; }
#grader-app .gr-btn-yel { background: var(--gr-yel); color: var(--gr-navy); }
#grader-app .gr-btn-yel:hover { background: #ffd83d; filter: none; }
@media (max-width: 559px) { #grader-app .gr-zcenter { order: 9; grid-column: 1 / -1; } #grader-app .gr-zsurf { min-height: 130px; } }

/* zone grades on the straightened photo */
#grader-app .gr-ov-zg text { font: 900 22px var(--gr-disp); font-stretch: 110%; fill: #fff; }

/* surface scan panel, 2026-11 theme */
#grader-app .gr-panel-k { margin: 0 0 4px; font: 500 11.5px/1.2 var(--gr-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gr-slate); }
#grader-app .gr-surface { border-top: 5px solid var(--gr-yel); }
#grader-app .gr-surface .gr-h3 { font-family: var(--gr-disp); font-weight: 900; font-stretch: 120%; text-transform: uppercase; font-size: 24px; letter-spacing: -.01em; margin: 0; }
#grader-app .gr-surf-lede { margin: 6px 0 12px; font-size: 15.5px; line-height: 1.5; color: var(--gr-ink, #171b2d); }
#grader-app .gr-surface .gr-check { background: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--gr-line), inset 4px 0 0 var(--gr-navy); font-size: 14px; color: #3d4359; }
#grader-app .gr-surface .gr-check input { accent-color: var(--gr-navy); }
#grader-app .gr-surface .gr-check a { color: var(--gr-navy); }
#grader-app .gr-surface .gr-sub { font: 500 12px/1.4 var(--gr-mono); color: var(--gr-slate); }
#grader-app .gr-firstscan { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--gr-slate); }
#grader-app .gr-firstscan a { color: var(--gr-navy); font-weight: 800; }
#grader-app .gr-firstscan .gr-link { min-height: 32px; padding: 0 2px; font-size: 13px; color: var(--gr-navy); }
#grader-app .gr-zsurf .gr-spin { margin: 4px 0; }
/* the square inspection scope over the main image */
.gr-loupe.is-sq { border-radius: 0; box-shadow: 0 0 0 2px #0b1140, 0 0 0 4px #fff, 0 12px 30px rgba(11, 17, 64, .5);
  clip-path: none; }
/* the card under a finger: press-and-drag inspects instead of scrolling (scroll beside the card) */
#grader-app .gr-stage:not(.gr-stage-manual) .gr-stage-cv { touch-action: none; }
@media (hover: hover) { #grader-app .gr-stage:not(.gr-stage-manual) { cursor: crosshair; } }
/* surface scan opt-in on the photo step */
#grader-app .gr-optin { margin: 14px 0 0; background: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--gr-line), inset 4px 0 0 var(--gr-yel); font-size: 13.5px; color: #3d4359; }
#grader-app .gr-optin b { color: var(--gr-navy); font-weight: 800; }
#grader-app .gr-optin input { accent-color: var(--gr-navy); }
#grader-app .gr-optin a { color: var(--gr-navy); font-weight: 800; }
#grader-app .gr-optin + .gr-ctas-go { margin-top: 12px; }

/* ═══ Should you grade it? and Protect it before you send it, 2026-11 theme ═══ */
#grader-app .gr-value, #grader-app .gr-care { border-top: 5px solid var(--gr-yel); }
#grader-app .gr-value > .gr-h3, #grader-app .gr-care > .gr-h3 { font-family: var(--gr-disp); font-weight: 900; font-stretch: 120%; text-transform: uppercase;
  font-size: 24px; letter-spacing: -.01em; line-height: 1.05; margin: 0 0 6px; }
#grader-app .gr-value > p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
#grader-app .gr-input { border-radius: 0; border: 0; box-shadow: inset 0 0 0 2px rgba(16, 25, 79, .22); font-size: 16px; }
#grader-app .gr-input:focus { box-shadow: inset 0 0 0 2px var(--gr-navy), 0 0 0 3px rgba(255, 203, 5, .6); }
#grader-app .gr-picked { background: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--gr-line), inset 4px 0 0 var(--gr-yel); border-radius: 0; }
#grader-app .gr-picked b { font-family: var(--gr-disp); font-weight: 800; font-size: 16px; color: var(--gr-navy); }
#grader-app .gr-picked small { font: 500 11.5px/1.35 var(--gr-mono); color: var(--gr-slate); }
#grader-app .gr-picked a { color: var(--gr-navy); font-weight: 800; }
#grader-app .gr-listbox { border-radius: 0; border: 0; box-shadow: 0 0 0 2px var(--gr-navy), 0 18px 34px -14px rgba(11, 17, 64, .45); }
/* shop picks: square cut cards, navy kind tag, yellow buttons */
#grader-app .gr-rail { margin-top: 6px; }
#grader-app .gr-prod { border-radius: 0; border: 0; box-shadow: inset 0 0 0 1px var(--gr-line); }
#grader-app .gr-prod:hover { box-shadow: inset 0 0 0 2px var(--gr-navy); transform: none; }
#grader-app .gr-prod-kind { border-radius: 0; }
#grader-app .gr-prod-name { font-family: var(--gr-disp); font-weight: 800; font-size: 14px; }
#grader-app .gr-prod-price { font: 900 19px var(--gr-disp); font-stretch: 110%; color: var(--gr-navy); }
#grader-app .gr-prod-seller, #grader-app .gr-prod-host, #grader-app .gr-prod-cur { font-family: var(--gr-mono); font-weight: 500; }
#grader-app .gr-prod-cta { background: var(--gr-yel); color: var(--gr-navy); }
#grader-app .gr-prod:hover .gr-prod-cta { background: #ffd83d; color: var(--gr-navy); }
#grader-app .gr-care .gr-caution { margin: 12px 0 0; border-radius: 0; background: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--gr-line), inset 4px 0 0 #b45309;
  font-size: 13.5px; color: #3d4359; }
/* card-edge guides' handles: the cyan face is set in the SVG; same size and behaviour as the border handles */
#grader-app .gr-hd-o[hidden] { display: none; }

/* results stacked full width on every screen: Centering, Should you grade it?, Corners & edges, Grade estimate,
   Surface scan, Protect it; the card itself keeps a readable size inside its full-width panel */
#grader-app .gr-res-grid { grid-template-columns: minmax(0, 1fr) !important; }
#grader-app .gr-viewer > .gr-stage, #grader-app .gr-viewer > .gr-legend, #grader-app .gr-viewer > .gr-toolbar,
#grader-app .gr-viewer > .gr-hint, #grader-app .gr-viewer > .gr-vactions, #grader-app .gr-viewer > .gr-share-msg,
#grader-app .gr-viewer > .gr-tabs { max-width: 480px; margin-left: auto; margin-right: auto; }
#grader-app .gr-viewer > .gr-stage { width: 100%; }
@media (min-width: 900px) {
  #grader-app .gr-zgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
  #grader-app .gr-subs { max-width: 760px; margin-left: auto; margin-right: auto; }
}
/* stacked results: the centering panel scrolls with the page (it was pinned for the old side-by-side layout) */
#grader-app .gr-viewer { position: static !important; }
/* phones: an up/down swipe over the card scrolls the page; a sideways drag (or the handles) inspects */
#grader-app .gr-stage:not(.gr-stage-manual) .gr-stage-cv { touch-action: pan-y pinch-zoom; }
/* reserve the intro's height before the script draws it, so the guides below don't jump (CLS) */
#grader-app:not(.gr-on) { min-height: 464px; }
@media (max-width: 700px) { #grader-app:not(.gr-on) { min-height: 610px; } }

/* ═══ photo step 2026-11: Front / Back cards with real card artwork, centred; tap a card (or drop on it) to add
   a photo; Camera and Upload buttons under each ═══ */
#grader-app .gr-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: 14px; margin: 10px auto 6px; }
#grader-app .gr-slot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
#grader-app .gr-slot-pick { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; cursor: pointer; background: #fff;
  border: 0; box-shadow: inset 0 0 0 2px var(--gr-line); transition: box-shadow .15s, transform .15s; }
#grader-app .gr-slot-pick:hover { box-shadow: inset 0 0 0 2px var(--gr-navy); }
#grader-app .gr-slot-pick:focus-within { outline: 3px solid var(--gr-blue); outline-offset: 2px; }
#grader-app .gr-slot.has-shot .gr-slot-pick { box-shadow: inset 0 0 0 2px var(--gr-navy), inset 0 -4px 0 #15803d; }
#grader-app .gr-slot.is-over .gr-slot-pick, #grader-app .gr-slot-pick.is-over { box-shadow: inset 0 0 0 3px var(--gr-yel); }
#grader-app .gr-slot-img { aspect-ratio: 63 / 88; background: #0b1140; border-radius: 0; }
#grader-app .gr-slot-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4.5% / 3.2%; }
#grader-app .gr-slot-img canvas { width: 100%; height: 100%; object-fit: contain; }
#grader-app .gr-slot-t { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
#grader-app .gr-slot-t b { font-family: var(--gr-disp); font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: 16px; color: var(--gr-navy); }
#grader-app .gr-slot-t small { font: 500 11px/1.2 var(--gr-mono); color: var(--gr-slate); display: inline-flex; align-items: center; gap: 4px; }
#grader-app .gr-slot-pick input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
#grader-app .gr-slot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#grader-app .gr-slot-btns .gr-btn-tool { min-height: 44px; padding: 6px 6px; font-size: 12.5px; gap: 5px; white-space: nowrap; }
#grader-app .gr-slot-btns > :only-child { grid-column: 1 / -1; }
#grader-app .gr-slot.is-locked .gr-slot-pick { opacity: .55; cursor: not-allowed; }
#grader-app .gr-slot.is-locked .gr-slot-pick input, #grader-app .gr-btn-tool.is-disabled { pointer-events: none; }
#grader-app .gr-btn-tool.is-disabled, #grader-app .gr-btn-tool[disabled] { opacity: .5; cursor: not-allowed; }
#grader-app .gr-slot > .gr-link { align-self: center; min-height: 36px; }
#grader-app .gr-capture .gr-drop-hint { text-align: center; margin: 4px 0 12px; }
#grader-app .gr-capture > .gr-h2 { text-align: center; }
@media (max-width: 400px) { #grader-app .gr-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } #grader-app .gr-slot-btns { grid-template-columns: 1fr; } }
/* the surface scan button after a scan: greyed out until another card */
#grader-app .gr-surface .gr-btn[disabled] { background: #e4e8f4; color: #4f566c; opacity: 1; cursor: default; filter: none; }

/* share panel: the 9:16 image large, then the ways to share it */
#grader-app .gr-share-dlg { width: min(94vw, 760px); }
#grader-app .gr-share-dlg .gr-dlg-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 4px 20px; align-items: start; }
#grader-app .gr-share-dlg .gr-dlg-head { grid-column: 1 / -1; }
#grader-app .gr-share-prev { grid-row: span 3; }
#grader-app .gr-share-prev img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #0b1140;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
#grader-app .gr-share-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
#grader-app .gr-share-opts .gr-share-main { grid-column: 1 / -1; min-height: 54px; font-size: 15px; }
#grader-app .gr-share-opts .gr-btn-tool { min-height: 46px; font-size: 13px; }
#grader-app .gr-share-opts .gr-btn-line { min-height: 46px; }
#grader-app .gr-share-tip { margin: 6px 0 0; font-size: 13px; }
#grader-app .gr-share-dlg .gr-share-msg { text-align: left; }
@media (max-width: 620px) {
  #grader-app .gr-share-dlg .gr-dlg-in { grid-template-columns: 1fr; }
  #grader-app .gr-share-prev { grid-row: auto; display: flex; justify-content: center; }
  #grader-app .gr-share-prev img { width: auto; max-width: 62%; max-height: 46vh; }
}
#grader-app .gr-share-opts .gr-share-copy { grid-column: 1 / -1; }

/* which printing (1st Edition, Unlimited, Reverse Holo): chips above the verdict */
#grader-app .gr-printing { border: 0; margin: 0 0 14px; padding: 0; }
#grader-app .gr-printing legend { font: 700 13px/1.2 var(--gr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gr-navy); margin-bottom: 8px; padding: 0; }
#grader-app .gr-print-opts { display: flex; flex-wrap: wrap; gap: 8px; }
#grader-app .gr-chip { min-height: 44px; padding: 8px 16px; border: 2px solid var(--gr-navy); background: #fff; color: var(--gr-navy);
  font: 700 14px var(--gr-disp); cursor: pointer; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
#grader-app .gr-chip.is-on { background: var(--gr-navy); color: #ffcb05; }
#grader-app .gr-chip:focus-visible { outline: 3px solid #ffcb05; outline-offset: 2px; }
#grader-app .gr-printing .gr-sub { margin: 8px 0 0; font-size: 13.5px; }
#grader-app .gr-read-note { margin: 10px 0 0; }
/* photo step on phones: both cards' Camera / Upload buttons level, full width, never cropped; tips art centred */
#grader-app .gr-slot { display: flex; flex-direction: column; }
#grader-app .gr-slot-btns { margin-top: auto; }
#grader-app .gr-slot-btns .gr-btn-tool { overflow: visible; }
#grader-app .gr-slot-btns .gr-btn-tool .gr-ic { flex: none; }
@media (max-width: 560px) {
  #grader-app .gr-slot-btns { grid-template-columns: 1fr; gap: 8px; }
  #grader-app .gr-slot-btns .gr-btn-tool { font-size: 13px; padding: 6px 8px; }
}
#grader-app .gr-tips .gr-art { margin: 0 auto; justify-self: center; }
