:root {
  color-scheme: light;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202b26;
  background: #f5f6f3;
  --ink: #202b26;
  --muted: #526257;
  --accent: #286046;
  --line: #dce3da;
  --paper: #fff;
  --soft: #eaf0e8;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .65; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { width: min(100%, 84rem); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3.5rem); }
.masthead { background: #203c30; color: #eff5ee; box-shadow: inset 0 -1px #172f24; }
.brand { min-height: 4rem; display: flex; align-items: center; gap: .75rem; font-size: .94rem; }
.brand strong { font-size: 1.13rem; letter-spacing: -.03em; }
.brand img { border-radius: .38rem; }
.brand-divider { color: #9fb39f; font-weight: 300; }
#section-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-links { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
.nav-links a { display: inline-flex; align-items: center; min-height: 3rem; padding: .25rem .15rem; border-bottom: 3px solid transparent; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { border-color: var(--accent); color: var(--ink); }
.nav-links a:focus-visible { outline-offset: -3px; }
.channel-feedback { margin-block: 2rem; color: var(--muted); }
.channel-feedback button { margin-top: .75rem; }
.page-title { padding: clamp(2rem, 4vw, 3.5rem) 0 1.75rem; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -.055em; line-height: 1.08; font-weight: 600; }
.page-title p { margin-top: .65rem; color: var(--muted); line-height: 1.5; }
.workspace { display: grid; grid-template-columns: minmax(16rem, .85fr) minmax(0, 1.9fr); align-items: start; gap: 1.25rem; margin-bottom: 2rem; }
.panel { background: var(--paper); border: 1px solid #cbd5ca; border-radius: .7rem; min-width: 0; overflow: clip; }
.directory-tools { padding: 1.1rem 1.1rem 1rem; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; gap: .75rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.section-heading h2, .section-heading h3 { font-size: 1.06rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
.count { color: var(--muted); font: .8rem var(--mono); }
.search-field { position: relative; margin-top: .9rem; }
.search-field::before, .search-field::after { content: ""; position: absolute; pointer-events: none; }
.search-field::before { left: .8rem; top: .78rem; width: .64rem; height: .64rem; border: 1.5px solid var(--muted); border-radius: 100%; }
.search-field::after { left: 1.4rem; top: 1.48rem; width: .42rem; height: 1.5px; background: var(--muted); transform: rotate(45deg); }
input { border: 1px solid #afbdaf; border-radius: .38rem; color: var(--ink); background: var(--paper); width: 100%; min-height: 2.65rem; padding: .5rem .75rem; }
input::placeholder { color: #657467; opacity: 1; }
#search { padding-left: 2.3rem; font-size: .86rem; }
#accounts { max-height: min(38rem, 66vh); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.account { display: block; position: relative; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: .8rem 1.1rem; }
li:last-child .account { border-bottom: 0; }
.account span { display: block; font-size: .91rem; line-height: 1.4; overflow-wrap: anywhere; }
.account code { display: block; margin-top: .2rem; color: var(--muted); font: .72rem var(--mono); letter-spacing: .035em; }
.account:hover { background: #f1f5f0; }
.account[aria-current="true"] { background: #e5efdf; box-shadow: inset 3px 0 #46763b; }
.account[aria-current="true"] span { font-weight: 650; }
.account:focus-visible { outline-offset: -3px; }
#directory-message { color: var(--muted); padding: 1.1rem; font-size: .9rem; }
#retry-directory { margin: 0 1.1rem 1.1rem; }
.company-header { background: var(--soft); border-bottom: 1px solid #cfdbcf; padding: clamp(1.4rem, 3.5vw, 2.6rem); }
#company-name { font-size: clamp(1.65rem, 3.3vw, 2.65rem); font-weight: 570; letter-spacing: -.05em; line-height: 1.14; overflow-wrap: anywhere; }
.account-identity { display: flex; flex-wrap: wrap; gap: .75rem 1.6rem; margin: 1rem 0 0; }
.account-identity dt { color: var(--muted); font-size: .78rem; }
.account-identity dd { margin: .2rem 0 0; color: #294c34; font: .85rem var(--mono); overflow-wrap: anywhere; }
.credentials { padding: clamp(1.1rem, 2.5vw, 2rem); }
.credentials .section-heading { margin-bottom: .55rem; }
#summary { font-size: .8rem; color: var(--muted); }
.method { display: grid; grid-template-columns: 1fr auto; gap: .8rem 1rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.method:first-child { border-top: 0; }
.method:last-child { padding-bottom: .2rem; }
.method h4 { font-size: 1.04rem; line-height: 1.4; letter-spacing: -.015em; }
.endpoint { color: var(--muted); margin-top: .12rem; font: .77rem/1.5 var(--mono); overflow-wrap: anywhere; }
.state { width: fit-content; display: inline-flex; align-items: center; gap: .38rem; margin-top: .55rem; padding: .21rem .5rem; border-radius: .26rem; background: #f0f2ed; font-size: .75rem; color: #516052; }
.state::before { content: ""; width: .44rem; height: .44rem; border: 1px solid currentColor; border-radius: 50%; }
.state.good { color: #315e46; background: #e5f0e7; }
.state.good::before { background: currentColor; }
.state.bad { color: #91353b; background: #fbe9ea; }
.button { color: #284c36; background: var(--paper); border: 1px solid #aebfad; border-radius: .38rem; min-height: 2.45rem; padding: .45rem .85rem; font-size: .875rem; font-weight: 600; }
.button:hover:enabled { border-color: var(--accent); background: #f1f6ef; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover:enabled { color: #fff; background: #1d4935; }
#notice:not(:empty), #form-error:not(:empty) { margin: .9rem 0; padding: .75rem; border-left: 3px solid var(--accent); background: #f0f5ee; font-size: .88rem; line-height: 1.5; }
#form-error:not(:empty) { background: #fbe9ea; border-color: #963b3f; color: #7e2a31; }
dialog { color: var(--ink); background: var(--paper); width: min(28rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: .7rem; padding: clamp(1.25rem, 3vw, 2rem); }
dialog::backdrop { background: rgb(17 35 25 / 52%); }
dialog h2 { font-size: 1.55rem; letter-spacing: -.035em; margin: .55rem 0 .3rem; line-height: 1.2; }
.dialog-account, .dialog-meta { color: var(--muted); font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
.field { margin-top: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .875rem; font-weight: 600; }
.actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1.5rem; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus-visible { z-index: 1; clip-path: none; height: auto; width: auto; padding: .6rem 1rem; background: white; color: var(--ink); margin: .5rem; }
@media (max-width: 47rem) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .page-title { padding-top: 1.6rem; }
  #accounts { max-height: 13rem; }
  .brand { min-height: 3.5rem; }
}
@media (max-width: 25rem) {
  .method { grid-template-columns: minmax(0, 1fr); }
  .method .button { justify-self: start; }
}
#sign-out { margin-left: auto; color: #f2f6f2; background: transparent; border: 1px solid #85a18e; border-radius: .38rem; padding: .4rem .7rem; }
#sign-out:hover { background: #31543e; }
#sign-out:focus-visible { outline-color: #c6db41; }
#session-loading { padding-block: 3rem; }
#retry-session { margin-top: 1rem; }
.login { width: min(100%, 28rem); margin: clamp(2rem, 10vh, 6rem) auto; }
.login-header { padding: 2rem; background: var(--soft); border-bottom: 1px solid var(--line); }
.login-header h1 { font-size: 2.1rem; }
.login-header p { color: var(--muted); line-height: 1.5; margin-top: .7rem; }
.login-actions { padding: 1.5rem 2rem 2rem; }
.login-actions button { width: 100%; }
#denied-sign-out { margin-top: .5rem; }
#login-feedback:not(:empty) { margin-bottom: .85rem; color: var(--muted); font-size: .875rem; }
