:root {
  font:
    16px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18332d;
  background: #f7f8f4;
  --green: #195d4b;
  --line: #ced9d0;
  --muted: #52665e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #18332d;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #edf2e9;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #104835;
}
:focus-visible {
  outline: 3px solid #a75413;
  outline-offset: 3px;
}
.prototype {
  text-align: center;
  background: #e6ecdf;
  padding: 7px 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.prototype span {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
}
header {
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--green);
  color: white;
  font:
    24px Georgia,
    serif;
  flex: none;
}
.brand small {
  display: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
}
header button {
  font-size: 11px;
  padding: 8px;
  max-width: 110px;
}
main {
  max-width: 800px;
  margin: auto;
  padding: 24px 18px 30px;
}
h1 {
  font:
    400 clamp(2rem, 5vw, 3rem) / 1.1 Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 12px 0 18px;
}
h2 {
  font-size: 19px;
  margin: 8px 0;
}
h3 {
  font-size: 16px;
  margin: 8px 0;
}
p {
  margin: 8px 0 14px;
}
.eyebrow,
.speaker {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--green);
}
#welcome {
  padding: 12px 0 24px;
  max-width: 620px;
}
#welcome > p:not(.eyebrow):not(.hint) {
  color: var(--muted);
}
.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.prompts button {
  font-size: 13px;
  text-align: left;
  font-weight: 500;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.message {
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.message.user {
  margin-left: 20px;
  padding: 16px 18px;
  background: #e9efe5;
  border-radius: 12px 12px 0 12px;
}
.message.assistant {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
}
.message .speaker {
  display: block;
  margin-bottom: 8px;
}
.message .body {
  white-space: pre-wrap;
}
.options {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.option {
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.option h3 {
  margin: 0 0 4px;
}
.option p {
  font-size: 14px;
  margin: 0;
  color: #334f44;
}
details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 30px;
  padding: 3px 0;
}
details p {
  font-size: 13px;
}
code {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.actions button {
  font-size: 13px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #9cae9f;
  border-radius: 6px;
  background: white;
  color: inherit;
  min-height: 44px;
  margin-top: 6px;
}
textarea {
  resize: vertical;
}
.review-form {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 16px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green);
}
.result,
.notice {
  background: #e8efe2;
  padding: 14px;
  border-radius: 7px;
  font-size: 14px;
}
.preview {
  color: var(--muted);
  margin-top: 24px;
}
.preview select {
  max-width: 300px;
}
.composer-wrap {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #f7f8f4f5;
  border-top: 1px solid var(--line);
  padding: 12px 18px max(12px, env(safe-area-inset-bottom));
}
.composer-wrap form {
  max-width: 764px;
  margin: auto;
  display: flex;
  gap: 10px;
  align-items: end;
}
.composer-wrap textarea {
  margin: 0;
  flex: 1;
  resize: none;
  max-height: 150px;
}
.composer-wrap p {
  max-width: 764px;
  margin: 8px auto 0;
  font-size: 10px;
  color: var(--muted);
}
.composer-wrap button {
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  background: white;
  padding: 12px;
  z-index: 10;
  color: var(--green);
}
.skip:focus {
  top: 5px;
}
@media (min-width: 640px) {
  .brand {
    font-size: 16px;
  }
  .brand small {
    display: block;
  }
  header button {
    max-width: none;
    font-size: 12px;
    padding: 10px 14px;
  }
  .prototype span {
    display: inline;
    margin-left: 12px;
  }
  main {
    padding-top: 38px;
  }
  .message.user {
    margin-left: 80px;
  }
  .review-form {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* Evidence stays adjacent to the option it supports; notes are optional on all widths. */
.option details {
  margin-top: 10px;
  padding-bottom: 0;
}
.option summary {
  font-size: 12px;
  color: var(--green);
}
#case-notes {
  margin-bottom: 20px;
  background: #eef2e9;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
textarea[readonly] {
  background: #eef2e9;
}
button,
summary,
input,
textarea,
select {
  scroll-margin-bottom: 160px;
}
.message.assistant > button {
  font-size: 13px;
}
.login {
  max-width: 900px;
  margin: auto;
  padding: 30px 20px;
}
.personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-block: 24px;
}
.persona {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  padding: 18px;
  font-weight: 400;
  gap: 7px;
}
.persona strong {
  font-size: 16px;
}
.persona span {
  font-size: 13px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}
#account-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  max-width: 50%;
}
#account-bar .avatar {
  width: 32px;
  height: 32px;
}
#account-label {
  max-width: 140px;
}
.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}
#history {
  flex: 1;
  min-width: 180px;
}
#history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#history-list button {
  text-align: left;
}
#role-workspace .option {
  margin-block: 14px;
}
@media (max-width: 400px) {
  header {
    align-items: start;
  }
  .brand {
    max-width: 47%;
  }
  #account-bar {
    max-width: 48%;
  }
}
.environment {
  background: #e6ecdf;
  padding: 8px 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}
.environment span {
  display: block;
  font-weight: 400;
}
header {
  max-width: 1180px;
}
main {
  max-width: 1140px;
  min-height: 75vh;
}
#identity {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
#avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.login-card {
  max-width: 420px;
}
#login {
  padding-block: 16px;
}
#login .intro {
  max-width: 600px;
}
.card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-block: 18px;
  min-width: 0;
}
.card button {
  margin-top: 18px;
}
input {
  margin-bottom: 12px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.workspace {
  display: grid;
  gap: 26px;
}
.workspace .workspace-tools {
  min-width: 0;
}
.workspace .workspace-tools button {
  display: block;
  margin-block: 10px;
  width: 100%;
}
.workspace .workspace-tools details {
  padding: 16px 0;
}
.composer {
  position: sticky;
  bottom: 0;
  background: #f7f8f4f5;
  padding: 12px 0;
  display: flex;
  gap: 10px;
  align-items: end;
}
.composer textarea {
  margin: 0;
}
.composer button {
  flex: none;
}
.message {
  white-space: pre-wrap;
}
.message details {
  white-space: normal;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.check {
  display: flex;
}
.check input {
  width: 18px;
  min-height: 18px;
}
#status:empty {
  display: none;
}
#status {
  background: #e8efe2;
  padding: 14px;
  border-radius: 7px;
}
footer {
  max-width: 1140px;
  margin: auto;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
}
@media (min-width: 900px) {
  .workspace {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  #login {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
  }
  .environment span {
    display: inline;
    margin-left: 15px;
  }
}
@media (max-width: 500px) {
  header {
    align-items: start;
  }
  .brand {
    max-width: 50%;
  }
  #identity {
    max-width: 45%;
  }
  h1 {
    font-size: 32px;
  }
}
/* Runtime role workspaces: readable records and honest service states. */
.intro-copy {
  color: var(--muted);
  max-width: 650px;
}
.privacy-note {
  border-left: 3px solid #9aae9f;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  margin: 24px 0;
}
.metrics {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.metric strong {
  display: block;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 10px 0;
}
.metric p {
  margin: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  max-width: 100%;
  border-radius: 20px;
  padding: 4px 10px;
  background: #edf0eb;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  white-space: normal;
}
.badge.success {
  background: #e7f1e9;
  color: #225540;
}
.badge.warning {
  background: #faf0dc;
  color: #725318;
}
.account-list,
.activity-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.account-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #e5ebe5;
}
.account-row .avatar {
  width: 40px;
  height: 40px;
}
.person,
.account-scope {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-scope {
  grid-column: 2/4;
  font-size: 13px;
}
.account-row > .badge {
  grid-column: 3;
  grid-row: 1;
}
.person strong {
  font-size: 14px;
}
.activity-list li {
  border-top: 1px solid #e5ebe5;
  padding: 16px 0;
}
.activity-list li p {
  margin: 4px 0;
}
.activity-list time,
.case-card time {
  font-size: 12px;
  color: var(--muted);
}
.empty-state {
  padding: 20px;
  background: #f5f7f2;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.ai-controls details {
  margin-top: 20px;
}
.ai-controls form {
  max-width: 450px;
}
.facts {
  margin: 16px 0;
  white-space: normal;
}
.facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid #e5ebe5;
  padding: 10px 0;
}
.facts dt {
  color: var(--muted);
  font-size: 13px;
}
.facts dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  overflow-wrap: anywhere;
  max-width: 65%;
}
.tool-result {
  border: 1px solid var(--line);
  background: white;
  padding: 20px;
  border-radius: 12px;
  white-space: normal;
}
.result-number {
  font-size: 30px;
}
.empty-conversation {
  padding: 35px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.empty-conversation h2 {
  color: #18332d;
  margin-top: 20px;
}
.empty-conversation p {
  max-width: 520px;
  font-size: 14px;
}
.case-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.demo-grid {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}
.demo-grid .card {
  margin: 0;
}
.demo-grid .sample-case {
  grid-column: 1/-1;
}
#my-cases .card {
  padding: 12px;
}
#my-cases .facts > div {
  display: block;
}
#my-cases .facts dd {
  text-align: left;
  max-width: 100%;
}
#my-cases h3 {
  font-size: 14px;
}
.actions {
  margin-top: 0;
}
#admin .card {
  margin-block: 24px;
}
@media (min-width: 640px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .account-row {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: 18px;
  }
  .account-scope {
    grid-column: auto;
  }
  .account-row > .badge {
    grid-column: 4;
  }
  .demo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .card {
    padding: 18px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 28px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 12px;
  }
  .metric strong {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
  }
  .metric .hint:last-child {
    grid-column: 1;
  }
  #identity {
    font-size: 11px;
  }
  .empty-conversation {
    padding: 24px 16px;
  }
}
/* On narrow screens, the conversation comes before secondary workspace tools. */
.workspace > .workspace-tools {
  order: 2;
}
.workspace > div {
  order: 1;
}
@media (min-width: 900px) {
  .workspace > .workspace-tools,
  .workspace > div {
    order: 0;
  }
}
@media (max-width: 500px) {
  #identity {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    max-width: 48%;
  }
  #avatar {
    width: 30px;
    height: 30px;
  }
  #user-name {
    font-size: 10px;
    overflow-wrap: anywhere;
  }
  #logout {
    grid-column: 2;
    justify-self: start;
    padding: 6px 10px;
    min-height: 36px;
  }
}
#workspace-shell {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
#organization-picker {
  max-width: 320px;
  margin: 0 0 16px;
  background: #fff;
  font-weight: 600;
}
#workspace-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-nav-hint {
  display: none;
}
#workspace-nav button {
  border-color: transparent;
  background: transparent;
  font-size: 13px;
}
#workspace-nav button[aria-current="true"] {
  background: #183e33;
  color: white;
}
.people-grid,
.record-grid {
  display: grid;
  gap: 18px;
  margin-block: 24px;
}
.people-grid .card,
.record-grid .card {
  margin: 0;
}
.people-grid .badge {
  margin: 4px 6px 8px 0;
}
.people-grid button {
  display: block;
}
.management-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  width: min(94vw, 550px);
  max-height: 90vh;
  overflow: auto;
  color: inherit;
  background: #fafbf8;
  box-shadow: 0 24px 100px #10271d44;
}
.management-dialog::backdrop {
  background: #0b211b80;
  backdrop-filter: blur(3px);
}
.management-dialog h2 {
  font:
    26px Georgia,
    serif;
}
.management-dialog form > button {
  margin-top: 18px;
}
#enterprise-content .card > button {
  margin-right: 12px;
}
#enterprise-content > div > h1 {
  max-width: 800px;
}
.record-grid .facts dd {
  max-width: 60%;
}
#enterprise-content input[type="search"] {
  max-width: 500px;
}
#enterprise-content .intro-copy {
  max-width: 700px;
}
.card > form {
  max-width: 560px;
}
#enterprise-content .card details {
  margin-top: 18px;
}
#status {
  position: sticky;
  top: 8px;
  z-index: 5;
  box-shadow: 0 3px 12px #203d2310;
}
#activation {
  max-width: 700px;
  margin: auto;
}
@media (min-width: 760px) {
  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  #workspace-nav {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
  }
  .mobile-nav-hint {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin: 0;
  }
  #workspace-nav button {
    flex: 0 0 auto;
    min-height: 44px;
    font-size: 12px;
    padding: 8px;
  }
  #organization-picker {
    max-width: 100%;
  }
  .management-dialog {
    padding: 18px;
  }
  .record-grid .facts > div {
    display: block;
  }
  .record-grid .facts dd {
    text-align: left;
    max-width: 100%;
  }
}

.form-error:empty {
  display: none;
}
.form-error {
  color: #872c1d;
  background: #fff2e9;
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}

/* Compact, bounded collections shared by people, activity and PTO statements. */
.collection {
  margin-block: 1rem 1.5rem;
  min-width: 0;
}
.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}
.collection-toolbar label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  flex: 1 1 180px;
}
.collection-toolbar input,
.collection-toolbar select {
  margin: 0;
  width: 100%;
}
.collection-toolbar label:last-of-type {
  flex: 0 1 120px;
}
.view-toggle {
  display: flex;
  gap: 0.25rem;
}
.view-toggle [aria-pressed="true"] {
  color: white;
  background: #173d32;
}
.collection-scroll {
  overflow: auto;
  max-height: 640px;
  border: 1px solid #cbd8d0;
  border-radius: 0.7rem;
  background: white;
}
.collection-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.9rem;
}
.collection-table th {
  position: sticky;
  top: 0;
  background: #edf2ec;
  z-index: 1;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #cbd8d0;
  min-width: 125px;
  padding: 0.55rem 0.65rem;
}
.collection-table td {
  padding: 0.65rem;
  border-bottom: 1px solid #e0e7e2;
  max-width: 300px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.collection-table tbody tr:last-child td {
  border-bottom: none;
}
.collection-table .interactive-row:hover {
  background: #f0f6f2;
  cursor: pointer;
}
.sort-column,
.row-link {
  border: none;
  padding: 0.2rem 0;
  text-align: left;
  background: transparent;
  font-weight: 600;
}
.row-link {
  color: #176454;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.column-filter {
  margin: 0.25rem 0 0;
  font-weight: 400;
  font-size: 0.8rem;
}
.column-filter summary {
  cursor: pointer;
  white-space: nowrap;
}
.column-filter input,
.column-filter select {
  width: 150px;
  min-width: 0;
  margin: 0.4rem 0;
  padding: 0.45rem;
  font-size: 0.85rem;
}
.column-filter button {
  padding: 0.35rem;
  font-size: 0.8rem;
}
.collection-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.collection-status {
  margin-block: 0.75rem;
}
.activity-histogram {
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #cbd8d0;
  border-radius: 0.7rem;
}
.activity-histogram h2 {
  font-size: 1rem;
  margin: 0;
}
.histogram-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 0.3rem;
  align-items: end;
}
.histogram-bucket {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: stretch;
  gap: 0.2rem;
  border: none;
  padding: 0.2rem;
  border-radius: 0.25rem;
  min-width: 0;
  font-size: 0.7rem;
  height: 100px;
}
.histogram-bar {
  display: block;
  background: #297665;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.histogram-bucket:hover,
.histogram-bucket:focus-visible {
  background: #ddebe4;
}
.histogram-count {
  font-variant-numeric: tabular-nums;
}
.pto-statement {
  border-top: 1px solid #cbd8d0;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}
.pto-statement > .card {
  margin-block: 1rem;
}
.support-banner {
  background: #fff0c9;
  border-bottom: 2px solid #b47e18;
  padding: 0.65rem max(1rem, calc((100vw - 1140px) / 2));
}
.support-banner p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.support-banner button {
  margin: 0.25rem 0;
}
.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;
}
@media (max-width: 600px) {
  .collection-toolbar {
    gap: 0.5rem;
  }
  .collection-toolbar label {
    flex-basis: 100%;
  }
  .collection-toolbar label:last-of-type {
    flex-basis: 90px;
  }
  .histogram-bucket small {
    writing-mode: vertical-rl;
  }
  .histogram-bars {
    gap: 0.1rem;
  }
  .collection-table th {
    min-width: 115px;
  }
  .collection-pager {
    font-size: 0.85rem;
  }
}
.activity-view h1 {
  font-size: 2rem;
  margin: 0.5rem 0 0.25rem;
}
.activity-view .intro-copy {
  font-size: 0.95rem;
  margin: 0.25rem 0 0.7rem;
  max-width: none;
}
.activity-view .metrics {
  gap: 0.6rem;
  margin-block: 0.5rem;
}
.activity-view .metric {
  padding: 0.6rem 0.85rem;
}
.activity-view .metric p {
  margin: 0;
  font-size: 0.8rem;
}
.activity-view .metric strong {
  font-size: 1.5rem;
}
.activity-view .collection {
  margin-top: 0.65rem;
}
.activity-view .activity-histogram {
  padding: 0.6rem 0.8rem;
  margin-top: 0.65rem;
}
.activity-view .activity-histogram p {
  margin: 0.2rem 0;
  font-size: 0.8rem;
}
.activity-view .histogram-bucket {
  height: 72px;
}
.activity-view .collection-status {
  margin-block: 0.5rem;
}
.library-scopes [aria-pressed="true"] {
  background: #173d32;
  color: #fff;
}
.document-cover {
  min-height: 140px;
  border-radius: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #173d32, #357763);
  color: #edf7ef;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}
.document-cover h2 {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0.8rem 0 0;
}
.document-card {
  padding: 0.8rem;
}
.document-card .eyebrow {
  margin-top: 0.7rem;
}
.document-reader {
  width: min(1120px, 96vw);
  max-height: 94vh;
  padding: 1.2rem;
  border: 1px solid #adc3b5;
  border-radius: 0.8rem;
  overflow: auto;
}
.document-reader::backdrop {
  background: #102c24b0;
}
.document-reader .section-heading {
  position: sticky;
  top: -1.2rem;
  background: white;
  z-index: 2;
  padding-block: 0.5rem;
}
.document-reader h2 {
  font-size: 1.4rem;
}
.document-status {
  border-left: 3px solid #b89646;
  padding: 0.45rem 0.75rem;
  background: #fbf6e8;
}
.document-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.document-toc {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}
.document-toc button {
  text-align: left;
  font-size: 0.85rem;
}
.document-toc [aria-current="true"] {
  background: #e3eee6;
  border-color: #357763;
}
.document-page {
  border: 1px solid #d7e0d8;
  background: #fffef9;
  padding: 1.5rem;
  line-height: 1.7;
}
.document-page h3 {
  font:
    1.6rem Georgia,
    serif;
}
.pdf-preview {
  width: 100%;
  height: 65vh;
  margin-top: 1rem;
  border: 1px solid #cbd8d0;
}
.document-fingerprint {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
.button-link {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cbd8d0;
  border-radius: 0.5rem;
  color: #195d4b;
}
.org-chart-viewport {
  max-height: 600px;
  overflow: auto;
  background: #edf3ed;
  border: 1px solid #cbd8d0;
  border-radius: 0.8rem;
  padding: 1.5rem;
}
.org-forest {
  min-width: fit-content;
}
.org-forest ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
}
.org-forest li {
  text-align: center;
  min-width: 200px;
}
.org-forest details > ul {
  border-top: 1px solid #99b4a4;
}
.org-forest summary {
  padding: 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.org-person {
  padding: 0.9rem;
  border: 1px solid #adc6b8;
  border-top: 3px solid #297665;
  border-radius: 0.6rem;
  background: white;
  max-width: 240px;
  margin: auto;
}
.org-person button {
  display: block;
  border: none;
  font-weight: 600;
  text-align: center;
  margin: auto;
}
.org-person p {
  margin: 0.25rem 0;
}
.org-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dceadf;
  color: #195d4b;
  font-weight: 600;
}
.directory-detail {
  max-width: 560px;
}
@media (max-width: 600px) {
  .document-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .document-toc {
    max-height: 150px;
    overflow: auto;
  }
  .document-page {
    padding: 1rem;
  }
  .org-forest ul {
    flex-direction: column;
    justify-content: start;
  }
  .org-forest details > ul {
    margin-left: 1.5rem;
    padding-left: 0.6rem;
    border-top: none;
    border-left: 1px solid #99b4a4;
  }
  .org-person {
    margin-left: 0;
  }
  .document-reader .section-heading {
    position: static;
  }
  .document-reader .actions {
    flex-wrap: wrap;
  }
}

.org-chart-tools label:last-of-type {
  flex: 1 1 220px;
}

.document-toc {
  max-height: 60vh;
  overflow-y: auto;
}
.document-table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
}
.document-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.document-table-scroll th,
.document-table-scroll td {
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ccd9d2;
  min-width: 9rem;
}
.document-table-scroll th {
  background: #e4eee8;
}
.document-table-scroll caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .document-toc {
    max-height: 12rem;
  }
}

/* Reveal the complete authorized shell together rather than shifting visible content. */
body.initializing header,
body.initializing main,
body.initializing footer {
  visibility: hidden;
}
#boot-screen {
  position: absolute;
  top: 160px;
  left: 20px;
  right: 20px;
  text-align: center;
  color: var(--muted);
}

#boot-screen {
  max-width: 640px;
  margin: auto;
}
#boot-recovery {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
