:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #0b1020;
  color: #e8ecf7;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 16rem;
}

button,
input {
  font: inherit;
}

button {
  min-height: 2.4rem;
  border: 1px solid #34405b;
  border-radius: 0.55rem;
  padding: 0.45rem 0.8rem;
  background: #18223a;
  color: inherit;
  cursor: pointer;
}

button:hover {
  background: #22304f;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #7aa2ff;
  outline-offset: 1px;
}

.browser {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.control-shell {
  background: #0b1020;
}

.toolbar {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem;
  background: #10182b;
  border-bottom: 1px solid #27324a;
}

.address-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.address {
  flex: 1;
  min-width: 8rem;
  height: 2.4rem;
  border: 1px solid #34405b;
  border-radius: 0.55rem;
  padding: 0 0.8rem;
  background: #080d19;
  color: inherit;
}

.viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.viewport iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.content-shell {
  background: #0b1020;
}

.content-app,
.content-viewport {
  width: 100%;
  height: 100%;
}

.content-viewport {
  position: relative;
  background: #fff;
}

.content-viewport iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.content-logout {
  display: grid;
  place-items: center;
  background: #0b1020;
}

.logout-message {
  color: #dbe4ff;
  text-align: center;
}

.status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #0b1020;
  color: #dbe4ff;
  text-align: center;
  z-index: 1;
}

.login-card {
  width: min(28rem, calc(100% - 2rem));
  margin: 12vh auto 0;
  padding: 2rem;
  border: 1px solid #27324a;
  border-radius: 1rem;
  background: #10182b;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 35%);
}

.login-card h1 {
  margin-top: 0;
}

.login-card form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.login-card input {
  height: 2.6rem;
  border: 1px solid #34405b;
  border-radius: 0.55rem;
  padding: 0 0.75rem;
  background: #080d19;
  color: inherit;
}

.error {
  min-height: 1.5rem;
  color: #ff9f9f;
}

[hidden] {
  display: none !important;
}

@media (max-width: 42rem) {
  .toolbar {
    gap: 0.3rem;
  }

  .toolbar button {
    padding-inline: 0.55rem;
  }

  #logout {
    display: none;
  }
}
