:root {
  color-scheme: light;
  font: 16px/1.6 system-ui, sans-serif;
  color: #122823;
  background: #f4f7f5;
  --ink: #122823;
  --muted: #4d635a;
  --action: #175849;
  --line: #ccdad3;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { max-width: 1140px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 44px); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.top, nav, .inline, .section-heading, .launch-actions { display: flex; align-items: center; gap: 12px; }
.top { min-height: 68px; justify-content: space-between; flex-wrap: wrap; padding-block: 7px; }
.brand { color: var(--ink); font-size: 19px; font-weight: 750; text-decoration: none; }
nav { flex-wrap: wrap; gap: 6px 14px; }
nav a { color: var(--muted); text-decoration: none; padding-block: 9px; }
nav a[aria-current] { color: var(--action); text-decoration: underline; text-underline-offset: 5px; }
main { padding-block: 48px 56px; }
.intro { margin-bottom: 26px; }
h1, h2, h3, p, ul { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.16; letter-spacing: -.03em; }
h2 { font-size: 1.23rem; }
h3 { font-size: 1rem; }
p { color: var(--muted); }
.intro p { margin-top: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 3vw, 26px); margin-bottom: 16px; }
.access { max-width: 610px; }
.google-login { margin-top: 14px; }
.grant-form { margin-top: 14px; }
.access p { margin: 13px 0 8px; font-size: .9rem; }
a { color: var(--action); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #23705b; outline-offset: 3px; }
label { display: block; font-weight: 650; margin-bottom: 5px; font-size: .91rem; }
input, button, .button { font: inherit; min-height: 44px; border-radius: 8px; }
input { width: 100%; min-width: 0; background: #fff; color: var(--ink); border: 1px solid #92a89d; padding: 8px 10px; }
button, .button { border: 1px solid transparent; background: var(--action); color: white; padding: 8px 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
button:disabled { opacity: .55; cursor: wait; }
button:hover:not(:disabled), .button:hover { filter: brightness(.92); }
.quiet, .secondary { background: #f0f5f2; color: var(--action); border: 1px solid var(--line); }
.status { margin: 12px 0; min-height: 1.6em; }
.status:empty { display: none; }
.status[data-error] { color: #982d25; }
.section-heading { justify-content: space-between; flex-wrap: wrap; }
.section-heading { margin-bottom: 16px; }
body:has(.tool-open) { display: flex; flex-direction: column; height: 100dvh; }
body:has(.tool-open) .site-header { display: none; }
.tool-open { flex: 1; width: 100%; max-width: none; min-height: 0; padding: 0; }
#tool-frame-slot, #tool-frame-slot iframe { width: 100%; height: 100%; }
#tool-frame-slot iframe { display: block; border: 0; }
#launch p { margin-top: 4px; }
.launch-actions { flex-wrap: wrap; margin-top: 14px; }
.grant-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 11rem) auto; gap: 12px; align-items: end; }
.section-heading input { max-width: 300px; }
.rows { list-style: none; padding: 0; }
.rows li { padding-block: 11px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; overflow-wrap: anywhere; }
.rows li:first-child { margin-top: 8px; }
.row-detail { font-size: .87rem; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width: 570px) {
  main { padding-block: 36px; }
  .grant-form { grid-template-columns: minmax(0, 1fr); }
  .google-login { width: 100%; }
  .inline { align-items: stretch; flex-direction: column; }
}


#profile { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: clamp(16px, 3vw, 26px); border: 1px solid #d9d5ce; border-radius: 9px; color: #231f20; }
#profile::backdrop { background: rgb(36 35 33 / 55%); }
#profile .section-heading { margin-bottom: 8px; }
#profile-form { margin-block: 14px; }
#profile-form button { margin-top: 8px; }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
#profile p { overflow-wrap: anywhere; }
#delete-confirmation { margin-top: 18px; padding-top: 16px; border-top: 1px solid #d9d5ce; }
#delete-confirmation .profile-actions { margin-top: 12px; }
.danger { background: #fff; border-color: #c08b84; color: #872b21; }
.help-page { max-width: 780px; }
.help-page .panel :is(p,ol,ul) { margin-block: 8px 0; }
.help-page .panel li + li { margin-top: 5px; }

#account-menu { inset: auto max(12px, 4vw) auto auto; margin: 0; min-width: 164px; max-width: calc(100% - 24px); padding: 5px; border: 1px solid #d9d5ce; border-radius: 6px; background: white; color: #231f20; box-shadow: 0 4px 18px rgb(36 35 33 / 16%); }
#account-menu :is(a,button) { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 6px 11px; border: 0; border-radius: 3px; background: transparent; color: inherit; text-decoration: none; justify-content: flex-start; }
#account-menu :is(a,button):is(:hover,:focus-visible) { background: #eeece7; }

.guide-header { background: #242321; border: 0; }
.guide-header :is(.brand,nav a) { color: white; }
.help-page { max-width: 1010px; }
.guide-cover { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: clamp(20px, 5vw, 46px); color: #fff; background: #242321; }
.guide-cover img { width: clamp(54px, 10vw, 80px); height: auto; }
.guide-cover p { color: #e3dfd8; }
.guide-cover .guide-kicker { margin-bottom: 8px; font-size: .87rem; }
.guide-cover h1 + p { margin-top: 10px; }
.guide-contents { gap: 0 20px; margin-block: 12px 24px; border-bottom: 1px solid #d9d5ce; }
.guide-contents a { color: #533729; }
.help-page .panel { border-color: #d9d5ce; border-radius: 0; }
.guide-import { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.guide-import dl { margin-block: 12px; }
.guide-import dt { font-weight: 700; }
.guide-import dd { margin: 0 0 8px; color: var(--muted); }
.guide-import figure { margin: 0; }
.guide-import img { display: block; width: 100%; height: auto; border: 1px solid #d9d5ce; }
.guide-import figcaption { margin-top: 5px; font-size: .83rem; color: var(--muted); }
@media(max-width: 620px) {
  .guide-import { grid-template-columns: 1fr; gap: 16px; }
  .guide-contents { gap: 0 12px; }
}
