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

* {
  box-sizing: border-box;
}

html,
body,
#hub-root {
  width: 100%;
  height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

.hub-login-page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(38, 213, 184, 0.14), transparent 34%),
    linear-gradient(180deg, #151a20 0%, #0d1115 100%);
}

.hub-login-panel {
  width: min(380px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(20, 25, 31, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.hub-login-panel h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.hub-field {
  display: grid;
  gap: 8px;
}

.hub-field label,
.hub-remember {
  color: #c5d0d2;
  font-size: 13px;
}

.hub-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: #f7faf8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0d1115;
  outline: none;
}

.hub-field input:focus {
  border-color: #41d9c2;
  box-shadow: 0 0 0 3px rgba(65, 217, 194, 0.18);
}

.hub-remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-error {
  min-height: 18px;
  margin: 0;
  color: #ffb4a8;
  font-size: 13px;
}

.hub-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: #06100e;
  background: #55e0cc;
  cursor: pointer;
  font-weight: 700;
}

.hub-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.hub-shell {
  height: 100%;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  background: #0d1115;
}

.hub-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #11171d;
}

.hub-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.hub-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
}

.hub-tab,
.hub-logout {
  height: 34px;
  padding: 0 14px;
  color: #c8d2d4;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.hub-tab.active {
  color: #06100e;
  background: #55e0cc;
}

.hub-tab:focus-visible,
.hub-logout:focus-visible,
.hub-button:focus-visible {
  outline: 2px solid #f0d36b;
  outline-offset: 2px;
}

.hub-logout {
  border-color: rgba(255, 255, 255, 0.12);
}

.hub-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0d1115;
}

.hub-checking {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: #c8d2d4;
}

@media (max-width: 640px) {
  .hub-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 8px;
  }

  .hub-brand {
    font-size: 14px;
  }

  .hub-tab,
  .hub-logout {
    padding: 0 10px;
  }
}
