:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #15243b;
  background: #f4f6fb;
}
* {
  box-sizing: border-box;
}
/* Padding, not .shell's margin: a margin would collapse through body and
   start the gradient below a flat band at the top of the page. */
body {
  margin: 0;
  padding: 56px 0 30px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 0%, #dfe9ff 0, transparent 34%), #f4f6fb;
}
.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}
.brand-logo {
  display: block;
  width: auto;
  height: 44px;
}
.caption {
  font-size: 14px;
  font-weight: 650;
  color: #4b5d75;
}
.stage {
  max-width: 460px;
  margin: 0 auto;
}
.card {
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 16px 56px rgba(35, 63, 110, 0.08);
}
.card {
  background: #fff;
  border: 1px solid #e5ebf4;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #426aad;
  text-transform: uppercase;
  margin: 0 0 9px;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
}
h2 {
  font-size: 28px;
  line-height: 1.35;
}
.lead {
  color: #65738a;
  line-height: 1.6;
  word-break: keep-all;
  margin: 12px 0 26px;
}
.company,
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}
/* Mirrors the Google sign-in button: white surface, neutral border, leading icon. */
.company {
  position: relative;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #747775;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    background-color 0.15s,
    box-shadow 0.15s;
}
.company:hover {
  background: #f7f8f8;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.company:active {
  background: #eceded;
}
.company:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 2px;
}
.company-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #1c4b91;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8b98aa;
  font-size: 12px;
  margin: 8px 0 20px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e1e7ef;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #7d8aa0;
  padding: 0 2px 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.tabs button.selected {
  border-color: #2867c6;
  color: #2056a4;
}
form label {
  display: block;
  color: #33445f;
  font-size: 13px;
  font-weight: 700;
  margin: 17px 0;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cdd7e5;
  border-radius: 10px;
  background: #fff;
  color: #172439;
  font: inherit;
  padding: 12px 13px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: #3171cf;
  box-shadow: 0 0 0 3px #dbeaff;
}
.primary {
  background: #205fb9;
  border: 0;
  color: white;
  margin-top: 22px;
}
.primary:hover {
  background: #1a519f;
}
.hint {
  font-size: 13px;
  color: #66758a;
  line-height: 1.6;
  word-break: keep-all;
}
.account {
  margin-top: 20px;
}
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.account h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.quiet {
  background: white;
  border: 1px solid #b7c9e2;
  color: #245894;
  border-radius: 9px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
#message,
.status-message {
  min-height: 20px;
  font-size: 13px;
  color: #a13232;
  line-height: 1.5;
}
#message.success,
.status-message.success {
  color: #1c7250;
}
.status-message:empty {
  display: none;
}
#pending-list {
  display: grid;
  gap: 15px;
}
.pending {
  border: 1px solid #dce5f1;
  border-radius: 13px;
  padding: 18px;
}
.pending h4 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.pending small {
  color: #66758a;
}
.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  margin: 14px 0;
}
.roles label {
  font-weight: 500;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.roles input {
  width: auto;
  margin: 0;
}
.pending .primary {
  width: auto;
  padding: 0 18px;
  margin-top: 12px;
}
footer {
  font-size: 12px;
  color: #8898ad;
  text-align: center;
  margin-top: 24px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  body {
    padding: 28px 0;
  }
  .shell {
    width: calc(100% - 32px);
  }
  .card {
    padding: 26px;
  }
  .roles {
    grid-template-columns: 1fr;
  }
}
