:root {
  color-scheme: dark;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: #101316;
  color: #f2f4f4;
  font-synthesis: none;
  --text: #f2f4f4;
  --panel: #191e22;
  --muted: #b3babe;
  --line: #4b5359;
  --accent: #cbef82;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 920px;
  margin: auto;
  padding: 28px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 750;
  letter-spacing: .16em;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
}
.brand span {
  color: var(--accent);
  font-size: 26px;
  margin-right: 8px;
}
.tag,
.eyebrow {
  font: 12px ui-monospace,monospace;
  letter-spacing: .12em;
  color: var(--muted);
}
main {
  padding-top: 64px;
}
.eyebrow {
  color: var(--accent);
}
h1 {
  font-size: clamp(40px,7vw,68px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 20px 0;
}
h2 {
  font-size: 18px;
  font-weight: 600;
}
.intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 42px;
}
section {
  margin-top: 28px;
}
#signin-panel {
  padding: 26px;
  background: #191e22;
  border: 1px solid var(--line);
  border-radius: 12px;
}
label {
  display: block;
  margin: 18px 0 8px;
  font-size: 14px;
}
.form-row {
  display: flex;
  gap: 12px;
}
input,
textarea,
button {
  font: inherit;
  border-radius: 7px;
  padding: 12px 16px;
}
input,
textarea {
  background: #101316;
  border: 1px solid #7b858c;
  color: inherit;
  min-width: 0;
  flex: 1;
}
form > input,
form > textarea,
.agent-panel > input,
#new-key > input {
  width: 100%;
}
form > button {
  margin-top: 16px;
}
textarea {
  resize: vertical;
}
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
summary:focus-visible,
textarea:focus-visible,
article:focus-visible {
  outline: 3px solid #9acbff;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: -80px;
  padding: 14px;
  color: #101316;
  background: var(--accent);
}
.skip-link:focus {
  top: 0;
}
.actions,
.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}
.key-row {
  justify-content: space-between;
}
.tool {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.tool input {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  accent-color: var(--accent);
}
.tool label {
  display: inline;
  margin-left: 8px;
  overflow-wrap: anywhere;
}
.service h4 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.service {
  min-width: 0;
}
.service p {
  overflow-wrap: anywhere;
}
.section-heading {
  gap: 12px;
  flex-wrap: wrap;
}
.services:empty {
  margin-top: 0;
}
a {
  color: var(--accent);
}
button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #101316;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
}
button.quiet {
  background: transparent;
  color: #e0e6e8;
  border-color: #69747c;
  font-size: 14px;
}
button[aria-disabled=true] {
  opacity: .6;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #9acbff;
  outline-offset: 4px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.service {
  padding: 22px;
  background: #191e22;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.service-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-icon {
  width: 38px;
  height: 38px;
  background: #2b343b;
  border: 1px solid #65717a;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.service h3 {
  font-size: 17px;
  margin: 0;
}
.service .status {
  margin: 16px 0 8px;
  font-size: 14px;
}
.service .account {
  word-break: break-word;
  min-height: 24px;
}
.service .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.service .actions button {
  font-size: 14px;
  padding: 9px 13px;
}
.agent-panel {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.agent-panel code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  background: #191e22;
  padding: 14px;
  margin: 16px 0;
}
#notice {
  color: var(--accent);
  line-height: 1.6;
}
#error {
  color: #ffb5ae;
  line-height: 1.6;
}
footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
[hidden] {
  display: none!important;
}
@media (max-width:620px) {
  header,
  main,
  footer {
    padding: 22px;
  }
  .tag {
    font-size: 10px;
  }
  main {
    padding-top: 42px;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
  }
  .form-row button {
    width: 100%;
  }
}

#team-detail:focus-visible {
  outline: 3px solid #9acbff;
  outline-offset: 4px;
}
#team-detail li {
  overflow-wrap: anywhere;
}
#invitation-result > input {
  width: 100%;
}
.share-tools {
  margin-top: 18px;
}

#organizations button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#team-detail h3 {
  overflow-wrap: anywhere;
}

/* Native dialogs provide keyboard focus containment and Escape cancellation. */
dialog {
  max-width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}
dialog::backdrop {
  background: rgb(0 0 0 / 65%);
}
#gmail-search-review:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
#gmail-search-review code {
  overflow-wrap: anywhere;
}
#gmail-search-review pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
