@font-face {
  font-family: "Nunito";
  src: url("/ui/fonts/Nunito-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --fft-pink: #e6007e;
  --fft-deep-pink: #bb2172;
  --fft-blue: #2daae1;
  --fft-blue-dark: #187fae;
  --fft-green: #96c11f;
  --ink: #535353;
  --ink-dark: #343434;
  --muted: #747474;
  --line: #e5e5e5;
  --paper: #ffffff;
  --wash: #f3f3f3;
  --pink-wash: #fff1f9;
  --blue-wash: #e2eff8;
  --green-wash: #e0ebde;
  --danger: #a81955;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(230, 0, 126, .09), transparent 27rem),
    radial-gradient(circle at 88% 88%, rgba(45, 170, 225, .12), transparent 30rem),
    var(--wash);
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--fft-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(45, 170, 225, .28);
  outline-offset: 3px;
}

.shell { width: min(100% - 2rem, 1120px); margin: 0 auto; }
.auth-shell { display: grid; place-items: center; min-height: 100vh; padding: 2rem; }
.auth-card, .panel {
  background: var(--paper);
  border: 1px solid rgba(83, 83, 83, .10);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(83, 83, 83, .10);
}
.auth-card { width: min(100%, 460px); padding: 2.6rem; border-top: 7px solid var(--fft-deep-pink); }
.login-logo { display: inline-block; width: 112px; line-height: 0; }
.login-logo img { display: block; width: 100%; height: auto; }
.topbar-logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink-dark); font-size: 1.15rem; font-weight: 800; }
.topbar-logo:hover { text-decoration: none; }
.topbar-logo img { width: 56px; height: auto; display: block; }
.topbar-logo span { border-left: 1px solid var(--line); padding-left: .65rem; }

.eyebrow {
  margin-top: 1rem;
  color: var(--fft-deep-pink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink-dark); font-weight: 700; line-height: 1.1; }
h1 { margin: 1.1rem 0 .75rem; font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: 1.55rem; }
p { color: var(--muted); line-height: 1.55; }
label { display: block; margin: 1.35rem 0 .45rem; color: var(--ink-dark); font-size: .92rem; font-weight: 700; }

.email-field { display: flex; align-items: stretch; width: 100%; }
.email-field input {
  min-width: 0;
  flex: 1 1 auto;
  border-radius: 8px 0 0 8px;
  border-right: 0;
}
.email-field span {
  display: flex;
  align-items: center;
  padding: 0 .9rem;
  color: var(--ink);
  background: var(--blue-wash);
  border: 1px solid #b9d8eb;
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  white-space: nowrap;
}
input {
  width: 100%;
  padding: .86rem 1rem;
  color: var(--ink-dark);
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
}
input:focus { outline: 3px solid rgba(45, 170, 225, .20); border-color: var(--fft-blue); }

button, .button {
  display: inline-block;
  padding: .78rem 1.35rem;
  color: #fff;
  background: var(--fft-pink);
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}
button:hover, .button:hover { color: #fff; background: var(--fft-deep-pink); text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
.button-wide { width: 100%; margin-top: 1.5rem; }
.button-secondary { color: #fff; background: var(--fft-blue); }
.button-secondary:hover { background: var(--fft-blue-dark); }
.notice { padding: .85rem 1rem; border-left: 5px solid var(--fft-pink); border-radius: 5px; color: var(--danger); background: var(--pink-wash); font-size: .92rem; }
.notice.success { border-color: var(--fft-green); color: #315d17; background: var(--green-wash); }
.fine-print { margin-top: 1.5rem; font-size: .84rem; }

.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-email { color: var(--muted); font-size: .9rem; }
.logout { padding: .55rem 1rem; color: var(--fft-pink); background: #fff; border: 2px solid var(--fft-pink); }
.logout:hover { color: #fff; background: var(--fft-pink); }
.page { padding: 3rem 0 5rem; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.page-header p { max-width: 620px; margin-bottom: 0; }
.page-header > a { font-weight: 700; }
.panel { padding: 1.6rem; margin-bottom: 1.3rem; }
.panel:nth-of-type(3n+1) { border-top: 6px solid var(--fft-pink); }
.panel:nth-of-type(3n+2) { border-top: 6px solid var(--fft-blue); }
.panel:nth-of-type(3n+3) { border-top: 6px solid var(--fft-green); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-title h2 { margin: 0; }
.panel-intro { margin: .35rem 0 0; }
.guid-value { color: var(--fft-deep-pink); font: 700 1.1rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; word-break: break-all; }
.guid-meta { color: var(--muted); font-size: .86rem; }
.guid-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: .85rem .65rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
.data-table th { color: var(--ink); background: var(--blue-wash); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.status { font-weight: 800; }
.role-form { display: flex; align-items: center; gap: .55rem; }
.role-form select { min-width: 7rem; padding: .62rem .8rem; color: var(--ink-dark); background: #fff; border: 1px solid #cfcfcf; border-radius: 8px; }
.role-form button, button.compact { padding: .62rem 1rem; }
.user-actions { display: flex; align-items: center; gap: .55rem; }
.button-danger { color: #fff; background: var(--danger); }
.button-danger:hover { background: #7f103e; }
.role-badge, .current-user { display: inline-block; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: capitalize; }
.role-badge { padding: .28rem .62rem; }
.role-admin { color: #8b1450; background: var(--pink-wash); }
.role-viewer { color: #175f80; background: var(--blue-wash); }
.current-user { margin-left: .5rem; padding: .2rem .5rem; color: #315d17; background: var(--green-wash); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.empty { padding: 1rem 0; color: var(--muted); }

@media (max-width: 650px) {
  .auth-shell { padding: 1rem; }
  .auth-card { padding: 1.6rem; }
  .email-field span { padding: 0 .65rem; font-size: .88rem; }
  .page { padding-top: 2rem; }
  .page-header { display: block; }
  .nav-email { display: none; }
  .panel-title { align-items: flex-start; flex-direction: column; }
  .deployments { font-size: .82rem; }
}

.login-form{max-width:340px;margin-top:1.4rem}.login-form .button-wide{width:100%}.login-form .email-field{width:100%}
