/* The gate is the archive viewer's (archive/viewer/static/style.css): a white
   page with one empty password field 30% down, 320 px wide. */
:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f1e1a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
}

.shell-main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30vh 0 0;
}

.gate {
  width: min(100%, 320px);
  margin: 0 auto;
}

.gate form {
  display: grid;
  gap: 6px;
}

.gate-entry {
  display: flex;
  gap: 10px;
}

input {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  border: 1px solid #c9c1b2;
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
}

input:focus-visible {
  outline: 3px solid #766600;
  outline-offset: 2px;
}

.gate-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  text-align: center;
}

/* Heading, label, button and a routine status: screen readers only. */
.gate h1,
.gate form > label,
[data-gate-submit],
[data-gate-status]:not([data-tone]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Signed in: the app takes the whole page. */
body[data-shell-state="open"] {
  overflow: hidden;
}

#out {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
