/* Optimance AR Viewer. System fonts only: nothing is fetched from a third party. */
:root {
  --ink: #12252b; --ink-soft: #3d5158; --paper: #ffffff; --tint: #eef3f5; --card: #ffffff; --line: #d6d2c8;
  --brand: #19657f; --brand-ink: #ffffff; --accent: #b4470f; --focus: #0b57d0; --ok: #1d6b38; --bad: #a1241b;
  --teal: #19657f; --radius: 10px; --gap: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef3f4; --ink-soft: #b9c6ca; --paper: #101a1e; --tint: #22343a; --card: #1a282d; --line: #33464d;
          --brand: #7cc4dc; --brand-ink: #06222b; --accent: #ffb38a; --focus: #9ec2ff; --ok: #7fd49a; --bad: #ff9c94; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; font-size: 1rem; background: var(--paper); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: .5rem; top: .5rem; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
header.bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  padding: .6rem 1rem; border-bottom: 2px solid var(--line); background: var(--card); }
header.bar .brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
header.bar h1 { font-size: 1.15rem; margin: 0; }
.logo { height: 40px; width: auto; display: block; }
picture { display: block; }
@media (max-width: 34rem) { .logo { height: 30px; } header.bar { flex-wrap: wrap; } header.bar h1 { font-size: 1rem; } }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-text { font-weight: 800; font-size: 1.2rem; color: var(--brand); letter-spacing: .02em; }
.menu-button { padding: .5rem .7rem; }
.bars { display: grid; gap: 5px; width: 24px; }
.bars span { display: block; height: 3px; border-radius: 2px; background: currentColor; }
.site-menu { position: absolute; right: .6rem; top: calc(100% + .4rem); z-index: 20; width: min(20rem, calc(100vw - 1.2rem));
  max-height: calc(100vh - 6rem); overflow-y: auto; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: .6rem 1rem 1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.menu-who { margin: .4rem 0 .6rem; padding: 0 .4rem .7rem; border-bottom: 2px solid var(--line); color: var(--ink-soft); font-size: .95rem; max-width: none; }
.menu-who strong { color: var(--ink); font-size: 1rem; }
.site-menu h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: .8rem 0 .2rem; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu a, .site-menu .linklike { display: block; width: 100%; text-align: left; padding: .6rem .4rem; min-height: 44px;
  color: var(--ink); text-decoration: none; border-radius: 6px; }
.site-menu a:hover, .site-menu .linklike:hover { background: var(--tint); }
.site-menu hr { border: 0; border-top: 2px solid var(--line); margin: .7rem 0 .4rem; }
button.linklike { background: transparent; border: 0; justify-content: flex-start; font-weight: 400; }
main { max-width: 68rem; margin: 0 auto; padding: 1rem; }
main:focus { outline: none; }
#shell-footer { background: var(--teal); color: #fff; text-align: center; padding: .9rem 1rem; margin-top: 2rem; }
#shell-footer p { margin: 0 auto; font-size: .8rem; max-width: none; color: #fff; }
h2 { font-size: 1.35rem; margin: 1.2rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
p { margin: .4rem 0 .8rem; max-width: 65ch; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button, .button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; min-width: 44px; padding: .55rem 1rem; border-radius: var(--radius); border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: .4rem; }
button.quiet, .button.quiet { background: transparent; color: var(--brand); }
button.danger { border-color: var(--bad); background: transparent; color: var(--bad); }
button[disabled] { opacity: .55; cursor: not-allowed; }
button[aria-pressed="true"], button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
label.inline { margin: 0; }
.row > .row.push-right { margin: 0 0 0 auto; flex-wrap: nowrap; }
.card > h2:first-child { margin-top: 0; }
.task { margin: 0; padding: .7rem 0; border-top: 1px solid var(--line); }
.row select { width: auto; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
label.check input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: none; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; max-width: 32rem; min-height: 44px; padding: .5rem .7rem; border: 2px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--ink); }
textarea { min-height: 6rem; }
/* File inputs: the real input stays focusable but invisible; its label is drawn as a normal button. */
.file-pick { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.file-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick label { margin: 0; font-weight: 400; }
.file-pick input[type=file]:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.obj-thumb { width: 64px; height: 48px; object-fit: contain; background: var(--tint); border-radius: 6px; }
.hint { color: var(--ink-soft); font-size: .92rem; font-weight: 400; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 var(--gap); }
.row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin: 1.1rem 0 .4rem; }
header.bar .row, .card > .row:first-child { margin: 0; }
.card + .card, section + section { margin-top: 1.4rem; }
.controls { margin-top: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--gap); list-style: none; padding: 0; margin: 0; }
.tile { width: 100%; height: 100%; flex-direction: column; align-items: stretch; padding: 0; overflow: hidden;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); text-align: left; }
.tile img, .tile .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--tint); display: block; }
.tile span { padding: .6rem .8rem; font-weight: 600; }
/* Sticky, so a message is seen even when the button that caused it is far down a long form. */
.status { padding: .7rem 1rem; border-radius: var(--radius); border: 2px solid var(--line); margin: .8rem 0;
  position: sticky; top: .5rem; z-index: 5; background: var(--card); }
.status.error { border-color: var(--bad); color: var(--bad); }
.status.ok { border-color: var(--ok); color: var(--ok); }
.status:empty { display: none; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.stage { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); align-items: start; }
@media (max-width: 52rem) { .stage { grid-template-columns: 1fr; } }
model-viewer { width: 100%; height: min(70vh, 34rem); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); --poster-color: transparent; }
.ar-button { position: absolute; bottom: 12px; right: 12px; }
.hotspot { min-width: 32px; min-height: 32px; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 3px solid #fff; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 0 0 2px #000; }
.hotspot[aria-pressed="true"] { background: #000; }
.controls button { padding: .4rem .7rem; }
.evidence { border-left: 5px solid var(--accent); }
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: .35rem 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap { overflow-x: auto; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 99px; border: 1px solid currentColor; font-size: .85rem; }
.codebox { font: 700 1.5rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; padding: .6rem 1rem;
  border: 2px dashed var(--accent); border-radius: var(--radius); display: inline-block; user-select: all; overflow-wrap: anywhere; }
.thumbs { display: flex; gap: .4rem; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
progress { width: 100%; max-width: 32rem; height: 1rem; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
