:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #23352c;
  background: #f8faf7;
  font-synthesis: none;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: #24594a;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  border: 1px solid #d6ded6;
  background: #fff;
  color: #243a30;
  border-radius: 7px;
  padding: 9px 14px;
  line-height: 1.4;
}
button:hover {
  background: #edf3eb;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
/* Navigation also focuses layout containers; none should acquire a browser outline. */
:focus {
  outline: none !important;
}
button:focus-visible,
a:focus-visible,
[role='button']:focus-visible,
[role='tab']:focus-visible {
  box-shadow: inset 0 -2px 0 #85ae91 !important;
}
button.primary,
.primary {
  background: #244d3e;
  color: white;
  border-color: #244d3e;
}
.quiet {
  border: 0;
  background: transparent;
  padding: 6px 9px;
}
.danger {
  color: #9b3333;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 550;
}
input,
textarea,
select {
  border: 1px solid #d6ded6;
  border-radius: 6px;
  background: #fff;
  color: #24352e;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #377454;
  box-shadow: 0 0 0 3px #d6e9d5;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  font-weight: 550;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.65;
}
small {
  display: block;
  font-size: 12px;
  color: #748178;
  margin-top: 4px;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eef3ee;
  padding: 18px;
  border-radius: 7px;
}
.muted {
  color: #718075;
}
.eyebrow {
  font:
    600 10px/1.6 ui-monospace,
    monospace;
  letter-spacing: 0.15em;
  color: #7b8c7c;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  letter-spacing: -0.7px;
  font-weight: 650;
  color: #244734;
}
.wordmark > span:not(.brand-icon) {
  font-weight: 400;
}
.wordmark img {
  height: 30px;
  width: 30px;
  object-fit: contain;
}
.brand-icon {
  background: #244734;
  color: #f1f5ec;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  margin-right: 7px;
}
.landing {
  min-height: 100svh;
  background: #f4f5ec;
  display: flex;
  flex-direction: column;
  padding: 0 6vw;
}
.landing header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dde2d4;
}
.landing header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}
.outline-link {
  border: 1px solid #becaba;
  padding: 11px 19px;
  border-radius: 30px;
}
.landing section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 400px;
  padding: 80px 0;
}
.landing section p {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #839278;
  margin: 23px 0;
}
.landing h1 {
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 450;
  letter-spacing: -0.065em;
  margin: 0;
  color: #294631;
}
.ellipsis {
  color: #819776;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 100%;
  background: #8ca176;
  box-shadow: 0 0 0 7px #e8eddf;
}
.landing footer {
  padding: 25px 0;
  border-top: 1px solid #dde2d4;
  display: flex;
  justify-content: space-between;
  color: #839078;
  font-size: 11px;
}
.auth-page {
  max-width: 490px;
  min-height: 100svh;
  margin: auto;
  padding: 70px 24px;
}
.auth-page > .wordmark {
  margin-bottom: 36px;
}
.auth-inner {
  padding: 24px;
}
.auth-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 26px;
}
.loading {
  padding: 80px;
  text-align: center;
}
.panel {
  background: #fff;
  border: 1px solid #e0e7de;
  border-radius: 10px;
  padding: 24px;
  margin: 22px 0;
}
.panel h2:first-child {
  margin-top: 0;
}
.form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.section-heading,
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.list-row {
  border-bottom: 1px solid #e8ede6;
  padding: 16px 0;
}
.badge {
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid #d5dfd3;
  border-radius: 20px;
}
.check {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  gap: 10px;
}
.check input {
  width: 16px;
  height: 16px;
}
.error {
  border: 1px solid #e6bebe;
  background: #fff3f1;
  padding: 14px 20px;
  border-radius: 8px;
  color: #8b3430;
  margin: 14px 0;
}
.notice {
  border: 1px solid #c8dec8;
  background: #eff7ec;
  border-radius: 8px;
  padding: 16px;
}
.token {
  overflow-wrap: anywhere;
  display: block;
  margin: 12px 0;
}
.copy-row {
  display: flex;
  background: #f4f7f1;
  border: 1px solid #d7e2d3;
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  gap: 15px;
}
.copy-row code {
  overflow-wrap: anywhere;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.workspace-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid #e0e7df;
  background: #fff;
}
.segmented {
  display: flex;
  background: #edf2ea;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  font-size: 12px;
  padding: 7px 15px;
  border: 0;
  background: transparent;
}
.segmented .selected {
  background: #fff;
  box-shadow: 0 1px 3px #293f2017;
}
.page-tree {
  padding: 20px 12px;
  background: #f7f9f4;
  border-right: 1px solid #e0e7df;
  overflow: auto;
  max-height: calc(100vh - 180px);
}
.tree-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #7a8c77;
}
.drop-placeholder {
  font-size: 9px;
  color: #b0bbad;
  display: block;
  min-height: 12px;
  padding-left: 10px;
}
.page-tree details {
  margin-top: 25px;
  font-size: 12px;
}
.document-surface {
  padding: 40px clamp(20px, 5vw, 80px);
  background: #fff;
  min-width: 0;
}
.document-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.document-heading h1 {
  margin: 12px 0 18px;
}
.document-tools {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #edf0e9;
  padding-bottom: 15px;
  margin-bottom: 24px;
}
.save-status {
  font-size: 11px;
  color: #83937c;
  white-space: nowrap;
}
.empty-state {
  padding: 90px 20px;
  text-align: center;
  color: #7b8b73;
}
.content-pad {
  padding: 24px;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: #12201770;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.dialog {
  width: 520px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  border-radius: 12px;
  background: white;
  padding: 28px;
  box-shadow: 0 18px 80px #0003;
}
.designer-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.designer-grid .panel {
  margin: 0;
}
.template-canvas {
  padding: 32px;
  background: #edf1e9;
  border-radius: 10px;
  min-height: 500px;
}
.template-block {
  background: white;
  border: 1px solid #d7dfd1;
  padding: 22px;
  margin: 0 0 12px;
  box-shadow: 0 2px 6px #2233220b;
}
.template-block.cover {
  min-height: 180px;
  border-top: 5px solid #355943;
}
.template-block .toolbar {
  justify-content: space-between;
  font-size: 12px;
}
.template-block textarea {
  width: 100%;
  margin-top: 15px;
}
.paper-lines {
  padding: 25px 0;
}
.paper-lines i {
  display: block;
  background: #e9eee6;
  height: 7px;
  margin: 10px 0;
}
.paper-lines i:last-child {
  width: 65%;
}
.code-input {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  width: 100%;
  tab-size: 2;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}
.media-grid img {
  height: 100px;
  width: 100%;
  object-fit: contain;
  background: #f2f5ef;
}
.reader {
  background: white;
  min-height: 100vh;
}
.reader-header {
  padding: 20px 35px;
  border-bottom: 1px solid #e4e9e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.reader-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 800px) 190px;
  max-width: 1440px;
  margin: auto;
}
.reader-menu {
  padding: 30px 20px;
  border-right: 1px solid #e8ede4;
  min-height: 80vh;
}
.reader-menu label {
  font-size: 11px;
  color: #788772;
}
.reader-menu ul {
  list-style: none;
  padding: 0;
}
.reader-menu ul ul {
  padding-left: 15px;
}
.reader-menu a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 5px;
}
.reader-menu a.active {
  background: #e9f0e4;
  font-weight: 600;
}
.reader-downloads {
  margin-top: 40px;
  border-top: 1px solid #e4e9df;
  padding-top: 16px;
}
.reader-document {
  padding: 40px 50px;
  min-width: 0;
  line-height: 1.75;
}
.reader-document img {
  max-width: 100%;
}
.reader-document > h1 {
  font-size: 40px;
  margin: 24px 0 40px;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  color: #819078;
  font-size: 11px;
}
.reader-toc {
  padding: 48px 15px;
  font-size: 11px;
  color: #809075;
}
.reader-toc p {
  font-size: 9px;
  letter-spacing: 0.1em;
}
.reader-toc a {
  display: block;
  margin: 14px 0;
  color: #708168;
}
.previous-next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #e3eade;
  margin-top: 55px;
  padding-top: 20px;
  font-size: 13px;
}
.reader-footer {
  border-top: 1px solid #e3eade;
  padding: 25px;
  text-align: center;
  font-size: 10px;
  color: #8b9884;
}
.mobile-menu {
  display: none;
}
fieldset {
  border: 1px solid #dce4d6;
  border-radius: 7px;
  margin: 12px 0;
  min-width: 0;
}
legend {
  font-size: 12px;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 550;
}
@media (max-width: 1100px) {
  .reader-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .reader-toc {
    display: none;
  }
  .designer-grid {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .landing header {
    height: 88px;
  }
  .landing header nav {
    gap: 12px;
  }
  .landing .wordmark {
    font-size: 15px;
  }
  .brand-icon {
    width: 29px;
    height: 29px;
    font-size: 20px;
  }
  .landing footer {
    font-size: 9px;
  }
  .outline-link {
    padding: 8px 12px;
  }
  .auth-page {
    padding: 40px 18px;
  }
  .form-columns,
  .designer-grid {
    grid-template-columns: 1fr;
  }
  .workspace-bar {
    padding: 10px;
    flex-wrap: wrap;
  }
  .page-tree {
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid #dfe7d9;
  }
  .document-surface {
    padding: 25px 18px;
  }
  .document-heading {
    align-items: flex-start;
  }
  .document-heading h1 {
    font-size: 28px;
  }
  .document-tools {
    flex-wrap: wrap;
  }
  .template-canvas {
    padding: 16px;
  }
  .content-pad {
    padding: 14px;
  }
  .panel {
    padding: 18px;
  }
  .section-heading,
  .list-row {
    flex-wrap: wrap;
  }
  .reader-grid {
    display: block;
  }
  .reader-header {
    padding: 16px;
    flex-wrap: wrap;
  }
  .reader-menu {
    display: none;
    min-height: 0;
    border: 0;
  }
  .reader-menu.open {
    display: block;
  }
  .reader-document {
    padding: 25px 20px;
  }
  .reader-document > h1 {
    font-size: 32px;
  }
  .reader-header select {
    max-width: 120px;
    font-size: 12px;
  }
  .mobile-menu {
    display: block;
  }
  .copy-row {
    flex-wrap: wrap;
  }
  .dialog-backdrop {
    padding: 10px;
  }
  .dialog {
    padding: 20px;
  }
}

html,
body,
#root {
  min-height: 100%;
  height: 100%;
}
.reader {
  --wnd-color-text: #23352c;
  --wnd-font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Application shells: account administration and the documentation workspace. */
.account-layout,
.documentation-layout {
  min-height: 100dvh;
  color: #23352c;
  background: #f8faf7;
}
.app-skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 12px 20px;
  background: #fff;
  z-index: 1000;
}
.app-skip-link:focus {
  top: 12px;
}
.account-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px max(28px, calc((100% - 1200px) / 2)) 0;
  border-bottom: 1px solid #dfe6de;
  background: #fff;
}
.app-brand-name {
  font-weight: 450;
}
.app-brand-name strong {
  font-weight: 650;
}
.account-header-actions,
.account-identity,
.documentation-context {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.account-identity {
  gap: 9px;
  color: #4c5d52;
  font-size: 13px;
}
.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf2eb;
  border: 1px solid #dce5d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.account-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-navigation {
  grid-column: 1 / -1;
  display: flex;
  gap: 28px;
}
.account-navigation a {
  padding: 0 2px 15px;
  border-bottom: 2px solid transparent;
  color: #718075;
  font-size: 14px;
}
.account-navigation a[aria-current] {
  color: #244d3e;
  border-color: #244d3e;
  font-weight: 600;
}
.account-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.account-profile {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
}
.account-profile dt {
  color: #718075;
}
.account-profile dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.account-logout {
  position: relative;
}
.account-logout [role='alert'] {
  position: absolute;
  right: 0;
  width: 240px;
  padding: 12px;
  background: white;
  z-index: 10;
}
.documentation-header {
  min-height: 66px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8df;
}
.documentation-header .wordmark {
  flex-shrink: 0;
}
.documentation-header .brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 21px;
}
.documentation-header .app-brand-name {
  font-size: 16px;
}
.project-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 13px;
}
.project-breadcrumbs a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.project-breadcrumbs a:last-child {
  font-weight: 600;
}
.project-breadcrumbs span {
  color: #b4c0b2;
}
.documentation-navigation {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 24px;
  border-bottom: 1px solid #dfe6de;
  background: #f2f5ef;
  font-size: 12px;
}
.project-navigation-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.project-navigation-links a,
.editor-location {
  display: flex;
  align-items: center;
  gap: 7px;
}
.project-navigation-links a {
  color: #687a6d;
}
.project-navigation-links a[aria-current],
.editor-location {
  color: #244d3e;
  font-weight: 600;
}
.project-version-picker {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 0 0 auto;
  gap: 10px;
  font-size: 12px;
}
.project-version-picker select {
  padding: 6px 28px 6px 10px;
  max-width: 210px;
  font-size: 12px;
}
.project-team-link {
  white-space: nowrap;
  margin-left: auto;
}
.documentation-content {
  min-width: 0;
  padding-bottom: 32px;
}
.documentation-content .workspace {
  border-top: 1px solid #dfe6de;
}
@media (max-width: 720px) {
  .account-header {
    padding: 18px 18px 0;
    gap: 22px 10px;
  }
  .account-header-actions {
    gap: 4px;
  }
  .account-header .wordmark {
    font-size: 16px;
  }
  .account-name {
    display: none;
  }
  .account-content {
    padding: 20px 8px 40px;
  }
  .documentation-header {
    padding: 12px;
    gap: 10px;
  }
  .documentation-header .app-brand-name {
    display: none;
  }
  .documentation-context {
    gap: 12px;
  }
  .project-breadcrumbs {
    gap: 8px;
  }
  .project-breadcrumbs a {
    max-width: 110px;
  }
  .documentation-navigation {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .project-navigation-links {
    gap: 12px;
  }
  .editor-location {
    display: none;
  }
  .project-version-picker {
    gap: 6px;
  }
  .project-version-picker select {
    max-width: 150px;
  }
  .project-team-link {
    margin-left: 0;
  }
}

/* Account home: compact resource cards beside the project activity feed. */
.dashboard {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.dashboard-card h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-count {
  font-size: 11px;
  font-weight: 500;
  color: #637468;
  border: 1px solid #e2e7df;
  background: #f5f7f3;
  border-radius: 20px;
  padding: 2px 7px;
}
.dashboard-more {
  min-width: 28px;
  font-size: 21px;
  line-height: 1;
}
.dashboard-resource-list,
.dashboard-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-resource-list li + li {
  margin-top: 3px;
}
.dashboard-resource-list a {
  display: flex;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  align-items: center;
  color: #293d31;
}
.dashboard-resource-list a:hover {
  background: #f3f6f0;
  text-decoration: none;
}
.dashboard-resource-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}
.dashboard-resource-name strong {
  display: block;
  font-weight: 600;
}
.dashboard-resource-name small {
  margin: 0 0 1px;
  font-size: 11px;
}
.dashboard-team-icon,
.dashboard-actor-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  background: #e5edde;
  color: #486043;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6e1cf;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 650;
}
.dashboard-resource-list li:nth-child(3n + 2) .dashboard-team-icon {
  background: #e8ebf4;
  color: #5c6482;
  border-color: #dadeeb;
}
.dashboard-resource-list li:nth-child(3n + 3) .dashboard-team-icon {
  background: #f2e9df;
  color: #816746;
  border-color: #e9ddce;
}
.dashboard-project-icon {
  width: 25px;
  display: flex;
  justify-content: center;
  color: #718075;
  flex-shrink: 0;
}
.dashboard-chevron {
  color: #93a08e;
}
.dashboard-project-search {
  width: 100%;
  font-size: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: #fafbf8;
}
.dashboard-sidebar-note {
  font-size: 11px;
  color: #889380;
  line-height: 1.6;
  padding: 0 8px;
  margin: 0;
}
.dashboard-empty-small {
  font-size: 12px;
  color: #718075;
  margin: 4px 0;
  line-height: 1.7;
}
.dashboard-feed {
  min-width: 0;
}
.dashboard-feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 0 22px;
}
.dashboard-kicker {
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #718075;
  margin: 0 0 8px;
}
.dashboard-feed-heading h1 {
  font-size: 27px;
  font-weight: 600;
  margin: 0 0 7px;
}
.dashboard-feed-heading p:not(.dashboard-kicker) {
  font-size: 13px;
  color: #718075;
  margin: 0;
}
.dashboard-feed-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #e2e8df;
  margin-bottom: 6px;
}
.dashboard-feed-filter label {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  min-width: 0;
}
.dashboard-feed-filter select {
  font-size: 12px;
  padding: 7px 10px;
  max-width: 280px;
}
.dashboard-feed-filter > span {
  font-size: 11px;
  color: #849080;
  white-space: nowrap;
}
.dashboard-activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dashboard-event-byline {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.dashboard-event-byline > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dashboard-actor-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f3eb;
  color: #64785c;
}
.dashboard-event-byline p {
  font-size: 13px;
  margin: 0 0 3px;
  color: #5c6c61;
  line-height: 1.65;
}
.dashboard-event-byline strong {
  font-weight: 600;
  color: #283d31;
}
.dashboard-event-byline time,
.dashboard-client-label {
  font-size: 11px;
  color: #849080;
}
.dashboard-client-label {
  margin-left: 10px;
}
.dashboard-event-project {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e3e8df;
  border-radius: 7px;
  padding: 14px;
  margin: 16px 0 0 41px;
  background: #fafbf8;
}
.dashboard-event-project:hover {
  border-color: #bacbb1;
  background: #f5f8f0;
  text-decoration: none;
}
.dashboard-event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 38px;
  color: #7c8c73;
  flex-shrink: 0;
}
.dashboard-event-icon.is-published {
  color: #347552;
}
.dashboard-event-detail {
  display: block;
  font-size: 11px;
  color: #7b8a74;
  margin-top: 4px;
}
.dashboard-event-open {
  font-size: 11px;
  color: #708367;
  white-space: nowrap;
}
.dashboard-feed-footer {
  text-align: center;
  font-size: 11px;
  color: #8c9787;
  margin: 24px 0;
}
.dashboard-feed-empty {
  text-align: center;
}
.dashboard-feed-empty h2 {
  font-size: 20px;
  margin: 14px 0 8px;
}
.dashboard-feed-empty p {
  font-size: 13px;
  color: #718075;
  max-width: 440px;
  margin: 0 auto 20px;
}
.dashboard-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  width: 44px;
  height: 44px;
  background: #eef3e8;
  color: #7b906e;
  border-radius: 12px;
}
@media (max-width: 960px) {
  .dashboard {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
  }
  .dashboard-feed-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .dashboard-feed-filter label > span {
    display: none;
  }
  .dashboard-event-project {
    margin-left: 0;
  }
}
@media (max-width: 720px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 0 8px;
  }
  .dashboard-sidebar {
    gap: 14px;
  }
  .dashboard-sidebar-note {
    display: none;
  }
  .dashboard-feed-heading h1 {
    font-size: 25px;
  }
  .dashboard-feed-filter select {
    max-width: 230px;
  }
  .dashboard-event-open {
    display: none;
  }
}

/* Documentation workbench: fixed chrome, independently scrolling work areas. */
.workbench-shell {
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.workbench-titlebar {
  flex: 0 0 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid #dfe4df;
  background: #f8faf8;
}
.workbench-titlebar .wordmark {
  font-size: 14px;
  letter-spacing: -0.4px;
  flex-shrink: 0;
}
.workbench-titlebar .brand-icon {
  width: 29px;
  height: 29px;
  font-size: 22px;
  border-radius: 7px;
}
.workbench-project-path {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
}
.workbench-project-path a {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workbench-project-path span {
  color: #94a093;
}
.workbench-command {
  display: flex;
  gap: 10px;
  align-items: center;
  width: min(420px, 32vw);
  margin: 0 auto;
  border: 1px solid #d9e1d9 !important;
  border-radius: 5px !important;
  min-height: 29px !important;
  padding: 4px 10px !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  color: #69746e !important;
  box-shadow: none !important;
}
.workbench-command kbd {
  margin-left: auto;
  font: inherit;
  border: 1px solid #dce3dc;
  padding: 0 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.workbench-account {
  margin-left: auto;
}
.workbench-account .account-name {
  display: none;
}
.workbench-explorer-toggle {
  display: none !important;
}
.workbench-frame {
  display: flex;
  flex: 1;
  min-height: 0;
}
.workbench-team-link {
  height: 44px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a786e;
}
.workbench-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1;
  position: relative;
}
.workbench-project,
.workbench-workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.workbench-explorer {
  min-width: 0;
  background: #f6f8f5;
  border-right: 1px solid #e0e6df;
  overflow-y: auto;
  padding: 0 8px 12px;
  max-height: none;
}
.workbench-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 42px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.workbench-sidebar-heading > span:first-child {
  margin-right: auto;
}
.workbench-project-name {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
  margin: 8px 4px 10px;
}
.workbench-version-controls {
  display: flex;
  gap: 6px;
  margin: 0 0 8px;
}
.workbench-version-controls select {
  width: 100%;
  min-width: 0;
  font-size: 11px;
  border-radius: 4px;
  padding: 7px 5px;
}
.workbench-explorer details {
  border-top: 1px solid #dde5db;
  padding-top: 17px;
  margin-top: 24px;
}
.workbench-editor-pane,
.workbench-project-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
.workbench-editor-toolbar {
  min-height: 47px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 18px;
  border-bottom: 1px solid #e8ece5;
}
.workbench-page-breadcrumbs {
  font-size: 11px;
  color: #748071;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workbench-editor-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}
.workbench-editor-actions button {
  border-radius: 4px !important;
  box-shadow: none !important;
  font-size: 11px !important;
}
.workbench-document-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.workbench-document-scroll .document-surface {
  padding: 30px clamp(20px, 3vw, 56px) 50px;
  max-width: 1050px;
  margin: 0 auto;
}
.workbench-document-scroll.is-empty {
  display: flex;
}
.workbench-document-scroll.is-empty .document-surface {
  display: flex;
  flex: 1;
  max-width: none;
  padding: 24px;
}
.workbench-empty-state {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  min-height: 280px;
  padding: 32px 12px;
  text-align: center;
}
.workbench-empty-state > svg {
  color: #91a295;
}
.workbench-empty-state h2 {
  margin: 0;
  color: #23352c;
}
.workbench-empty-state p {
  max-width: 390px;
  margin: 0;
  color: #718075;
  line-height: 1.6;
}
.workbench-empty-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  max-width: 100%;
}
.workbench-document-scroll .document-heading h1 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 4px 0 26px;
  line-height: 1.2;
}
.workbench-document-body {
  min-width: 0;
}
.workbench-details {
  padding: 25px 18px;
  background: #f8faf7;
  border-left: 1px solid #e2e8df;
  overflow: auto;
  min-height: 0;
}
.workbench-details h2 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin: 0 0 19px;
}
.workbench-details p,
.workbench-details dt,
.workbench-details dd {
  font-size: 12px;
  line-height: 1.65;
}
.workbench-details nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.workbench-details nav button {
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  padding: 8px;
  color: #5b6d5f;
}
.workbench-details nav button:focus,
.workbench-details nav button:hover {
  background: #eaf0e6;
}
.workbench-details-section,
.workbench-page-actions {
  border-top: 1px solid #dfe6da;
  margin-top: 28px;
  padding-top: 24px;
}
.workbench-details dl {
  margin: 0;
}
.workbench-details dt {
  color: #859080;
  margin-top: 13px;
}
.workbench-details dd {
  margin: 4px 0 0;
  color: #485b4c;
}
.workbench-details .document-tools {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  border: 0;
  padding: 0;
}
.workbench-details .document-tools button {
  text-align: left;
  font-size: 11px;
  padding: 6px;
}
.workbench-status {
  flex: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 15px;
  background: #24543e;
  color: #f1f6ef;
  font-size: 10px;
  white-space: nowrap;
}
.workbench-save-status {
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workbench-area-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 32px;
  background: #fff;
}
.workbench-area-content > .panel {
  border-radius: 5px;
  box-shadow: none;
  max-width: 1100px;
}
.workbench-area-content [hidden] {
  display: none !important;
}
.workbench-area-content .panel h2 {
  font-size: 21px;
}
.workbench-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 30px;
}
.workbench-overview-heading h1 {
  font-size: 30px;
  margin: 6px 0 12px;
}
.workbench-overview-heading p {
  font-size: 13px;
}
.workbench-project-sections {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.workbench-project-sections button {
  justify-content: flex-start !important;
  font-size: 12px !important;
}
.workbench-version-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe7dc;
  border-radius: 5px;
  max-width: 900px;
}
.workbench-version-list a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border-bottom: 1px solid #e7ece3;
}
.workbench-version-list a:last-child {
  border-bottom: 0;
}
.workbench-version-list a:hover {
  background: #f4f8ef;
  text-decoration: none;
}
.workbench-version-list strong {
  font-size: 14px;
}
.workbench-version-open {
  margin-left: auto;
  font-size: 12px;
}
.workbench-empty {
  padding: 55px 18px;
  text-align: center;
  color: #778b70;
}
.workbench-empty p {
  font-size: 13px;
}
.workbench-form-fields {
  margin: 0;
  padding: 0;
  border: 0;
}
.workbench-search-input {
  width: 100%;
}
.workbench-search-results {
  display: flex;
  flex-direction: column;
  max-height: 55vh;
  overflow: auto;
  gap: 4px;
  margin-top: 16px;
}
.workbench-search-results button {
  text-align: left;
  background: transparent;
  border-color: transparent;
}
.workbench-search-results button:hover {
  background: #eef5e8;
}
.workbench-search-results strong {
  font-size: 13px;
  font-weight: 550;
}
.workbench-error {
  padding: 10px 18px;
  margin: 0;
  font-size: 12px;
  flex-shrink: 0;
}
@media (max-width: 1180px) {
  .workbench-titlebar {
    gap: 12px;
  }
  .workbench-titlebar .app-brand-name {
    display: none;
  }
  .workbench-command {
    width: auto;
  }
  .workbench-command kbd {
    display: none;
  }
}
@media (max-width: 720px) {
  .workbench-titlebar {
    padding: 0 8px;
    gap: 8px;
  }
  .workbench-titlebar .wordmark {
    display: none;
  }
  .workbench-explorer-toggle {
    display: flex !important;
    padding: 4px !important;
  }
  .workbench-project-path {
    gap: 6px;
    font-size: 11px;
    flex: 1;
  }
  .workbench-project-path a {
    max-width: 100px;
  }
  .workbench-project-path a:first-child,
  .workbench-project-path > span {
    display: none;
  }
  .workbench-command {
    width: 32px;
    padding: 6px !important;
    min-width: 32px !important;
  }
  .workbench-command span,
  .workbench-command kbd {
    display: none;
  }
  .workbench-team-link {
    width: 41px;
  }
  .workbench-explorer {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(265px, 100%);
    z-index: 20;
    box-shadow: 6px 0 18px #1a2c2018;
    max-height: none;
  }
  .explorer-is-hidden .workbench-explorer {
    display: none;
  }
  .workbench-version-controls {
    margin-bottom: 12px;
  }
  .workbench-editor-toolbar {
    padding: 8px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .workbench-document-scroll .document-surface {
    padding: 22px 14px;
  }
  .workbench-document-scroll .document-heading h1 {
    font-size: 27px;
  }
  .workbench-area-content {
    padding: 20px 14px;
  }
  .workbench-area-content .panel {
    padding: 15px;
  }
  .workbench-status {
    gap: 10px;
    padding: 0 8px;
    font-size: 9px;
  }
  .workbench-status > span:last-child {
    display: none;
  }
}

/* Project workbench: selectors, independent resource panels and movable tabs. */
.workbench-titlebar {
  gap: 12px;
}
.workbench-appbar-picker {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.workbench-appbar-picker select {
  width: min(260px, 24vw);
  min-width: 0;
  padding: 5px 24px 5px 9px;
  font-size: 12px;
  border-radius: 5px;
  background-color: #fff;
}
.workbench-appbar-version select {
  width: min(155px, 15vw);
}
.workbench-appbar-picker > button {
  flex-shrink: 0;
  font-size: 20px;
  min-width: 27px;
  padding: 0 6px;
}
.workbench-command {
  flex: 1;
  min-width: 32px;
  width: auto;
  max-width: 350px;
}
.workbench-command span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-onboarding {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.workspace-start-card {
  width: 100%;
  max-width: 600px;
  padding: 28px;
}
.workspace-start-card h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 20px 0 16px;
}
.workspace-start-card p {
  color: #68766d;
  line-height: 1.65;
}
.workspace-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}
.workbench-sidebar-note {
  color: #788279;
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 3px;
}
.workbench-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}
.workbench-resource-sidebar input {
  font-size: 12px;
  padding: 8px;
}
.workbench-resource-row {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  border: 0;
  background: transparent;
  min-height: 24px;
  padding: 2px 4px;
  width: 100%;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  border-radius: 0;
  min-width: 0;
}
.workbench-resource-row > svg,
.workbench-resource-row > span:first-child:not(:last-child) {
  flex-shrink: 0;
}
.workbench-resource-row span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workbench-resource-row:hover,
.workbench-search-result:hover {
  background: #eaf0e7;
}
.workbench-resource-row.is-selected {
  color: #244d3e;
  background: #dfeadb;
}
.workbench-resource-row:active,
.workbench-search-result:active {
  background: #d2e0cd;
}
.workbench-search-result {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 3px;
  padding: 6px;
  font-size: 12px;
}
.workbench-search-result strong {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.workbench-search-result small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #748075;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 4px;
  max-height: 64px;
  overflow: hidden;
}
.workbench-media-tree .workbench-media-tree {
  margin-left: 12px;
  padding-left: 5px;
  border-left: 1px solid #dfe6de;
}
.workbench-media-file {
  display: flex;
  align-items: center;
  min-width: 0;
}
.workbench-file-drag {
  cursor: grab;
  color: #8d978e;
  background: transparent;
  border: 0;
  padding: 0 4px;
  font-size: 13px;
}
.workbench-file-drag:active {
  cursor: grabbing;
}
/* Each sortable tab has a drop-target wrapper that must stretch its contents. */
.workbench-area-content[hidden] {
  display: none !important;
}
.workbench-resource-view {
  max-width: 1000px;
  margin: 0 auto;
}
.workbench-resource-view h1 {
  font-size: 24px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.workbench-media-preview {
  display: block;
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border: 1px solid #e1e6df;
  background: #f8faf7;
}
.workbench-source-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7f4;
  padding: 20px;
  font-size: 12px;
}
@media (max-width: 1180px) {
  .workbench-titlebar {
    gap: 8px;
  }
  .workbench-command span {
    display: none;
  }
  .workbench-command {
    flex: 0 0 32px;
  }
}
@media (max-width: 720px) {
  .workbench-titlebar {
    flex-wrap: wrap;
    flex-basis: auto;
    min-height: 82px;
    gap: 5px;
    padding: 6px 8px;
  }
  .workbench-appbar-picker {
    flex: 1;
  }
  .workbench-appbar-picker select {
    width: 100%;
  }
  .workbench-appbar-version {
    order: 5;
    flex-basis: 100%;
  }
  .workbench-appbar-version select {
    width: 100%;
  }
  .workbench-command {
    margin: 0;
  }
  .workspace-onboarding {
    padding: 22px 12px;
  }
  .workspace-start-card {
    padding: 16px;
  }
  .workspace-start-card h1 {
    font-size: 23px;
  }
}

/* Page dialogs use their own spacing instead of stacking global label margins. */
.workbench-page-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.workbench-page-form > label {
  margin: 0;
}
.workbench-page-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

/* The editing viewport fills the workbench; reading retains a comfortable inset. */
.workbench-document-scroll.is-editing {
  display: flex;
  overflow: hidden;
}
.workbench-document-scroll.is-editing .document-surface {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
.workbench-document-scroll.is-editing .workbench-document-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.workbench-document-body .wnd-wysiwyg-field {
  gap: 0;
  margin: 0;
}
.workbench-document-scroll.is-preview .document-surface {
  max-width: none;
}
.workbench-page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin: 0;
}
.workbench-heading-fields {
  flex: 1;
  min-width: 0;
}
.workbench-page-heading h1 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}
.workbench-page-heading input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
  margin: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: #65776b;
}
.workbench-page-heading h1 input {
  font-size: 18px;
  font-weight: 600;
  color: #23352c;
}
.workbench-page-heading input:hover {
  background: #f5f8f5;
  border-color: #e0e6df;
}
.workbench-page-heading input:focus {
  background: white;
}
.workbench-heading-error {
  font-size: 12px;
  color: #a12424;
}
.document-subtitle {
  color: #65776b;
  margin: 6px 0 18px;
}
.workbench-page-heading .document-subtitle {
  margin: 4px 0;
  font-size: 12px;
}
@media (max-width: 720px) {
  .workbench-editor-toolbar {
    flex-wrap: wrap;
  }
  .workbench-page-heading {
    flex-basis: 100%;
  }
  .workbench-editor-actions {
    margin-left: auto;
  }
}
.workbench-briefing {
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8df;
  margin-bottom: 24px;
}
.workbench-briefing label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
  font-size: 11px;
}
.workbench-briefing input,
.workbench-briefing select,
.workbench-briefing textarea {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  padding: 7px;
  border-radius: 4px;
}
.workbench-briefing textarea {
  resize: vertical;
  line-height: 1.5;
}
.workbench-briefing fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.workbench-briefing small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: #65776b;
  overflow-wrap: anywhere;
}
.workbench-briefing details {
  font-size: 11px;
  margin: 14px 0;
}
.workbench-briefing summary {
  cursor: pointer;
}
.briefing-instruction-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.briefing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.briefing-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  overflow-wrap: anywhere;
  gap: 5px;
}
.briefing-source span {
  min-width: 0;
}
.briefing-mobile-toggle {
  display: none;
}
@media (max-width: 1180px) {
  .briefing-mobile-toggle {
    display: inline-flex;
  }
}

.workbench-briefing textarea,
.workbench-briefing input,
.workbench-briefing select {
  font-weight: 400;
}

.reference-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.media-target img {
  width: 84px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}
.media-target span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.reference-picker label {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.reference-filters {
  display: flex;
  gap: 12px;
}
.reference-filters > label:first-child {
  flex: 1;
  min-width: 0;
}
.reference-targets {
  max-height: 38vh;
  overflow: auto;
  border-block: 1px solid var(--border, #dce3df);
  padding-block: 8px;
}
.reference-picker .reference-target {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  cursor: pointer;
}
.reference-target input {
  width: auto;
  flex: 0 0 auto;
}
.reference-target:has(:checked) {
  background: #e7efe9;
  border-radius: 5px;
}
.reference-target strong,
.reference-target small {
  display: block;
  overflow-wrap: anywhere;
}
.reference-target small {
  opacity: 0.7;
  margin-top: 3px;
}
.reference-issues {
  max-height: 50vh;
  overflow: auto;
  padding-left: 20px;
}
.reference-issues li {
  padding-block: 10px;
}
.reader-document [id],
.workbench-document-body [id] {
  scroll-margin-top: 24px;
}
@media (max-width: 600px) {
  .reference-filters {
    flex-direction: column;
  }
}

.reference-picker p {
  margin: 0;
}
.reference-picker input,
.reference-picker select {
  font-weight: 400;
}

/* Content-free navigation headings share the tree's drag/drop behavior. */
.reader-menu-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 5px;
  font-weight: 650;
}
.reader-menu-title svg,
.reader-menu a svg {
  flex-shrink: 0;
}
.reader-menu a svg {
  margin-right: 8px;
  vertical-align: middle;
}

/* Tree drops distinguish sibling insertion from nesting on the visible row. */

.inline-editor-chat {
  position: absolute;
  z-index: 20;
  left: 12px;
  width: min(560px, calc(100% - 24px));
  height: 420px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wb-line, #526075);
  border-radius: 14px;
  background: var(--wb-surface, #20242b);
  color: var(--wb-text, #dce0e8);
  box-shadow:
    0 16px 48px #0006,
    0 2px 8px #0004;
  font-size: 13px;
  overflow: hidden;
}
.inline-editor-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  flex-shrink: 0;
}
.inline-editor-chat-heading > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.inline-editor-chat-heading strong {
  font-size: 14px;
}
.inline-editor-chat-heading span {
  font-size: 11px;
  color: var(--wb-muted, #a2aab8);
}
.inline-editor-chat-badge {
  border: 1px solid var(--wb-line, #526075);
  border-radius: 20px;
  padding: 3px 8px;
}
.inline-editor-chat-selection {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 14px 8px;
  padding: 7px 10px;
  border-left: 2px solid var(--wb-accent, #b6bfd0);
  background: var(--wb-hover, #ffffff09);
  border-radius: 0 5px 5px 0;
  font-size: 12px;
  flex-shrink: 0;
}
.inline-editor-chat-selection span {
  font-size: 10px;
  color: var(--wb-muted, #a2aab8);
}
.inline-editor-chat-selection q {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline-editor-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 14px 10px;
  scrollbar-width: thin;
  line-height: 1.5;
}
.inline-editor-chat-message {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.inline-editor-chat-message > span {
  font-size: 10px;
  font-weight: 600;
  color: var(--wb-muted, #a2aab8);
}
.inline-editor-chat-message p {
  white-space: pre-wrap;
  margin: 4px 0 0;
}
.inline-editor-chat-message.is-user {
  padding: 8px 10px;
  background: var(--wb-hover, #ffffff09);
  border-radius: 8px;
}
.inline-editor-chat-empty,
.inline-editor-chat-working {
  color: var(--wb-muted, #a2aab8);
  margin: 8px 0;
}
.inline-editor-chat-error {
  color: var(--wnd-color-danger, #ffb4b4);
  background: color-mix(in srgb, var(--wnd-color-danger, #ffb4b4) 8%, transparent);
  border-radius: 6px;
  padding: 9px 10px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.inline-editor-chat-composer {
  flex-shrink: 0;
  margin: 0 10px 8px;
  padding: 4px;
  border: 1px solid var(--wb-line, #526075);
  border-radius: 9px;
}
.inline-editor-chat-composer:focus-within {
  border-color: var(--wb-accent, #b6bfd0);
}
.inline-editor-chat textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 6px 7px;
  resize: none;
  font: inherit;
  line-height: 1.4;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 5px;
}
.inline-editor-chat textarea:focus {
  box-shadow: none;
  outline: none;
}
.inline-editor-chat-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.inline-editor-chat-model {
  min-width: 0;
}
.inline-editor-chat-model button {
  max-width: 100%;
}
.inline-editor-chat-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--wb-line, #526075);
  flex-shrink: 0;
}
.inline-editor-chat button {
  font: inherit;
  cursor: pointer;
}
.inline-editor-chat-compose-actions > button,
.inline-editor-chat-actions > button {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.inline-editor-chat button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (max-width: 720px) {
  .inline-editor-chat {
    top: auto !important;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    max-height: 60% !important;
    border-radius: 12px 12px 0 0;
  }
  .inline-editor-chat-heading {
    padding: 8px 10px;
  }
  .inline-editor-chat-selection {
    display: none;
  }
  .inline-editor-chat-heading span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .inline-editor-chat-badge {
    display: none;
  }
  .inline-editor-chat-actions {
    padding: 6px 10px;
  }
}

.team-ai-settings {
  border-bottom: 1px solid var(--account-line, #d6ded6);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.team-ai-settings fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 1rem;
}
.team-ai-settings label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.team-ai-settings label:has(input[type='checkbox']) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.team-ai-settings input[type='checkbox'] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.team-ai-settings button {
  justify-self: start;
}

.team-ai-provider {
  border: 1px solid var(--account-line, #d6ded6);
  border-radius: 0.6rem;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.team-ai-provider-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.team-ai-provider-heading h3,
.team-ai-provider p {
  margin: 0;
}
.team-ai-model-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-ai-model-list li {
  display: grid;
  gap: 0.15rem;
}
.team-ai-model-list span {
  color: var(--wb-muted, #536453);
  font-size: 0.9rem;
}
