:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --green: #294f3d;
  --muted: #687165;
  --line: #d9ded2;
  color: #222923;
  background: #f6f5ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -1.8px;
  text-decoration: none;
  color: inherit;
}
.brand span {
  color: #52733e;
  margin-left: 6px;
}
.connect,
button {
  border: 1px solid #bfc8b9;
  padding: 11px 18px;
  border-radius: 28px;
  min-height: 44px;
  font-family: inherit;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
}
main {
  max-width: 1040px;
  margin: 64px auto;
  padding: 0 28px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #65725f;
  font-weight: 750;
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -3px;
  margin: 26px 0;
}
em {
  font-style: normal;
  color: #56784e;
}
.intro {
  color: #697066;
  font-size: 16px;
}
.prompt {
  display: flex;
  justify-content: space-between;
  max-width: 570px;
  font-size: 22px;
  background: #e9eddf;
  padding: 24px;
  border-radius: 14px;
  margin: 28px 0 18px;
}
.prompt span {
  color: #527747;
}
#message {
  color: #747c6c;
  font-size: 14px;
}
#things {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 45px;
}
.card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid #d9ded2;
  padding: 28px;
  border-radius: 14px;
  background: #fcfcf8;
}
.card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}
.card span {
  font-size: 13px;
  color: #6d7966;
}
footer {
  display: flex;
  justify-content: space-between;
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
  padding: 30px 0;
  gap: 20px;
  font-size: 12px;
  color: #7a8273;
}
iframe {
  width: 100%;
  height: 560px;
  border: 1px solid #d9ded2;
  border-radius: 14px;
  background: white;
}
#viewer h2 {
  margin-top: 50px;
}
#audience {
  color: #65725f;
}
[hidden] {
  display: none !important;
}
nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
.panel {
  max-width: 520px;
  margin: 40px auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfcf8;
}
.panel h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
.panel form {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
input {
  width: 100%;
  font: inherit;
  padding: 13px;
  border: 1px solid #bfc8b9;
  border-radius: 10px;
  background: #fff;
  color: #222923;
}
input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #90ad7d;
  outline-offset: 3px;
}
.panel button[type="submit"],
#approve {
  background: var(--green);
  border-color: var(--green);
  color: white;
  font-weight: 600;
  padding: 14px 22px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.note {
  font-size: 13px;
  color: #697066;
}
.panel .card {
  margin: 14px 0;
}
#device-review {
  margin-top: 28px;
}
#deny {
  margin-left: 10px;
}
#device-code {
  font-size: 22px;
  letter-spacing: 2px;
}
#open-actions {
  margin: 20px 0;
}
#invite-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.invite-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.invite-top,
.invite-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.invite-state {
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
}
.invite-state.active {
  color: #355d35;
  background: #e5edda;
}
.invite-state.used {
  color: #777d73;
  background: #eceee9;
}
.invite-meta {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}
.invite-meta input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  font-size: 12px;
}
.invite-meta button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

.panel > p {
  color: var(--muted);
  line-height: 1.8;
}
.note {
  line-height: 1.8;
}
.note a {
  color: var(--green);
  text-underline-offset: 4px;
}
.panel button[type="submit"]:hover,
#approve:hover {
  background: #3b6249;
}
.card[href]:hover {
  border-color: #8ba27b;
}
button:not(:disabled):hover,
.connect:hover {
  border-color: #638454;
}
nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}
#message:empty {
  display: none;
}
@media (max-width: 760px) {
  header,
  footer {
    width: calc(100% - 40px);
  }
  header {
    padding: 19px 0;
    flex-wrap: wrap;
    gap: 16px;
  }
  .brand {
    font-size: 29px;
  }
  nav {
    gap: 10px;
  }
  nav a {
    font-size: 12px;
  }
  main {
    margin: 40px auto;
    padding: 0 20px;
  }
  h1 {
    font-size: clamp(34px, 8vw, 48px);
    letter-spacing: -1.5px;
  }
  .panel {
    margin: 24px auto;
    padding: 26px 22px;
  }
  .panel h1 {
    font-size: 30px;
  }
  input {
    font-size: 16px;
  }
  .prompt {
    font-size: 17px;
    padding: 20px;
    gap: 12px;
  }
  #things {
    grid-template-columns: minmax(0, 1fr);
  }
  footer {
    flex-wrap: wrap;
  }
}

.password-control {
  display: grid;
  gap: 8px;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 54px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 11px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
}
.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle:hover {
  background: #f0f3ea;
  color: var(--green);
}
.eye-slash {
  display: none;
}
.is-revealed .eye-slash {
  display: block;
}
.form-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #debcb1;
  border-radius: 10px;
  color: #913a2d;
  background: #fff2ed;
  font-size: 14px;
  line-height: 1.7;
}
.form-error:focus {
  outline: 2px solid #bd7562;
  outline-offset: 3px;
}
input[aria-invalid="true"] {
  border-color: #b96150;
}
nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
}
.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;
}
