
:root{color-scheme:dark;font-family:system-ui;background:#0b0d12;color:#edf3ef}*{box-sizing:border-box}body{margin:0}header{padding:22px;background:#151b20;border-bottom:2px solid #91e163}header small{color:#91e163;letter-spacing:.15em;font-weight:800}h1{margin:6px 0}main{max-width:1050px;margin:auto;padding:16px;display:grid;gap:14px}section{background:#171d22;border:1px solid #344049;border-radius:14px;padding:18px}h2{margin:0 0 12px;font-size:1.2rem}p,.note{color:#b9c6c0;line-height:1.45}label{display:grid;gap:5px;font-size:.88rem;color:#c8d5cf;font-weight:600}input,select,textarea,button{font:inherit;border-radius:8px;border:1px solid #536159;padding:11px;background:#0b1013;color:white;width:100%}button{background:#a0ed72;color:#101b10;font-weight:800;border:0;cursor:pointer}button.secondary{background:#33433a;color:white}button.danger{background:#603b3b;color:white}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.actions>*{width:auto;flex:1}.warn{border-left:4px solid #ffc45c;background:#332819;padding:12px;color:#ffe4b0}.value{font-size:1.5rem;color:#a0ed72;font-weight:800}canvas{width:100%;height:auto;touch-action:manipulation;border-radius:8px;background:#090c0e}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid #45514b;padding:8px 3px}a{color:#b6f293}#printhead{display:none}.scroll{overflow:auto}@media print{body{background:white;color:black}header,main>section:not(#estimate),#estimate button,.no-print{display:none!important}main{display:block;padding:0}section{background:white;color:black;border:0}#printhead{display:block}table th,table td{border-color:#aaa}a{color:black}}

/* ORANGE WORKFLOW TEXT FIX */
body main > p.simple-flow {
  color: #ff5f00 !important;
  font-weight: 900 !important;
  -webkit-text-stroke: 1px #101010;
  text-shadow: 2px 2px 0 #101010,
               -1px -1px 0 #101010,
               0 3px 5px #000 !important;
}





/* GC READABLE 3D TEXT FIX */
@media screen {
  header h1, header small, header div,
  main h2, main h3, main label,
  main p, main .note, main .value,
  main th, main td, main summary,
  main a {
    text-shadow: 1px 2px 2px rgba(0,0,0,.35) !important;
  }

  main button {
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
  }

  main input, main select, main textarea {
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
  }

  body main > p.simple-flow {
    text-shadow:
      1px 1px 0 #101010,
      2px 2px 3px rgba(0,0,0,.5) !important;
  }
}

.camera-preview{width:100%;max-height:60vh;background:#000}
.restore-backup{flex:1}
.learn-button{display:inline-block;margin-top:12px;padding:9px 13px;border-radius:8px;background:#a0ed72;color:#101b10;font-weight:800;text-decoration:none}.learn-section h3{margin-top:20px}.learn-section ol{color:#d7e2dc;line-height:1.55;padding-left:24px}.tutorial-video{display:block;width:100%;max-width:960px;border:1px solid #536159;border-radius:10px;background:#000}

/* Learn: responsive player, readable fallback, and a compact install guide. */
.learn-section{scroll-margin-top:16px}
.learn-video{display:block;width:100%;height:auto;aspect-ratio:16 / 9;object-fit:contain;box-sizing:border-box;background:#0b0e10;border:1px solid #506054;border-radius:10px}
.learn-video-meta{display:flex;flex-wrap:wrap;gap:.5rem .85rem;align-items:center;color:#c0d0c6;font-size:.92rem;margin:.65rem 0}
.learn-video-meta a{color:#a0ed72;text-decoration-thickness:2px;text-underline-offset:.2em}
.learn-video-meta a:focus-visible,.learn-install summary:focus-visible{outline:2px solid #a0ed72;outline-offset:3px}
.learn-install{margin-top:1rem;border-top:1px solid #40504a;padding-top:.8rem}
.learn-install summary{font-weight:700;cursor:pointer;color:#a0ed72}
.learn-install ul{padding-left:1.3rem;line-height:1.5}
.learn-install li+li{margin-top:.4rem}

#play-walkthrough{background:#a0ed72;color:#101b10}
#play-walkthrough[hidden],#jump-to-scans[hidden],#learn-video-status:empty{display:none}

/* Let the Learn card shrink with the phone rather than a wide estimate table. */
@media (max-width:600px){
  main{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
  main>.learn-section{min-width:0;max-width:100%;overflow-wrap:anywhere}
  #learn-video{max-width:100%;object-fit:contain}
}
