html,
body {
  margin: 0;
  height: 100%;
  background: #0a1b1d;
  color: #eeeae0;
}

[hidden] {
  display: none !important;
}

.gate {
  min-height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 24%, #163836, transparent 42%),
    #0a1b1d;
  font: 16px/1.45 Tahoma, Geneva, Verdana, sans-serif;
}

.gate-card {
  width: min(28rem, calc(100% - 2rem));
  background: #2c2c2c;
  padding: 1.5rem 1.6rem 1.4rem;
  border: 2px solid;
  border-color: #6e6e6e #111 #111 #6e6e6e;
  box-shadow: 4px 4px 0 #000;
}

.brand {
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: #4aa894;
  margin: 0;
}

#status {
  margin: 0.85rem 0 0;
  color: #9aa09a;
  line-height: 1.45;
}

iframe.core {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
}

iframe.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #14120f;
  z-index: 1;
}

#frames {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* The content frame owns the pane body: the log, composer, and images. */
iframe.content {
  position: fixed;
  border: 0;
  background: #14120f;
  pointer-events: auto;
}

/* Above iframe.scene (1), the #frames layer (2), and #trust (4). */
.kernel-confirm {
  position: fixed;
  z-index: 6;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(28rem, calc(100% - 2rem));
  box-sizing: border-box;
  margin: 0;
  padding: 1.5rem 1.6rem 1.4rem;
  pointer-events: auto;
  background: #2c2c2c;
  color: #eeeae0;
  border: 2px solid;
  border-color: #6e6e6e #111 #111 #6e6e6e;
  box-shadow: 4px 4px 0 #000;
  font: 16px/1.45 Tahoma, Geneva, Verdana, sans-serif;
}

.kernel-confirm p {
  margin: 0 0 0.85rem;
}

.kernel-confirm pre {
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.6rem;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
  background: #181818;
  font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace;
}

.kernel-confirm input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.5rem;
  font: inherit;
}

.kernel-confirm button {
  font: inherit;
  margin: 0 0.5rem 0 0;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: #081410;
  background: #4aa894;
  border: 2px solid;
  border-color: #8ed2c4 #111 #111 #8ed2c4;
}

#trust,
.trust-badge {
  position: fixed;
  margin: 0;
  pointer-events: none;
  font: 12px/1.3 Georgia, serif;
  color: #f4efe6;
  background: #1c3a2a;
}

#trust {
  z-index: 4;
  top: 0;
  right: 0;
  padding: 2px 8px;
}

.trust-badge {
  padding: 2px 6px;
}

#trust[data-l1="unverified"],
#trust[data-l2="unverified"] {
  background: #5c2a24;
  color: #ffb4a8;
}

#status[data-state="verification-failed"] {
  margin: 0;
  color: #ffb4a8;
}

/* Hash or signature miss only. Other stops do not set data-flag. */
#gate[data-flag="verify"] .gate-card {
  background: #3a1412;
  border-color: #ff5a4a #2a0c0a #2a0c0a #ff5a4a;
}

#status[data-flag="verify"] {
  margin: 0;
  padding: 0.7rem 0.8rem;
  color: #fff8f6;
  background: #9d2b22;
  border: 2px solid #ff6b5a;
  box-shadow: 3px 3px 0 #3a0e0c;
  font-weight: 700;
}
