body {
  padding-top: var(--app-shell-header-height, 64px);
}

.nav-container,
.toolbar {
  top: var(--app-shell-header-height, 64px);
}

@media screen and (min-width: 1024px) {
  .nav {
    top: var(--app-shell-header-height, 64px);
    height: calc(100vh - var(--app-shell-header-height, 64px));
  }
}

.app-docs-tree,
.app-docs-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-docs-tree ul {
  margin-left: 0.65rem;
  padding-left: 0.65rem;
  border-left: 1px solid #d8d8d8;
}

.app-docs-tree li {
  position: relative;
  margin: 0.15rem 0;
}

.app-docs-tree-row {
  display: flex;
  align-items: center;
  min-height: 1.8rem;
}

.app-docs-tree-toggle {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
}

button.app-docs-tree-toggle {
  cursor: pointer;
}

button.app-docs-tree-toggle::before {
  content: "▸";
}

.app-docs-tree-item.is-open > .app-docs-tree-row button.app-docs-tree-toggle::before {
  content: "▾";
}

.app-docs-tree-item:not(.is-open) > ul {
  display: none;
}

.app-docs-tree-link,
.app-docs-tree-label {
  min-width: 0;
  padding: 0.2rem 0.35rem;
  border-radius: 0.25rem;
  color: inherit;
  line-height: 1.35;
  text-decoration: none;
}

.app-docs-tree-item.is-current > .app-docs-tree-row .app-docs-tree-link {
  background: #e5edff;
  color: #163d8f;
  font-weight: 700;
}

.app-docs-tree-item[data-kind="group"] > .app-docs-tree-row .app-docs-tree-label,
.app-docs-tree-item[data-kind="source"] > .app-docs-tree-row .app-docs-tree-link {
  font-weight: 650;
}

.app-docs-nav-status {
  color: #666;
  font-size: 0.85rem;
}

@media screen and (max-width: 1023.5px) {
  .nav {
    height: calc(100vh - var(--app-shell-header-height, 64px) - 2.5rem);
  }
}

.app-docs-search {
  width: min(46rem, calc(100% - 2rem));
  height: min(42rem, calc(100vh - 2rem));
  height: min(42rem, calc(100dvh - 2rem));
  max-height: min(42rem, calc(100vh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(59 149 223 / 42%);
  border-radius: 1rem;
  background: #f6faff;
  box-shadow:
    0 1.5rem 4rem rgb(7 26 44 / 38%),
    0 0 0 1px rgb(255 255 255 / 45%);
  color: #13283b;
}

.app-docs-search[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.app-docs-search::backdrop {
  background: rgb(5 20 34 / 62%);
  backdrop-filter: blur(3px);
}

.app-docs-search-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background:
    radial-gradient(circle at 82% -80%, rgb(89 176 244 / 72%), transparent 52%),
    linear-gradient(118deg, var(--app-docs-navy, #071a2c) 0%, #0b2c4b 52%, var(--app-docs-blue, #1e73be) 100%);
  color: #fff;
}

.app-docs-search-header-icon,
.app-docs-search-context-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.app-docs-search-header-icon {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 12%);
  box-shadow: inset 0 1px rgb(255 255 255 / 10%);
}

.app-docs-search-header-icon .app-shell-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.app-docs-search-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.app-docs-search-header-copy > span {
  display: block;
  margin-bottom: 0.2rem;
  color: rgb(255 255 255 / 68%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.app-docs-search-header h2 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-docs-search-close {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 9%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.app-docs-search-close:hover,
.app-docs-search-close:focus-visible {
  border-color: rgb(255 255 255 / 52%);
  background: rgb(255 255 255 / 18%);
  outline: 0;
}

.app-docs-search-body {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: 1rem 0 0;
}

.app-docs-search-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1.1rem 1rem;
  padding: 0.8rem;
  border: 1px solid #c6ddf3;
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgb(30 115 190 / 10%), rgb(255 255 255 / 78%)),
    #eef7ff;
}

.app-docs-search-context-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #dceeff;
  color: #145f9d;
}

.app-docs-search-context-copy {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.app-docs-search-context-copy > span {
  color: #557084;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-docs-search-context-copy strong {
  overflow: hidden;
  color: #0c3e68;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-docs-search-context-copy small {
  color: #5a6d7d;
  font-size: 0.76rem;
  line-height: 1.3;
}

.app-docs-search-access {
  max-width: 9rem;
  padding: 0.35rem 0.55rem;
  overflow: hidden;
  border: 1px solid #b8d6ef;
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  color: #1a5b91;
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-docs-search-form {
  display: grid;
  gap: 0.4rem;
  margin: 0 1.1rem;
}

.app-docs-search-form > label {
  color: #263e52;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-docs-search-input-shell {
  position: relative;
}

.app-docs-search-input-shell > .app-shell-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 1.15rem;
  height: 1.15rem;
  color: #2876b6;
  pointer-events: none;
  transform: translateY(-50%);
}

.app-docs-search-form input {
  box-sizing: border-box;
  width: 100%;
  height: 3rem;
  padding: 0.75rem 0.9rem 0.75rem 2.8rem;
  border: 1px solid #99bddb;
  border-radius: 0.72rem;
  background: #fff;
  box-shadow: inset 0 1px 2px rgb(7 26 44 / 5%);
  color: #13283b;
  font: inherit;
}

.app-docs-search-form input:focus {
  border-color: #1e73be;
  box-shadow:
    0 0 0 0.2rem rgb(30 115 190 / 16%),
    inset 0 1px 2px rgb(7 26 44 / 5%);
  outline: 0;
}

.app-docs-search-status {
  min-height: 1.4rem;
  margin: 0;
  padding: 0.65rem 1.2rem 0.5rem;
  color: #587084;
  font-size: 0.8rem;
}

.app-docs-search-results-viewport {
  min-height: 0;
  padding: 0 0.9rem 0.9rem 1.1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.app-docs-search-results {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-docs-search-results a {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #d8e5f0;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.7rem rgb(7 26 44 / 4%);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.app-docs-search-results a:hover,
.app-docs-search-results a:focus {
  border-color: #8cbce3;
  background: #f0f8ff;
  outline: 0;
  transform: translateY(-1px);
}

.app-docs-search-results strong,
.app-docs-search-results span,
.app-docs-search-results small {
  overflow-wrap: anywhere;
}

.app-docs-search-results span {
  color: #353b45;
  line-height: 1.4;
}

.app-docs-search-results small {
  color: #6b7280;
}

.app-docs-search-pagination {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid #cbdfee;
  background:
    linear-gradient(90deg, rgb(30 115 190 / 8%), transparent 60%),
    #f2f8fd;
  box-shadow: 0 -0.35rem 1rem rgb(7 26 44 / 5%);
}

.app-docs-search-pagination[hidden],
.app-docs-search-load-more[hidden] {
  display: none;
}

.app-docs-search-pagination-summary {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  color: #526b7f;
  font-size: 0.75rem;
}

.app-docs-search-pagination-summary > span:first-child {
  color: #173f62;
  font-weight: 750;
}

.app-docs-search-pagination-summary > span + span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.app-docs-search-pagination-summary > span + span::before {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #3b95df;
  content: "";
}

.app-docs-search-load-more {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #1e73be;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #1e73be, #145f9d);
  box-shadow: 0 0.3rem 0.8rem rgb(30 115 190 / 18%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.app-docs-search-load-more:hover,
.app-docs-search-load-more:focus-visible {
  border-color: #0b4d83;
  background: linear-gradient(135deg, #2585d3, #0f568e);
  outline: 0;
}

.app-docs-search-load-more:focus-visible {
  box-shadow:
    0 0 0 0.2rem rgb(30 115 190 / 18%),
    0 0.3rem 0.8rem rgb(30 115 190 / 18%);
}

.app-docs-search-load-more:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media screen and (max-width: 600px) {
  .app-docs-search {
    width: calc(100% - 1rem);
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100vh - 1rem);
    border-radius: 0.85rem;
  }

  .app-docs-search-header {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .app-docs-search-context {
    grid-template-columns: auto minmax(0, 1fr);
    margin-right: 0.85rem;
    margin-left: 0.85rem;
  }

  .app-docs-search-form {
    margin-right: 0.85rem;
    margin-left: 0.85rem;
  }

  .app-docs-search-status {
    padding-right: 0.95rem;
    padding-left: 0.95rem;
  }

  .app-docs-search-access {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
  }

  .app-docs-search-results-viewport {
    padding-right: 0.55rem;
    padding-bottom: 0.8rem;
    padding-left: 0.85rem;
  }

  .app-docs-search-pagination {
    flex-direction: column;
    align-items: stretch;
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .app-docs-search-load-more {
    width: 100%;
  }
}

.app-docs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-docs-annotations-toggle[hidden],
.app-docs-selection-tools[hidden],
.app-docs-annotations-backdrop[hidden],
.app-docs-annotations-panel[hidden],
.app-docs-annotations-owner-filter[hidden],
.app-docs-annotation-delete[hidden],
.app-docs-annotation-unavailable[hidden],
.app-docs-annotations-empty[hidden],
.app-docs-annotations-pagination[hidden],
.app-docs-annotations-load-more[hidden] {
  display: none;
}

.app-docs-annotations-toggle {
  position: fixed;
  z-index: 5;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgb(30 115 190 / 25%);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.7rem 2rem rgb(7 26 44 / 20%);
  color: #124f80;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-docs-annotations-toggle:hover,
.app-docs-annotations-toggle:focus-visible {
  border-color: rgb(30 115 190 / 55%);
  background: #f4faff;
}

.app-docs-annotations-toggle:focus-visible,
.app-docs-selection-tools button:focus-visible,
.app-docs-annotations-close:focus-visible,
.app-docs-annotation-actions button:focus-visible,
.app-docs-annotation-card-actions button:focus-visible,
.app-docs-annotation-highlight:focus-visible {
  outline: 3px solid var(--app-docs-focus);
  outline-offset: 2px;
}

.app-docs-annotations-toggle-icon {
  position: relative;
  width: 0.9rem;
  height: 1.05rem;
  flex: 0 0 0.9rem;
  border-radius: 0.15rem 0.15rem 0.28rem 0.28rem;
  background: currentcolor;
  transform: rotate(12deg);
}

.app-docs-annotations-toggle-icon::after {
  position: absolute;
  right: 0.17rem;
  bottom: -0.18rem;
  left: 0.17rem;
  height: 0.3rem;
  border: 1px solid currentcolor;
  border-top: 0;
  background: #fff;
  content: "";
}

.app-docs-annotations-count {
  display: inline-grid;
  min-width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #e5f1fb;
  font-size: 0.68rem;
}

.app-docs-selection-tools {
  position: fixed;
  z-index: 12;
  transform: translateX(-50%);
}

.app-docs-selection-tools button {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 0.65rem;
  background: var(--app-docs-navy);
  box-shadow: 0 0.55rem 1.5rem rgb(7 26 44 / 28%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-docs-selection-tools .app-docs-annotations-toggle-icon::after {
  background: var(--app-docs-navy);
}

.app-docs-annotations-backdrop {
  position: fixed;
  z-index: 7;
  inset: 4rem 0 0;
  background: rgb(7 26 44 / 20%);
  backdrop-filter: blur(1px);
}

.app-docs-annotations-panel {
  position: fixed;
  z-index: 8;
  top: 4rem;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(25rem, calc(100% - 1rem));
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid #d8e3ed;
  background: #f8fafc;
  box-shadow: -1rem 0 3rem rgb(7 26 44 / 18%);
  color: #172033;
}

.app-docs-annotations-panel-header,
.app-docs-annotation-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #dce5ed;
  background: #fff;
}

.app-docs-annotations-panel-header h2,
.app-docs-annotation-editor-header h2 {
  margin: 0.18rem 0 0;
  color: #102a43;
  font-size: 1.15rem;
}

.app-docs-annotations-eyebrow {
  color: var(--app-docs-blue);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-docs-annotations-close {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #526476;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

.app-docs-annotations-close:hover {
  background: #edf2f7;
  color: #102a43;
}

.app-docs-annotations-scopes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #dce5ed;
  background: #fff;
}

.app-docs-annotations-scopes button {
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: #526476;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
}

.app-docs-annotations-scopes button:hover {
  background: #f1f6fa;
  color: #124f80;
}

.app-docs-annotations-scopes button[aria-selected="true"] {
  border-color: rgb(30 115 190 / 20%);
  background: #eaf4fc;
  color: #124f80;
  box-shadow: inset 0 -2px 0 var(--app-docs-blue);
}

.app-docs-annotations-scopes button:focus-visible,
.app-docs-annotations-owner-filter input:focus-visible,
.app-docs-annotations-load-more:focus-visible,
.app-docs-annotation-document a:focus-visible,
.app-docs-annotation-card-link:focus-visible {
  outline: 3px solid var(--app-docs-focus);
  outline-offset: 2px;
}

.app-docs-annotations-owner-filter {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #dce5ed;
  background: #f5f9fc;
}

.app-docs-annotations-owner-filter label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #28455f;
  cursor: pointer;
}

.app-docs-annotations-owner-filter label > span {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.app-docs-annotations-owner-filter strong {
  font-size: 0.76rem;
}

.app-docs-annotations-owner-filter small {
  color: #687c8f;
  font-size: 0.66rem;
  line-height: 1.35;
}

.app-docs-annotations-owner-filter input {
  position: relative;
  width: 2.35rem;
  height: 1.35rem;
  flex: 0 0 2.35rem;
  margin: 0;
  appearance: none;
  border: 1px solid #9dafbf;
  border-radius: 999px;
  background: #cbd5df;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.app-docs-annotations-owner-filter input::after {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.93rem;
  height: 0.93rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(7 26 44 / 24%);
  content: "";
  transition: transform 160ms ease;
}

.app-docs-annotations-owner-filter input:checked {
  border-color: #1767a7;
  background: var(--app-docs-blue);
}

.app-docs-annotations-owner-filter input:checked::after {
  transform: translateX(1rem);
}

.app-docs-annotations-results {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.app-docs-annotations-status,
.app-docs-annotations-empty {
  margin: 0;
  padding: 0.9rem 1.1rem 0;
  color: #5c6f82;
  font-size: 0.82rem;
  line-height: 1.45;
}

.app-docs-annotations-status:empty {
  display: none;
}

.app-docs-annotations-list {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  overflow-y: auto;
  list-style: none;
}

.app-docs-annotation-card {
  padding: 0.85rem;
  border: 1px solid #dce5ed;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.25rem 0.8rem rgb(7 26 44 / 5%);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.app-docs-annotations-list > li.is-emphasized .app-docs-annotation-card {
  border-color: rgb(30 115 190 / 58%);
  box-shadow: 0 0 0 0.22rem rgb(30 115 190 / 18%);
}

.app-docs-annotation-document {
  display: grid;
  gap: 0.18rem;
  margin: -0.1rem 0 0.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e5ecf2;
}

.app-docs-annotation-document a {
  overflow: hidden;
  color: #124f80;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-docs-annotation-document a:hover {
  text-decoration: underline;
}

.app-docs-annotation-document small {
  overflow: hidden;
  color: #788999;
  font-size: 0.64rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-docs-annotation-card-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #637588;
}

.app-docs-annotation-owner {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  color: #28455f;
}

.app-docs-annotation-owner strong {
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-docs-annotation-owner span {
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: #e8f3fb;
  color: #1767a7;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-docs-annotation-card-heading small {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.app-docs-annotation-card-heading time {
  margin-left: auto;
  color: #7b8b9a;
  font-size: 0.65rem;
  white-space: nowrap;
}

.app-docs-annotation-swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 0.8rem;
  border: 1px solid rgb(16 42 67 / 18%);
  border-radius: 50%;
}

.app-docs-annotation-swatch[data-color="yellow"],
.app-docs-annotation-highlight[data-color="yellow"] {
  background: #ffe58f;
}

.app-docs-annotation-swatch[data-color="green"],
.app-docs-annotation-highlight[data-color="green"] {
  background: #bde7bd;
}

.app-docs-annotation-swatch[data-color="blue"],
.app-docs-annotation-highlight[data-color="blue"] {
  background: #b7dcff;
}

.app-docs-annotation-swatch[data-color="pink"],
.app-docs-annotation-highlight[data-color="pink"] {
  background: #ffc7df;
}

.app-docs-annotation-card blockquote {
  display: -webkit-box;
  margin: 0.65rem 0 0;
  overflow: hidden;
  color: #23384c;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.app-docs-annotation-card-note,
.app-docs-annotation-unavailable {
  margin: 0.55rem 0 0;
  color: #526476;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.app-docs-annotation-unavailable {
  color: #94520b;
}

.app-docs-annotation-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.app-docs-annotation-card-actions button,
.app-docs-annotation-card-link {
  padding: 0.35rem 0.6rem;
  border: 1px solid #cbd7e2;
  border-radius: 0.4rem;
  background: #fff;
  color: #1e5f96;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
}

.app-docs-annotation-card-actions button:hover:not(:disabled),
.app-docs-annotation-card-link:hover {
  background: #edf6fd;
}

.app-docs-annotation-card-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app-docs-annotations-pagination {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #dce5ed;
  background: #fff;
  color: #657789;
  font-size: 0.72rem;
}

.app-docs-annotations-load-more {
  padding: 0.42rem 0.7rem;
  border: 1px solid rgb(30 115 190 / 28%);
  border-radius: 0.45rem;
  background: #edf6fd;
  color: #124f80;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
}

.app-docs-annotations-load-more:hover:not(:disabled) {
  background: #dceefa;
}

.app-docs-annotations-load-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

.app-docs-annotation-editor {
  width: min(34rem, calc(100% - 1.5rem));
  max-height: min(42rem, calc(100vh - 1.5rem));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.9rem;
  box-shadow: 0 1.2rem 4rem rgb(7 26 44 / 30%);
  color: #172033;
}

.app-docs-annotation-editor::backdrop {
  background: rgb(7 26 44 / 48%);
  backdrop-filter: blur(2px);
}

.app-docs-annotation-editor form {
  display: flex;
  max-height: inherit;
  flex-direction: column;
  overflow-y: auto;
}

.app-docs-annotation-quote {
  max-height: 8rem;
  margin: 1rem 1.1rem 0;
  padding: 0.75rem 0.85rem;
  overflow-y: auto;
  border-left: 0.25rem solid var(--app-docs-blue);
  background: #f1f6fa;
  color: #31465a;
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.5;
}

.app-docs-annotation-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 1.1rem 0;
  padding: 0;
  border: 0;
}

.app-docs-annotation-colors legend {
  width: 100%;
  margin-bottom: 0.25rem;
  color: #334e68;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-docs-annotation-colors label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #d6e0e8;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
}

.app-docs-annotation-colors label:has(input:checked) {
  border-color: var(--app-docs-blue);
  box-shadow: 0 0 0 2px rgb(30 115 190 / 12%);
}

.app-docs-annotation-colors input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.app-docs-annotation-colors label:has(input:focus-visible) {
  outline: 3px solid var(--app-docs-focus);
  outline-offset: 2px;
}

.app-docs-annotation-note-label {
  margin: 1rem 1.1rem 0.35rem;
  color: #334e68;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-docs-annotation-note-label span {
  color: #7b8c9d;
  font-weight: 500;
}

#app-docs-annotation-note {
  min-height: 7rem;
  margin: 0 1.1rem;
  padding: 0.7rem 0.8rem;
  resize: vertical;
  border: 1px solid #b9c8d5;
  border-radius: 0.5rem;
  color: #172033;
  font: inherit;
  line-height: 1.45;
}

#app-docs-annotation-note:focus {
  border-color: var(--app-docs-blue);
  box-shadow: 0 0 0 3px rgb(30 115 190 / 14%);
  outline: 0;
}

.app-docs-annotation-editor-status {
  min-height: 1.25rem;
  margin: 0.55rem 1.1rem 0;
  color: #9b2c2c;
  font-size: 0.76rem;
}

.app-docs-annotation-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid #e1e8ee;
}

.app-docs-annotation-actions-spacer {
  flex: 1;
}

.app-docs-annotation-actions button {
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-docs-annotation-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.app-docs-annotation-primary {
  border: 1px solid var(--app-docs-blue);
  background: var(--app-docs-blue);
  color: #fff;
}

.app-docs-annotation-primary:hover:not(:disabled) {
  background: #155f9e;
}

.app-docs-annotation-secondary {
  border: 1px solid #c4d0db;
  background: #fff;
  color: #334e68;
}

.app-docs-annotation-delete {
  border: 1px solid #e4b6b6;
  background: #fff8f8;
  color: #a12626;
}

.app-docs-annotation-highlight {
  padding: 0.06em 0;
  border-radius: 0.12em;
  color: inherit;
  cursor: pointer;
  box-decoration-break: clone;
  transition:
    box-shadow 180ms ease,
    filter 180ms ease;
  -webkit-box-decoration-break: clone;
}

.app-docs-annotation-highlight:hover {
  filter: saturate(1.16);
}

.app-docs-annotation-highlight[data-owner="other"] {
  box-shadow: inset 0 -0.14em 0 rgb(16 42 67 / 48%);
}

.app-docs-annotation-highlight[data-shared="true"] {
  box-shadow: inset 0 -0.2em 0 rgb(30 115 190 / 70%);
}

.app-docs-annotation-highlight.is-emphasized {
  box-shadow: 0 0 0 0.25rem rgb(30 115 190 / 32%);
}

@media screen and (max-width: 600px) {
  .app-docs-annotations-toggle {
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .app-docs-annotations-toggle > span:nth-child(2) {
    display: none;
  }

  .app-docs-annotations-panel {
    width: 100%;
    border-left: 0;
  }

  .app-docs-annotation-actions {
    flex-wrap: wrap;
  }

  .app-docs-annotation-actions-spacer {
    display: none;
  }

  .app-docs-annotation-delete {
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-docs-annotation-highlight {
    transition: none;
  }
}

.doc table.bible-navigation {
  width: 100%;
  table-layout: fixed;
  font-size: 0.875rem;
}

.doc table.bible-navigation td {
  padding: 0.35rem 0.25rem;
}
