:root{font:16px/1.45 system-ui,sans-serif;color:#193027;background:#f5f4ed;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header,nav{display:flex;align-items:center;gap:.8rem}header{height:64px;padding:0 clamp(18px,5vw,80px);border-bottom:1px solid #c7cfc6;font-weight:600}.mark{font-size:26px;color:#366347}header .brand{margin-right:auto}#home{max-width:640px;margin:clamp(50px,15vh,170px) auto;padding:0 24px}.machine{font:600 12px/1.5 ui-monospace,monospace;letter-spacing:.15em;color:#556a59}h1{font:normal clamp(50px,9vw,90px)/1.08 Georgia,serif;letter-spacing:-.055em;margin:.2em 0}#message{color:#4c6154;max-width:48ch;min-height:1.5em}button{font:inherit;cursor:pointer;border:1px solid #a7b5a9;color:inherit;background:transparent;border-radius:8px;padding:.5em .9em}button:hover{background:#dbe5d9}button:focus-visible{outline:3px solid #987037;outline-offset:3px}button:disabled{opacity:.55}.primary{color:white;background:#244d39;margin-top:15px;padding:.8em 1.4em}.primary:hover{background:#34654b}#choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}#choices button{text-align:left;background:#fffdf7;padding:20px}#choices button:hover{border-color:#34654b}strong,small{display:block}small{font-size:13px;color:#526659;margin-top:4px}#console{background:#18231e;color:white}nav{padding:6px 16px;min-height:46px;flex-wrap:wrap;font-size:14px}nav button{color:white}nav button:hover{background:#334539}#quality{margin-right:auto;color:#bed8c3}@media(max-width:480px){#choices{grid-template-columns:1fr}header{height:52px}nav{gap:5px}}

/* Let the actual header and toolbar heights determine the space for the desktop. */
body:has(#console:not([hidden])) {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
main, #console { min-width: 0; min-height: 0; }
#console {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
#console > nav { flex: none; }
#console > output { flex: none; padding-inline: 16px; }
#screen {
  display: block;
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #101713;
}
#console.immersive {
  width: 100%;
  height: 100%;
  background: #101713;
}
#console.fill-window { position: fixed; inset: 0; z-index: 3; }
#console.immersive > nav {
  position: absolute;
  top: max(6px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  min-height: 0;
  padding: 0;
}
#console.immersive > nav > :not(#full-screen), #console.immersive > output { display: none; }
#console.immersive #full-screen {
  padding: 3px 12px;
  border-radius: 20px;
  background: #18231e;
  white-space: nowrap;
  opacity: .48;
}
#console.immersive #full-screen:hover, #console.immersive #full-screen:focus-visible { opacity: 1; }
#app-guide {
  max-width: min(28rem, 92vw);
  padding: 1.4rem;
  color: #193027;
  background: #fffdf7;
  border: 1px solid #a7b5a9;
  border-radius: 12px;
}
#app-guide::backdrop { background: rgb(15 24 19 / 50%); }
#app-guide h2 { font-size: 1.2rem; margin: 0; }
#app-guide form { text-align: right; }
@media (max-width: 480px) {
  header { gap: .4rem; padding-inline: 10px; }
  header button, nav button { padding: .4em .55em; }
}

