@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap');

:root {
  --money-green: #2dc800;
  --money-green-dark: #229500;
  --money-green-soft: #eef9e8;
  --money-ink: #023444;
  --money-navy: #023444;
  --money-muted: #53616d;
  --money-line: #dfddd6;
  --money-line-strong: #cbc7bd;
  --money-bg: #ffffff;
  --money-panel: #ffffff;
  --money-panel-alt: #f5f1e9;
  --money-surface-muted: #f4f6f8;
  --money-code-bg: #f1f4f5;
  --money-code-ink: #233d49;
  --money-shadow: 0 18px 48px rgba(30, 33, 38, 0.07);
  --money-shadow-soft: 0 6px 18px rgba(30, 33, 38, 0.05);
  --docs-sidebar-width: 280px;
  --docs-toc-width: 230px;
  --docs-sticky-offset: 136px;
  --docs-chat-panel-width: 380px;
  --docs-chat-effective-width: min(var(--docs-chat-panel-width), calc(100vw - 320px));
  --docs-chat-content-gap: 32px;
  --docs-page-left: max(20px, calc((100vw - 1420px) / 2));
}

:root[data-theme="dark"] body.public-page {
  color-scheme: dark;
  --money-green: #55d936;
  --money-green-dark: #75e25b;
  --money-green-soft: #173622;
  --money-ink: #d5dfe2;
  --money-navy: #d5dfe2;
  --money-muted: #a8b7bd;
  --money-line: #30464f;
  --money-line-strong: #45606a;
  --money-bg: #0c171b;
  --money-panel: #122127;
  --money-panel-alt: #1a2d34;
  --money-surface-muted: #18282e;
  --money-code-bg: #14252c;
  --money-code-ink: #cbd7db;
  --money-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --money-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.24);
}

/* Admin uses the same flat, document-like visual language as the public docs. */
.admin-layout,
.admin-layout * {
  border-radius: 0 !important;
  box-shadow: none !important;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", Aptos, Arial, sans-serif;
  color: var(--money-ink);
  background: var(--money-bg);
}

/* Keep the public documentation on one readable typeface. */
body.public-page,
body.public-page button,
body.public-page input,
body.public-page select,
body.public-page textarea {
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Aptos, Arial, sans-serif;
}

body.public-page h1,
body.public-page h2,
body.public-page h3,
body.public-page h4,
body.public-page h5,
body.public-page h6 {
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Aptos, Arial, sans-serif;
}

body.public-page .topbar-inner {
  transition: padding-right .24s cubic-bezier(.22, 1, .36, 1);
}

body.public-page :is(.page-shell, .site-footer) {
  margin-right: var(--docs-page-left);
  margin-left: var(--docs-page-left);
  transition: width .24s cubic-bezier(.22, 1, .36, 1);
}

body.public-page.docs-chat-hide-toc .docs-toc {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.public-page.docs-chat-hide-toc .docs-content-shell {
  grid-template-columns: minmax(0, 820px) minmax(0, 0px);
  column-gap: 0;
}

body.public-page.docs-chat-hide-toc .docs-content-shell-reference-example > .docs-primary,
body.public-page.docs-chat-hide-toc .docs-reference-request-slot {
  grid-column: 1;
}

body.public-page.docs-chat-hide-toc .docs-reference-request-slot {
  grid-row: auto;
}

body.public-page.docs-chat-constrained .topbar-inner {
  padding-right: calc(
    var(--docs-chat-effective-width) +
    var(--docs-chat-content-gap) -
    var(--docs-page-left)
  );
}

body.public-page.docs-chat-constrained :is(.page-shell, .site-footer) {
  width: min(
    1420px,
    calc(100vw - 40px),
    calc(100vw - var(--docs-chat-effective-width) - var(--docs-chat-content-gap) - var(--docs-page-left))
  );
  margin-right: 0;
  margin-left: var(--docs-page-left);
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--money-bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

input,
select,
textarea,
button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(211, 217, 226, 0.9);
  background: color-mix(in srgb, var(--money-bg) 98%, transparent);
  backdrop-filter: blur(12px);
}

.topbar-inner,
.page-shell,
.site-footer {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: grid;
  gap: 0;
  padding: 16px 0 0;
}

.topbar-main-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.topbar-main-row-compact {
  grid-template-columns: auto 1fr;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Sora, "Instrument Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 152px;
  height: auto;
  display: block;
}

.brand-lockup {
  display: grid;
  gap: 2px;
  align-content: center;
}

.brand-subtitle {
  color: var(--money-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-actions,
.admin-links,
.editor-actions,
.inline-form,
.form-grid {
  display: flex;
  gap: 12px;
}

.field-readonly-note {
  display: grid;
  gap: 4px;
  align-content: start;
}

.field-readonly-note span {
  color: var(--money-muted);
  font-size: 0.86rem;
}

.topbar-search-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

.topbar-search-shell {
  position: relative;
  width: min(100%, 620px);
}

.topbar-search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--money-line);
  border-radius: 14px;
  background: var(--money-panel);
  box-shadow: none;
}

.topbar-search-icon,
.topbar-settings-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--money-muted);
}

.topbar-search-icon svg,
.topbar-search-toggle svg,
.topbar-settings-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-search-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topbar-search-form input:focus {
  box-shadow: none;
}

.topbar-search-form:focus-within {
  border-color: var(--money-green);
  box-shadow: none;
}

body.public-page .topbar-search-form input,
body.public-page .topbar-search-submit,
body.public-page .topbar .btn-compact,
body.public-page .topbar-settings-item,
body.public-page .topbar-menu-item {
  font-size: 0.84rem;
}

.topbar-search-submit {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--money-line);
  border-radius: 10px;
  background: var(--money-panel);
  color: var(--money-ink);
  font-weight: 600;
}

.topbar-search-submit:hover {
  background: var(--money-panel);
  border-color: var(--money-line-strong);
  color: var(--money-green-dark);
}

.topnav {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 46px;
  justify-self: stretch;
  padding: 0;
  background: transparent;
  color: var(--money-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.topnav a,
.topnav a:visited {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0;
  border-bottom: 2px solid transparent;
  color: var(--money-ink);
  font-family: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", Aptos, Arial, sans-serif;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

body.public-page .topnav a,
body.public-page .topnav a:visited {
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Aptos, Arial, sans-serif;
}

.topnav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.topnav-link-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topnav-link-label {
  display: inline-block;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--money-green-dark);
}

.topnav a.active {
  color: var(--money-ink);
  border-bottom-color: var(--money-green);
}

.docs-mobile-navigation {
  display: none;
}

.topbar-actions {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.topbar-account,
.topbar-settings {
  position: relative;
}

.topbar-search-toggle,
.topbar-account-toggle,
.topbar-settings-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--money-line);
  border-radius: 12px;
  background: var(--money-panel);
  color: var(--money-muted);
  cursor: pointer;
  list-style: none;
}

.topbar-search-toggle {
  display: none;
}

.topbar-account-toggle::-webkit-details-marker,
.topbar-settings-toggle::-webkit-details-marker {
  display: none;
}

.topbar-account:hover .topbar-account-toggle,
.topbar-account[open] .topbar-account-toggle,
.topbar-account-toggle:focus-visible,
.topbar-settings:hover .topbar-settings-toggle,
.topbar-settings[open] .topbar-settings-toggle,
.topbar-settings-toggle:focus-visible,
.topbar-search-toggle:hover,
.topbar-search-toggle:focus-visible,
.topbar-search-toggle[aria-expanded="true"] {
  border-color: var(--money-line-strong);
  background: var(--money-panel-alt);
  color: var(--money-green-dark);
  outline: none;
}

.topbar-profile-avatar,
.topbar-profile-photo,
.topbar-profile-initials {
  width: 100%;
  height: 100%;
}

.topbar-profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
}

.topbar-profile-initials {
  display: grid;
  place-items: center;
  background: #dff4e6;
  color: #126236;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
}

.topbar-profile-photo {
  position: absolute;
  inset: 0;
  object-fit: cover;
  background: var(--money-panel-alt);
}

.dashboard-link {
  color: var(--money-muted);
  font-weight: 600;
}

.dashboard-link:hover {
  color: var(--money-ink);
}

.docs-ask-menu {
    position: relative;
}

.docs-article-ask-menu {
    display: flex;
    justify-content: flex-end;
}

.docs-ask-actions {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    box-sizing: border-box;
    height: 30px;
    white-space: nowrap;
    border: 1px solid var(--money-line);
    border-radius: 6px;
    background: var(--money-panel);
    transform: translateX(var(--docs-ask-closed-offset, 0px));
    transition: border-color .18s ease;
}

body.public-page.docs-chat-open .docs-ask-actions {
    transform: translateX(var(--docs-ask-open-offset, 0px));
}

.docs-ask-actions.is-scroll-sticky {
    transform: translateX(0);
}

body.public-page .docs-ask-actions.is-layout-pinned {
    position: fixed;
    z-index: 60;
    transform: none;
}

.docs-ask-actions:hover,
.docs-ask-actions:focus-within {
    border-color: var(--money-line-strong);
}

.docs-ask-actions.is-scroll-sticky {
    z-index: 60;
    margin: 0;
}

/* The sticky request example creates its own stacking context on API references. */
.docs-ask-actions:has(.docs-ask-menu[open]) {
    z-index: 60;
}

.docs-ask-actions > .docs-ask-open-panel,
.docs-article-ask-menu .docs-ask-menu-toggle {
    flex: 0 0 auto;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    padding: 0 8px;
    gap: 4px;
    font-size: .75rem;
    line-height: 1;
}

.docs-ask-actions > .docs-ask-open-panel svg,
.docs-article-ask-menu .docs-ask-menu-toggle svg {
    width: 14px;
    height: 14px;
}

.docs-ask-open-panel {
    border: 0;
    background: transparent;
}

.docs-ask-menu-more {
    width: 30px;
    min-width: 30px;
    padding-inline: 6px !important;
    border: 0;
    border-left: 0;
    background: transparent;
    box-shadow: inset .75px 0 0 var(--money-line);
}

.docs-ask-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--money-line);
  background: white;
  color: var(--money-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  list-style: none;
}

.docs-ask-menu-toggle::-webkit-details-marker {
  display: none;
}

.docs-ask-menu-toggle svg,
.docs-ask-menu-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.docs-ask-menu-toggle .docs-ask-menu-chevron {
  width: 14px;
  height: 14px;
}

.docs-ask-menu-brand-icon {
  width: 16px;
  height: 16px;
  align-self: start;
  margin-top: 2px;
  object-fit: contain;
}

.docs-ask-menu-claude-icon {
  filter: grayscale(1) brightness(.4);
}

.docs-ask-menu[open] .docs-ask-menu-toggle,
.docs-ask-menu:hover .docs-ask-menu-toggle,
.docs-ask-menu:focus-within .docs-ask-menu-toggle {
  border-color: var(--money-line-strong);
}

.docs-ask-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  width: 304px;
  padding: 6px;
  border: 1px solid var(--money-line);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--money-shadow);
}

.docs-ask-menu-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--money-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.docs-ask-menu-item:hover,
.docs-ask-menu-item:focus-visible {
  background: var(--money-panel-alt);
  color: var(--money-ink);
  outline: none;
}

.docs-ask-menu-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
}

.docs-ask-menu-item small {
  display: block;
  margin-top: 2px;
  color: var(--money-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.docs-ask-menu-divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--money-line);
}

.topbar-settings-panel,
.topbar-account-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--money-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--money-panel) 98%, transparent);
  box-shadow: var(--money-shadow);
  z-index: 30;
}

.topbar-account-panel {
  min-width: 180px;
}

.topbar-account-panel form {
  margin: 0;
}

.topbar-settings-item,
.topbar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--money-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.topbar-settings-item:hover,
.topbar-settings-item:focus-visible,
.topbar-menu-item:hover,
.topbar-menu-item:focus-visible {
  background: var(--money-panel-alt);
  color: var(--money-ink);
  outline: none;
}

.topbar-settings-item.active {
  background: rgba(45, 200, 0, 0.12);
  color: var(--money-ink);
}

.topbar-theme-option svg,
.topbar-menu-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-menu-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--money-line);
}

/* Full-height documentation assistant. */
.docs-chat-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: var(--docs-chat-effective-width);
  height: 100dvh;
  border-left: 1px solid var(--money-line);
  background: var(--money-panel);
  box-shadow: none;
  transform: translateX(100%);
  transition: width .24s cubic-bezier(.22, 1, .36, 1), transform .24s cubic-bezier(.22, 1, .36, 1);
}

.docs-chat-panel.is-open { transform: translateX(0); }

html.docs-chat-restoring .docs-chat-panel {
  transform: translateX(0);
  transition: none;
}

html.docs-chat-restoring body.public-page .topbar-inner,
html.docs-chat-restoring body.public-page :is(.page-shell, .site-footer) {
  transition: none;
}

.docs-chat-resizer {
  position: absolute;
  inset: 0 auto 0 -5px;
  z-index: 2;
  width: 10px;
  cursor: col-resize;
}

.docs-chat-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 2px;
  height: 48px;
  border-radius: 2px;
  background: var(--money-line-strong);
  opacity: 0;
  transition: opacity .15s ease;
}

.docs-chat-resizer:hover::after { opacity: 1; }

.docs-chat-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 15px;
}

.docs-chat-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .95rem;
  font-weight: 700;
}

.docs-chat-panel-title svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.docs-chat-status {
  margin: 0 0 5px;
  color: var(--money-muted);
  font-size: .74rem;
  line-height: 1.35;
}

.docs-chat-status:empty { display: none; }
.docs-chat-status.is-error { color: #bb4d39; }
.docs-chat-composer .docs-chat-status { margin-left: 9px; }

.docs-chat-status.is-pending::after {
  content: "…";
  display: inline-block;
  animation: docs-chat-status-pulse 1.1s ease-in-out infinite;
}

@keyframes docs-chat-status-pulse {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .docs-chat-status.is-pending::after { animation: none; }
}

.docs-chat-panel-header .docs-chat-status {
  max-width: 290px;
  margin: 4px 0 0 23px;
}

.docs-chat-panel-actions { display: inline-flex; gap: 4px; }

.docs-chat-icon-button,
.docs-chat-send {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--money-line);
  background: transparent;
  color: var(--money-muted);
  cursor: pointer;
}

.docs-chat-icon-button { width: 30px; height: 30px; }
.docs-chat-icon-button[hidden] { display: none; }

.docs-chat-icon-button:hover,
.docs-chat-icon-button:focus-visible {
  border-color: var(--money-line-strong);
  background: var(--money-panel-alt);
  color: var(--money-ink);
  outline: none;
}

.docs-chat-icon-button svg,
.docs-chat-send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.docs-chat-scroll-region {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.docs-chat-messages {
  display: grid;
  align-content: safe end;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 18px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.docs-chat-messages::-webkit-scrollbar {
  width: 7px;
}

.docs-chat-messages::-webkit-scrollbar-thumb {
  background: transparent;
}

.docs-chat-panel:hover .docs-chat-messages,
.docs-chat-panel:focus-within .docs-chat-messages {
  scrollbar-color: rgba(80, 98, 113, 0.52) transparent;
}

.docs-chat-panel:hover .docs-chat-messages::-webkit-scrollbar-thumb,
.docs-chat-panel:focus-within .docs-chat-messages::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(80, 98, 113, 0.52);
}

.docs-chat-scroll-fade {
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 64px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}

.docs-chat-scroll-fade-top {
  top: 0;
  height: 54px;
  background: linear-gradient(to bottom, var(--money-panel) 34%, transparent);
}

.docs-chat-scroll-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--money-panel) 34%, transparent);
}

.docs-chat-scroll-region.has-more-above .docs-chat-scroll-fade-top,
.docs-chat-scroll-region.has-more-below .docs-chat-scroll-fade-bottom {
  opacity: 1;
}

.docs-chat-scroll-more {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--money-line);
  border-radius: 50%;
  background: var(--money-panel);
  color: var(--money-muted);
  cursor: pointer;
  transform: translateX(-50%);
}

.docs-chat-scroll-up { top: 4px; }
.docs-chat-scroll-down { bottom: 8px; }
.docs-chat-scroll-more[hidden] { display: none; }

.docs-chat-panel:hover .docs-chat-scroll-more:not([hidden]),
.docs-chat-panel:focus-within .docs-chat-scroll-more:not([hidden]) {
  display: inline-flex;
}

.docs-chat-scroll-more:hover,
.docs-chat-scroll-more:focus-visible {
  border-color: var(--money-line-strong);
  background: var(--money-panel-alt);
  color: var(--money-ink);
  outline: none;
}

.docs-chat-scroll-more svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.docs-chat-message {
  max-width: 92%;
  padding: 10px 12px;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  color: var(--money-ink);
  font-size: .8125rem;
  line-height: 1.45;
}

.docs-chat-message p { margin: 0; white-space: pre-wrap; }
.docs-chat-message-assistant {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.docs-chat-message-assistant a:not(.docs-chat-citation) {
  color: var(--money-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-chat-message-assistant code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--money-code-bg);
  color: var(--money-code-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .92em;
}

.docs-chat-message-assistant mark {
  padding: 0 2px;
  border-radius: 2px;
  color: inherit;
}

.docs-chat-code-block {
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid var(--money-line);
  border-radius: 10px;
  background: var(--money-code-bg);
}

.docs-chat-code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 5px 8px 5px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--money-line) 72%, transparent);
  color: var(--money-code-ink);
}

.docs-chat-code-block-header strong {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.docs-chat-code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  color: var(--money-code-ink);
  font-size: .78rem;
  line-height: 1.5;
  white-space: pre;
}

.docs-chat-code-copy {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--money-muted);
  background: transparent;
  cursor: pointer;
}

.docs-chat-code-copy:hover,
.docs-chat-code-copy:focus-visible,
.docs-chat-code-copy.is-copied {
  border-color: var(--money-line);
  color: var(--money-ink);
  background: var(--money-panel);
  outline: none;
}

.docs-chat-code-copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-chat-message[data-chat-welcome] {
  max-width: 100%;
  padding: 9px 12px;
  font-size: .8rem;
  line-height: 1.35;
}

.docs-chat-message-user {
  justify-self: end;
  padding: 8px 10px;
  border-color: color-mix(in srgb, var(--money-green) 28%, var(--money-line));
  background: color-mix(in srgb, var(--money-green) 12%, var(--money-panel));
  font-size: .8rem;
  line-height: 1.35;
}

.docs-chat-follow-up {
  margin-top: 7px !important;
  color: var(--money-muted);
  font-size: .75rem;
  line-height: 1.4;
}

.docs-chat-citations { display: grid; gap: 5px; margin-top: 10px; }

.docs-chat-citation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid var(--money-line);
  border-radius: 6px;
  background: var(--money-panel-alt);
  color: var(--money-ink);
  text-decoration: none;
}

.docs-chat-citation:hover { border-color: var(--money-line-strong); }
.docs-chat-citation strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.docs-chat-citation small { margin-left: auto; flex: 0 0 auto; color: var(--money-muted); font-size: .7rem; text-align: right; white-space: nowrap; }

.docs-chat-feedback {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
  color: var(--money-muted);
}

.docs-chat-feedback-button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--money-muted);
  background: transparent;
  cursor: pointer;
}

.docs-chat-feedback-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.docs-chat-feedback-button:hover:not(:disabled),
.docs-chat-feedback-button:focus-visible {
  color: var(--money-ink);
  border-color: var(--money-line);
  background: var(--money-surface-muted);
}
.docs-chat-feedback-button.is-selected {
  border-color: color-mix(in srgb, var(--money-green) 45%, var(--money-line));
  background: var(--money-green-soft);
  color: var(--money-green-dark);
}
.docs-chat-feedback-button--negative.is-selected {
  border-color: #d6867d;
  background: #fff0ee;
  color: #b9483d;
}
.docs-chat-feedback-button:disabled { cursor: wait; opacity: .65; }

.admin-ai-log-grid {
  min-width: 1080px;
  font-size: .86rem;
}
.admin-ai-log-grid th,
.admin-ai-log-grid td {
  padding-inline: 12px;
}
.admin-ai-log-grid th { font-size: .72rem; }
.admin-ai-log-actor,
.admin-ai-log-question { max-width: 360px; }
.admin-ai-log-ip { white-space: nowrap; color: var(--money-muted); font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .78rem; }
.admin-ai-log-actor span,
.admin-ai-log-question span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-ai-log-feedback { text-align: center; }
.admin-ai-log-grid th:nth-child(6),
.admin-ai-log-grid td:nth-child(6) { text-align: center; }
.admin-ai-log-feedback svg { display: block; width: 17px; height: 17px; margin: 0 auto; }
.admin-ai-log-feedback--positive { color: var(--money-green-dark); }
.admin-ai-log-feedback--negative { color: #b9483d; }
.admin-ai-log-detail-link { width: 28px !important; height: 28px !important; }
.admin-ai-log-detail-link svg { width: 14px; height: 14px; }
.admin-ai-log-actions { display: inline-flex; align-items: center; gap: 5px; }
.admin-ai-log-actions form { margin: 0; }
.admin-ai-log-delete { width: 28px !important; height: 28px !important; }
.admin-ai-log-delete svg { width: 14px; height: 14px; }

.admin-ai-log-detail {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--money-line);
  border-radius: 12px;
  background: var(--money-panel);
}

.admin-ai-log-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-ai-log-detail-actions { display: inline-flex; align-items: center; gap: 10px; }
.admin-ai-log-copy { width: 30px !important; height: 30px !important; }
.admin-ai-log-copy svg { width: 15px; height: 15px; }
.admin-ai-log-detail-heading h2,
.admin-ai-log-detail h3 { margin: 0; }
.admin-ai-log-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.admin-ai-log-meta div { min-width: 0; }
.admin-ai-log-meta dt { color: var(--money-muted); font-size: .74rem; }
.admin-ai-log-meta dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.admin-ai-log-content { display: grid; gap: 7px; }
.admin-ai-log-content p { margin: 0; white-space: pre-wrap; }
.admin-ai-log-hint { color: var(--money-muted); }
.admin-ai-log-error { color: #b84736; }
.admin-ai-log-sources { display: grid; gap: 8px; }
.admin-ai-log-sources article { display: grid; gap: 4px; padding: 11px; border: 1px solid var(--money-line); border-radius: 8px; background: var(--money-panel-alt); }
.admin-ai-log-sources small { color: var(--money-muted); }
.admin-ai-log-sources p { margin: 0; font-size: .85rem; white-space: pre-wrap; }

@media (max-width: 900px) {
  .admin-ai-log-meta { grid-template-columns: 1fr; }
}

.docs-chat-composer {
  padding: 10px 18px 12px;
}

.docs-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: end;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  background: var(--money-panel);
}

.docs-chat-form:focus-within {
  border-color: var(--money-green);
  box-shadow: none;
}

.docs-chat-form textarea {
  min-height: 30px;
  max-height: 132px;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--money-ink);
  font-size: .8125rem;
  line-height: 1.35;
  resize: none;
  box-shadow: none;
}

.docs-chat-form textarea:focus { outline: none; box-shadow: none; }

.docs-chat-send {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--money-green-dark);
}

.docs-chat-send:disabled {
  border: 0;
  background: transparent;
  color: var(--money-muted);
  cursor: not-allowed;
  opacity: .45;
}

.docs-chat-send:not(:disabled):hover {
  color: var(--money-green);
}

.docs-chat-send:not(:disabled):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--money-green) 34%, transparent);
  outline-offset: 1px;
}

@media (max-width: 720px) {
  .docs-chat-panel { width: 100vw; }
  .docs-chat-resizer,
  .docs-chat-icon-button[data-chat-expand] { display: none; }
}

body.docs-chat-resizing,
body.docs-chat-resizing .docs-chat-panel,
body.docs-chat-resizing :is(.topbar-inner, .page-shell, .site-footer),
body.docs-chat-layout-measuring .topbar-inner,
body.docs-chat-layout-measuring :is(.page-shell, .site-footer, .docs-content-shell, .docs-breadcrumb-row) {
  transition: none;
}

body.docs-chat-layout-measuring .docs-ask-actions {
  transform: none;
  transition: none;
}

.btn-linklike,
button.btn-linklike {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--money-muted);
  font-weight: 600;
}

.btn-linklike:hover,
button.btn-linklike:hover {
  color: var(--money-ink);
  transform: none;
}

.page-shell {
  position: relative;
  padding: 32px 0 56px;
}

.site-footer {
  padding: 20px 0 40px;
  border-top: 1px solid var(--money-line);
  color: var(--money-muted);
  font-size: 0.92rem;
}

.site-footer-title {
  color: var(--money-navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: none;
}

.btn-compact {
  min-height: 40px;
  padding: 0 14px;
}

.btn-primary,
button.btn-primary {
  background: var(--money-green);
  border-color: var(--money-green);
  color: #fff;
}

.btn-primary:hover,
button.btn-primary:hover {
  background: var(--money-green-dark);
  border-color: var(--money-green-dark);
  transform: translateY(-1px);
}

.btn-secondary,
button.btn-secondary {
  background: white;
  color: var(--money-ink);
  border-color: var(--money-line-strong);
}

.btn-secondary:hover,
button.btn-secondary:hover {
  background: var(--money-panel-alt);
  transform: translateY(-1px);
}

.topbar .btn-secondary:hover,
.topbar button.btn-secondary:hover,
.topbar .btn-secondary:focus-visible,
.topbar button.btn-secondary:focus-visible {
  background: white;
  border-color: var(--money-line-strong);
  color: var(--money-green-dark);
  transform: none;
}

button:disabled,
button.btn-primary:disabled,
button.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.55);
  box-shadow: none;
}

button.btn-primary:disabled:hover,
button.btn-secondary:disabled:hover {
  background: inherit;
}

.wide {
  width: 100%;
}

.eyebrow {
  color: var(--money-navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead-copy,
.login-copy,
.login-meta {
  color: var(--money-muted);
}

.login-shell,
.empty-state {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.login-panel,
.admin-panel {
  background: white;
  border: 1px solid var(--money-line);
  border-radius: 18px;
  box-shadow: var(--money-shadow);
}

.login-panel {
  width: min(520px, 100%);
  padding: 32px 32px 28px;
}

.modal-open {
  overflow: hidden;
}

.login-modal[hidden] {
  display: none;
}

.login-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 24px;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 52, 68, 0.36);
}

.login-modal-dialog {
  position: relative;
  width: min(440px, 100%);
  margin: 0;
  max-height: min(700px, calc(100vh - 48px));
  overflow: auto;
  padding: 32px;
  border: 1px solid var(--money-line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 70px rgba(2, 52, 68, 0.2);
}

.login-modal-dialog h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}

.login-status-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #b9e7ae;
  border-radius: 10px;
  background: #f1faef;
  color: #176b22;
  font-size: 0.92rem;
  line-height: 1.45;
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--money-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.login-modal-close:hover,
.login-modal-close:focus-visible {
  border-color: var(--money-line);
  background: white;
  color: var(--money-green-dark);
}

.login-form,
.editor-form {
  display: grid;
  gap: 12px;
}

.validation-summary,
span.field-validation-error {
  color: #b42318;
}

.admin-form-success {
  padding: 10px 14px;
  border: 1px solid #b9e7ae;
  border-radius: 10px;
  background: #f1faef;
  color: #176b22;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--money-line-strong);
  border-radius: 14px;
  background: white;
  color: var(--money-ink);
  box-shadow: inset 0 1px 2px rgba(18, 38, 58, 0.02);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(2, 52, 68, 0.35);
  box-shadow: 0 0 0 4px rgba(2, 52, 68, 0.08);
}

textarea {
  resize: vertical;
}

.docs-shell {
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr);
  gap: 24px;
}

.graphql-reference-nav-label {
  margin: 20px 0 6px;
  padding: 0 12px;
  color: var(--money-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graphql-reference-nav .docs-nav-item span:last-child {
  margin-left: auto;
  color: var(--money-muted);
  font-size: 0.78em;
}

.graphql-reference-content h1 { margin-bottom: 10px; }
.docs-summary { max-width: 760px; color: var(--money-muted); }
.graphql-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.graphql-overview-grid a { display: grid; gap: 8px; min-height: 142px; padding: 18px; border: 1px solid var(--money-line); border-radius: 8px; color: var(--money-ink); text-decoration: none; }
.graphql-overview-grid a:hover { border-color: var(--money-green); background: #fbfdfb; }
.graphql-overview-grid strong { font-size: 1.05rem; }.graphql-overview-grid small { color: var(--money-muted); line-height: 1.45; }
.api-reference-kind { display: inline-flex; width: fit-content; padding: 2px 7px; border-radius: 5px; background: #e9f8ed; color: #147330; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.72rem; font-weight: 700; }
.graphql-filter { display: flex; max-width: 620px; gap: 10px; margin: 22px 0 18px; }.graphql-filter input { min-height: 38px; }
.graphql-reference-list { border-top: 1px solid var(--money-line); }.graphql-reference-list a { display: grid; grid-template-columns: 82px minmax(160px, .6fr) minmax(0, 1.4fr); align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--money-line); color: var(--money-ink); text-decoration: none; }.graphql-reference-list a:hover { color: var(--money-green); background: #fbfdfb; }.graphql-reference-list code, .graphql-detail-heading code, .graphql-fields code, .graphql-type-fields code { color: var(--money-muted); font-size: .86rem; overflow-wrap: anywhere; }
.graphql-detail-heading { margin-bottom: 32px; }.graphql-detail-heading h1 { margin: 10px 0; }.graphql-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 36px; }.graphql-detail-grid h2, .graphql-type-fields h2 { font-size: 1.15rem; }.graphql-fields { display: grid; gap: 5px; }.graphql-fields dt { color: var(--money-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }.graphql-fields dd { margin: 0; }.graphql-example { align-self: start; border: 1px solid var(--money-line); border-radius: 8px; overflow: hidden; }.graphql-example > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--money-line); }.graphql-example > div span { color: var(--money-muted); font-size: .82rem; }.graphql-example pre { margin: 0; padding: 16px; background: #f7f9fa; white-space: pre-wrap; overflow-wrap: anywhere; }.graphql-type-description { margin: 0 0 28px; }.graphql-empty-description { margin: 0 0 28px; color: var(--money-muted); }.graphql-type-fields { border-top: 1px solid var(--money-line); }.graphql-type-fields > div { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); gap: 16px; padding: 13px 4px; border-bottom: 1px solid var(--money-line); }.graphql-operation-groups { display: grid; gap: 12px; }.graphql-operation-groups section { border: 1px solid var(--money-line); border-radius: 8px; overflow: hidden; }.graphql-operation-groups h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--money-line); font-size: .9rem; }.graphql-operation-groups section > div { display: grid; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--money-line); }.graphql-operation-groups section > div:last-child { border-bottom: 0; }.graphql-operation-groups code { color: var(--money-muted); font-size: .84rem; overflow-wrap: anywhere; }.api-reference-query { background: #e9f8ed; color: #147330; }.api-reference-mutation { background: #fff0ed; color: #b94b27; }.graphql-reference-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; max-width: 720px; margin-top: 28px; padding: 18px; border: 1px solid var(--money-line); border-radius: 8px; color: var(--money-ink); text-decoration: none; }.graphql-reference-entry small { color: var(--money-muted); }.graphql-reference-entry:hover { border-color: var(--money-green); }.admin-two-column { display: grid; grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr); gap: 20px; align-items: start; }.admin-reference-type-list { max-height: 680px; overflow: auto; border-top: 1px solid var(--money-line); }.admin-reference-type-list a { display: grid; gap: 3px; padding: 10px 4px; border-bottom: 1px solid var(--money-line); color: var(--money-ink); text-decoration: none; }.admin-reference-type-list a.active { color: var(--money-green); background: #f4faf5; }.admin-reference-type-list span { color: var(--money-muted); font-size: .82rem; }.admin-developer-form { display: grid; gap: 16px; }

@media (max-width: 900px) { .graphql-overview-grid, .graphql-detail-grid, .admin-two-column { grid-template-columns: 1fr; }.graphql-reference-list a { grid-template-columns: 74px minmax(0, 1fr); }.graphql-reference-list code { grid-column: 2; } }

.admin-shell {
  display: grid;
  gap: 26px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

body.admin-page {
  background: #fff;
}

body.admin-page .topbar {
  background: rgba(250, 251, 252, 0.98);
}

body.admin-page .page-shell {
  width: 100%;
  padding: 0;
}

body.admin-page .admin-layout {
  width: min(1420px, 100%);
  min-height: calc(100dvh - 74px);
  margin: 0 auto;
  gap: 0;
  align-items: stretch;
  background: #fff;
}

body.admin-page .admin-sidebar {
  top: 74px;
  position: sticky;
  align-self: stretch;
  min-height: 0;
  padding: 24px 24px 40px 0;
  background: #fafbfc;
}

body.admin-page .admin-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  width: 100vw;
  background: #fafbfc;
  pointer-events: none;
}

body.admin-page .admin-main {
  max-width: none;
  min-width: 0;
  padding: 24px 0 56px 28px;
  background: #fff;
}

body.admin-page .admin-main .admin-shell {
  max-width: 1180px;
  min-height: calc(100dvh - 110px);
  padding-right: 40px;
  background: transparent;
}

.admin-main {
  min-width: 0;
  max-width: 1180px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  min-height: calc(100vh - 150px);
  padding-right: 24px;
  border-right: 1px solid var(--money-line);
}

.admin-sidebar-brand {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
  padding: 0 10px;
}

.admin-sidebar-brand strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.admin-sidebar-eyebrow,
.admin-sidebar-section-title {
  color: var(--money-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-sidebar-nav {
  display: grid;
  gap: 24px;
}

.admin-sidebar-section {
  display: grid;
  gap: 5px;
}

.admin-sidebar-section-title {
  padding: 0 10px 5px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-left: 2px solid transparent;
  color: var(--money-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus-visible,
.admin-sidebar-link.active {
  border-left-color: var(--money-green);
  color: var(--money-ink);
}

.admin-sidebar-link.active {
  background: rgba(45, 200, 0, 0.06);
}

.admin-sidebar-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
}

.admin-sidebar-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-sidebar {
  position: fixed;
  top: var(--docs-sticky-offset);
  left: max(20px, calc((100vw - 1420px) / 2));
  z-index: 10;
  width: var(--docs-sidebar-width);
  align-self: start;
  height: calc(100dvh - var(--docs-sticky-offset) - 12px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.docs-sidebar-scroll {
  height: calc(100% - 48px);
  overflow-y: auto;
  padding: 4px 14px 14px 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  -ms-overflow-style: none;
}

.docs-sidebar-scroll::-webkit-scrollbar {
  width: 7px;
}

.docs-sidebar-scroll::-webkit-scrollbar-thumb {
  background: transparent;
}

.docs-sidebar:hover .docs-sidebar-scroll,
.docs-sidebar:focus-within .docs-sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 98, 113, 0.52) transparent;
}

.docs-sidebar:hover .docs-sidebar-scroll::-webkit-scrollbar,
.docs-sidebar:focus-within .docs-sidebar-scroll::-webkit-scrollbar {
  width: 7px;
}

.docs-sidebar:hover .docs-sidebar-scroll::-webkit-scrollbar-thumb,
.docs-sidebar:focus-within .docs-sidebar-scroll::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(80, 98, 113, 0.52);
}

.docs-sidebar-scroll-fade {
  position: absolute;
  right: 0;
  bottom: 40px;
  left: 0;
  height: 96px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 64%);
  transition: opacity 140ms ease;
}

.docs-sidebar.has-more-below .docs-sidebar-scroll-fade {
  opacity: 1;
}

.docs-sidebar-scroll-more {
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 1;
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--money-line);
  border-radius: 50%;
  background: #fff;
  color: var(--money-muted);
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1;
  transform: translateX(-50%);
}

.docs-sidebar:hover .docs-sidebar-scroll-more,
.docs-sidebar:focus-within .docs-sidebar-scroll-more {
  display: inline-flex;
}

.docs-sidebar-scroll-more:hover,
.docs-sidebar-scroll-more:focus-visible {
  border-color: rgba(2, 52, 68, 0.32);
  color: var(--money-green-dark);
}

.docs-sidebar-footer {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 0;
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--money-line);
  border-radius: 24px;
  background: #fff;
  color: #8a96a3;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-sidebar-footer:hover,
.docs-sidebar-footer:focus-visible {
  border-color: var(--money-line-strong);
  color: var(--money-ink);
}

.docs-sidebar-footer-mark {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}

.sidebar-title-wrap {
  margin-bottom: 8px;
  padding-left: 6px;
}

.admin-sidebar-sitemap-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.docs-nav {
  display: grid;
  gap: 4px;
}

.docs-nav-group {
  min-width: 0;
}

.docs-nav-root {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.docs-nav-toggle,
.docs-nav-toggle-spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 30px;
  flex: 0 0 20px;
}

.docs-nav-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--money-muted);
  cursor: pointer;
}

.docs-nav-toggle:hover {
  color: var(--money-green-dark);
}

.docs-nav-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 140ms ease;
}

.docs-nav-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.docs-nav-children {
  display: grid;
  margin: 1px 0 2px 12px;
  padding-left: 10px;
  border-left: 1px solid var(--money-line);
}

.docs-nav-subgroup {
  min-width: 0;
}

.docs-nav-subitem {
  display: flex;
  align-items: center;
  min-height: 29px;
}

.docs-nav-subitem > .docs-nav-child {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 5px;
}

.docs-nav-subchildren {
  display: grid;
  margin: 1px 0 2px 12px;
  padding-left: 10px;
  border-left: 1px solid var(--money-line);
}

.docs-nav-child-toggle {
  display: inline-flex;
  width: 24px;
  height: 29px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--money-muted);
  cursor: pointer;
}

.docs-nav-child-toggle:hover,
.docs-nav-child-toggle:focus-visible {
  color: var(--money-green-dark);
}

.docs-nav-child-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 140ms ease;
}

.docs-nav-child-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.docs-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 4px 8px;
  border-radius: 0;
  color: var(--money-muted);
  padding-left: calc(8px + (var(--depth) * 13px));
  border-left: 2px solid transparent;
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Aptos, Arial, sans-serif;
  font-size: 0.84rem;
  line-height: 1.3;
}

.docs-nav-root-link {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 4px;
}

.docs-nav-child {
  position: relative;
  gap: 16px;
  padding-left: calc(5px + (var(--depth) * 13px));
}

.docs-nav-item.docs-nav-child:hover,
.docs-nav-item.docs-nav-child.active {
  border-left-color: transparent;
}

.docs-nav-child::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 1px;
  background: transparent;
  content: "";
  z-index: 1;
}

.docs-nav-child.active::before {
  background: var(--money-green);
}

.docs-nav-section-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
}

.docs-nav-section-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-nav-item[data-depth="0"] {
  margin-top: 0;
  color: var(--money-ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.docs-nav-item[data-depth="0"]:first-child {
  margin-top: 0;
}

.docs-nav-item.active,
.docs-nav-item:hover {
  background: transparent;
  color: var(--money-ink);
  border-left-color: var(--money-green);
  box-shadow: none;
}

.docs-nav-item.docs-nav-root-link:hover {
  border-left-color: transparent;
  color: var(--money-ink);
}

.docs-nav-item.docs-nav-root-link.active {
  border-left-color: transparent;
  color: var(--money-green-dark);
}

.docs-nav-root:hover,
.docs-nav-subitem:hover {
  background: #e9eff0;
}

.docs-nav-subitem:hover {
  box-shadow: -10px 0 0 #e9eff0;
}

.docs-nav-root:hover .docs-nav-toggle,
.docs-nav-subitem:hover .docs-nav-child-toggle {
  color: var(--money-muted);
}

.docs-nav-subitem:hover .docs-nav-child {
  color: var(--money-ink);
}

.docs-nav-subitem:hover .docs-nav-child.active {
  color: var(--money-green-dark);
}

.docs-nav-child.active {
  color: var(--money-green-dark);
}

.docs-content {
  grid-column: 2;
  min-width: 0;
}

.docs-content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--docs-toc-width);
  gap: 20px;
  align-items: start;
}

.docs-primary {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.docs-header,
.admin-header {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-heading {
  max-width: none;
}

.docs-heading.docs-heading-reference {
  max-width: none;
}

.docs-heading:not(.docs-heading-reference) > h1 {
  max-width: 860px;
}

.docs-breadcrumbs {
  margin-bottom: 14px;
  color: var(--money-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.docs-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-breadcrumbs li {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  overflow-wrap: anywhere;
}

.docs-breadcrumbs li + li::before {
  content: "/";
  flex-shrink: 0;
  margin: 0 6px;
}

.docs-breadcrumbs a:focus-visible {
  outline: 2px solid var(--money-green-dark);
  outline-offset: 2px;
}

.docs-breadcrumb-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: width .24s cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 821px) {
  .docs-heading:not(.docs-heading-reference) .docs-breadcrumb-row {
    width: min(820px, calc(100% - var(--docs-toc-width) - 20px));
  }

  body.public-page.docs-chat-hide-toc .docs-heading:not(.docs-heading-reference) .docs-breadcrumb-row {
    width: min(820px, 100%);
  }
}

.docs-breadcrumb-row .docs-breadcrumbs {
  min-width: 0;
}

.docs-breadcrumb-row .docs-ask-actions {
  margin: 0 8px 14px auto;
}

.docs-breadcrumb-row .docs-article-ask-menu { margin: 0; }

.docs-breadcrumb-row .docs-article-ask-menu:first-child > .docs-ask-menu-more {
  width: auto;
  box-shadow: none;
}

.docs-breadcrumbs a:hover {
  color: var(--money-ink);
}

.admin-header h1 {
  margin: 10px 0 8px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.admin-layout .btn-primary,
.admin-layout .btn-secondary,
.admin-layout button.btn-primary,
.admin-layout button.btn-secondary {
  border-radius: 6px !important;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.admin-layout .admin-pages-header .btn-secondary:hover,
.admin-layout .admin-pages-header button.btn-secondary:hover,
.admin-layout .docs-editor-ai-actions .btn-secondary:hover,
.admin-layout .docs-editor-ai-actions button.btn-secondary:hover,
.admin-layout .editor-actions .btn-primary:hover,
.admin-layout .editor-actions .btn-secondary:hover,
.admin-layout .editor-actions button.btn-primary:hover,
.admin-layout .editor-actions button.btn-secondary:hover,
.admin-layout .editor-html-actions .btn-primary:hover,
.admin-layout .editor-html-actions .btn-secondary:hover,
.admin-layout .editor-html-actions button.btn-primary:hover,
.admin-layout .editor-html-actions button.btn-secondary:hover {
  transform: none;
}

.admin-layout .admin-shell {
  gap: 16px;
  align-content: start;
}

.admin-layout .admin-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.admin-layout .admin-header h1 {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.admin-layout .admin-header .lead-copy {
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.admin-layout .admin-pages-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-layout h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.admin-layout .section-copy,
.admin-layout .hint-copy {
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-layout label {
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-layout input,
.admin-layout select,
.admin-layout textarea {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.admin-layout .admin-grid > .admin-panel {
  padding-top: 22px;
  padding-bottom: 22px;
  column-gap: 24px;
}

.admin-layout .data-table th,
.admin-layout .data-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.admin-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.admin-list-heading h2,
.admin-list-heading p {
  margin: 0;
}

.admin-list-heading p {
  margin-top: 4px;
}

.admin-pages-list {
  min-width: 0;
}

.admin-pages-filters {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--money-line);
  border-radius: 16px !important;
  background: #fafbfc;
}

.admin-pages-filter-main {
  display: grid;
  grid-template-columns: minmax(260px, 560px) auto 1fr auto;
  gap: 16px;
  align-items: end;
  justify-content: start;
}

.admin-pages-list .admin-pages-filter-main {
  grid-template-columns: minmax(260px, 560px) auto auto 1fr;
}

.admin-pages-list .admin-pages-filter-actions {
  justify-self: start;
}

.admin-pages-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-pages-filters label > span {
  color: var(--money-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-pages-search input {
  width: 100%;
}

.admin-pages-search {
  width: min(560px, 100%);
}

.admin-pages-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-self: end;
}

.admin-pages-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.admin-pages-quick-filter {
  white-space: nowrap;
}

.admin-pages-quick-filter.is-active {
  border-color: var(--money-green-dark);
  background: var(--money-green);
  color: #fff;
}

.admin-pages-quick-filter:hover,
.admin-pages-quick-filter:focus-visible {
  transform: none;
}

.admin-pages-filter-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-pages-filter-options select {
  width: 100%;
}

.admin-layout .admin-pages-filters input,
.admin-layout .admin-pages-filters select {
  border-radius: 10px !important;
}

.admin-layout .admin-pages-list .badge-soft {
  border-radius: 999px !important;
}

.admin-article-state {
  color: var(--money-ink);
  font-weight: 600;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 18px;
}

.admin-pagination .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.admin-pages-grid-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-layout .admin-grid-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--money-line);
  border-radius: 8px !important;
  background: #fff;
  color: var(--money-muted);
  cursor: pointer;
}

.admin-layout .admin-grid-icon:hover,
.admin-layout .admin-grid-icon[aria-pressed="true"] {
  border-color: var(--money-line-strong);
  color: var(--money-green-dark);
}

.admin-grid-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-pages-column-chooser {
  position: relative;
}

.admin-pages-column-chooser-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 190px;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--money-line);
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12) !important;
}

.admin-pages-column-chooser-menu strong {
  color: var(--money-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-pages-column-chooser-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--money-ink);
  font-size: 0.84rem;
}

.admin-pages-column-chooser-menu input {
  width: auto;
  min-height: 0;
}

.admin-pages-grid-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--money-line);
}

.admin-pages-grid {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  color: var(--money-ink);
  font-size: 0.86rem;
}

.admin-pages-grid th,
.admin-pages-grid td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--money-line);
  text-align: left;
  vertical-align: middle;
}

.admin-pages-grid th {
  background: #fafbfc;
  color: var(--money-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-pages-grid .admin-grid-sort {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

.admin-pages-grid .admin-grid-sort:hover {
  background: transparent !important;
  color: inherit;
  transform: none;
}

.admin-pages-grid .admin-grid-sort span {
  display: inline-block;
  margin-left: 3px;
}

.admin-pages-grid td:first-child,
.admin-pages-grid td:nth-child(4),
.admin-pages-grid td:nth-child(5),
.admin-pages-grid td:nth-child(6),
.admin-pages-grid td:last-child {
  white-space: nowrap;
}

.admin-pages-grid tbody tr:hover {
  background: #fbfdfb;
}

.admin-pages-grid .admin-article-title {
  margin: 0;
  font-size: inherit;
}

.admin-pages-grid .admin-article-summary {
  max-width: 360px;
}

.admin-pages-grid .admin-article-slug {
  margin: 0;
}

.admin-pages-grid .admin-article-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-pages-grid .admin-article-delete-form {
  display: inline;
}

.admin-pages-grid .admin-article-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--money-muted);
  cursor: pointer;
}

.admin-pages-grid .admin-article-icon:hover {
  transform: none;
  color: var(--money-green-dark);
}

.admin-pages-grid .admin-article-delete:hover {
  color: #b42318;
}

.admin-pages-grid .admin-article-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-layout .admin-pages-grid .admin-pages-column-filter-row input {
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 8px !important;
  font-size: 0.78rem;
}

.admin-pages-grid [data-column].is-hidden {
  display: none;
}

.admin-profile-content {
  display: grid;
  gap: 0;
}

.settings-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 22px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--money-line);
}

.settings-tab {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px 7px 0 0;
  color: var(--money-muted);
  background: transparent;
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
}

.settings-tab:hover,
.settings-tab.is-active {
  color: var(--money-text);
  background: var(--money-surface-muted);
}

.settings-tab.is-active {
  box-shadow: inset 0 -2px 0 var(--money-green);
}

.settings-tab:focus-visible {
  outline: 2px solid var(--money-green);
  outline-offset: -2px;
}

.admin-profile-content .settings-tab-panel {
  border-bottom: 0;
  border-radius: 0 !important;
}

.maintenance-ribbon {
  padding: 3px 12px;
  background: #b42318;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
}

.docs-maintenance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 48px 24px;
  text-align: center;
}

.docs-maintenance h1 {
  margin: 0;
}

.docs-maintenance p {
  margin: 12px 0 0;
  color: var(--money-muted);
}

.admin-profile-section {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--money-line);
}

.admin-profile-section + .admin-profile-section {
  padding-top: 28px;
}

.admin-profile-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.admin-profile-section-heading h2 {
  margin: 6px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.admin-profile-section-heading p {
  margin: 0;
  color: var(--money-muted);
  font-size: 0.86rem;
}

.admin-profile-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-profile-avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--money-line);
  border-radius: 50%;
  background: var(--money-panel-alt);
}

.admin-profile-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #dff4e6;
  color: #126236;
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--money-panel-alt);
}

.maintenance-settings-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.maintenance-settings-heading p {
  max-width: 760px;
  margin-top: 8px;
}

.settings-tab-panel[data-settings-panel="maintenance"] .btn-primary {
  justify-self: start;
  width: auto;
  min-height: 30px;
  padding: 4px 10px;
  font-size: 0.82rem;
}

.admin-profile-form {
  max-width: 920px;
}

.legacy-mail-settings {
  display: none;
}

.mail-o365-authorize,
.mail-o365-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.mail-o365-authorize {
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  background: var(--money-surface-muted);
}

.mail-o365-test {
  margin-top: 16px;
}

.mail-o365-test-button {
  align-self: end;
}

.admin-layout .admin-profile-form :is(input, select) {
  min-height: 34px;
  padding: 5px 9px;
}

.admin-layout .admin-profile-form input,
.admin-layout .admin-profile-form select {
  border-radius: 10px !important;
}

.admin-profile-keys-table {
  margin-top: 24px;
}

.admin-profile-revoke {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.admin-profile-revoke:hover {
  transform: none;
}

.api-key-notice {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--money-line);
  border-bottom: 1px solid var(--money-line);
  color: var(--money-muted);
  font-size: 0.84rem;
}

.api-key-notice code {
  overflow-wrap: anywhere;
  color: var(--money-ink);
}

.admin-settings-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 1fr));
  gap: 14px;
  max-width: 1100px;
}

.admin-settings-fields > div {
  display: grid;
  gap: 6px;
}

.admin-settings-fields label {
  color: var(--money-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-settings-fields input {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px !important;
}

.admin-settings-fields small {
  color: var(--money-muted);
  font-size: 0.76rem;
}

.settings-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--money-ink);
  font-size: 0.88rem;
}

.settings-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--money-green);
}

.azure-devops-dialog {
  width: min(680px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--money-line);
  border-radius: 14px;
  color: var(--money-ink);
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 27, 38, 0.24);
}

.azure-devops-dialog::backdrop {
  background: rgba(2, 27, 38, 0.38);
}

.azure-devops-dialog-header,
.azure-devops-dialog-body {
  padding: 18px 20px;
}

.azure-devops-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--money-line);
}

.azure-devops-dialog-header h2 {
  margin: 5px 0 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.azure-devops-dialog-body {
  display: grid;
  gap: 10px;
}

.azure-devops-ticket-form,
.azure-devops-result-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.azure-devops-ticket-form input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
}

.azure-devops-result {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--money-line);
}

.azure-devops-result-heading {
  justify-content: space-between;
}

.azure-devops-result-heading a {
  color: var(--money-muted);
  font-size: 0.84rem;
}

.azure-devops-result p {
  margin: 0;
  color: var(--money-muted);
  font-size: 0.88rem;
}

.azure-devops-result textarea {
  min-height: 220px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-settings-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--money-muted);
  font-size: 0.84rem;
}

.admin-edit-section {
  max-width: none;
  border-bottom: 0;
}

.admin-edit-section > .editor-form + .docs-editor {
  margin-top: 12px;
}

.admin-edit-section > .docs-editor-raw {
  margin: 12px 0;
}

.admin-edit-section {
  padding-bottom: 0;
}

.admin-workflow-section {
  display: block;
  width: 100%;
  margin: 0;
}

.admin-workflow-section #workflow-history {
  display: block;
  visibility: visible;
}

.workflow-history-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.workflow-history-panel > .workflow-history-heading {
  display: none;
}

.admin-edit-section + .admin-edit-section {
  padding-top: 28px;
}

.admin-layout .admin-edit-section input,
.admin-layout .admin-edit-section select,
.admin-layout .admin-edit-section textarea {
  border-radius: 10px !important;
}

.docs-editor.uses-toast-editor .docs-editor-toolbar {
  display: none;
}

.docs-editor.uses-toast-editor .docs-editor-canvas {
  min-height: 0;
}

.docs-editor.uses-toast-editor .toastui-editor {
  width: 100%;
  border: 1px solid var(--money-line);
  border-radius: 10px !important;
  box-shadow: none;
}

.docs-editor.uses-toast-editor .toastui-editor-defaultUI-toolbar {
  border-bottom: 1px solid var(--money-line);
  background: #fafbfc;
}

.docs-editor.uses-toast-editor .toastui-editor-contents {
  font-family: inherit;
  color: var(--money-ink);
}

.admin-layout .docs-editor.uses-toast-editor .toastui-editor,
.admin-layout .docs-editor-preview {
  border-radius: 10px !important;
}

.admin-layout .docs-editor.uses-toast-editor .toastui-editor {
  border: 0 !important;
  overflow: hidden;
}

.admin-layout .docs-editor.uses-toast-editor .toastui-editor-defaultUI {
  border: 1px solid var(--money-line);
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: none;
}

.admin-layout .docs-editor.uses-toast-editor .toastui-editor-main,
.admin-layout .docs-editor.uses-toast-editor .toastui-editor-ww-container,
.admin-layout .docs-editor.uses-toast-editor .toastui-editor-md-container,
.admin-layout .docs-editor.uses-toast-editor .toastui-editor-ww-container .ProseMirror {
  border-radius: 0 !important;
}

.docs-editor-utility-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.docs-editor-utility-toolbar .btn-secondary {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.78rem;
}

.docs-editor-utility-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: var(--money-line);
}

.docs-editor-canvas {
  position: relative;
}

.toastui-editor-ww-container .toastui-editor-contents img.docs-editor-image-selected {
  outline: 2px solid var(--money-green);
  outline-offset: 3px;
}

.docs-editor-image-resize-handle {
  position: absolute;
  z-index: 5;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid white;
  border-radius: 4px;
  background: var(--money-green);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  cursor: nwse-resize;
}

.editor-source-dialog,
.ai-proposal-dialog {
  display: flex;
  width: min(760px, calc(100vw - 32px));
  min-width: min(560px, calc(100vw - 32px));
  min-height: min(360px, calc(100vh - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--money-line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.2);
  padding: 0;
  resize: both;
  box-sizing: border-box;
  flex-direction: column;
}

[data-editor-html-dialog] {
  width: min(1200px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 32px));
}

/* Image properties keep their compact form layout; only source previews are movable/resizable. */
.editor-image-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 1px solid var(--money-line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.2);
  padding: 18px;
}

.editor-source-dialog::backdrop,
.editor-image-dialog::backdrop,
.ai-proposal-dialog::backdrop {
  background: rgb(0 24 37 / 0.38);
}

.editor-source-dialog:not([open]) {
  display: none;
}

.editor-source-dialog > .editor-dialog-header {
  margin: 0;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--money-line);
  cursor: move;
  user-select: none;
}

.editor-source-dialog > .editor-dialog-header button {
  cursor: pointer;
}

[data-editor-html-dialog] > .editor-dialog-header .panel-toggle:focus,
[data-editor-html-dialog] > .editor-dialog-header .panel-toggle:focus-visible {
  outline: 0;
  box-shadow: none;
}

.editor-source-dialog > .hint-copy {
  margin: 0;
  padding: 14px 18px 0;
}

.docs-menu-api-badge {
  display: inline-flex;
  min-width: 28px;
  height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.docs-menu-api-badge-query {
  color: #16803a;
  background: #dcfce7;
}

.docs-menu-api-badge-mutation {
  color: #b45309;
  background: #ffedd5;
}

.markdown-import-dialog {
  width: min(620px, calc(100vw - 32px));
  min-width: min(460px, calc(100vw - 32px));
  min-height: 0;
  resize: none;
}

.markdown-import-dialog-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.markdown-import-dropzone {
  display: grid;
  min-height: 150px;
  place-content: center;
  gap: 7px;
  border: 1px dashed #aebbc1;
  border-radius: 6px;
  background: #f8fafb;
  color: var(--money-ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.markdown-import-dropzone span {
  color: var(--money-muted);
  font-size: 0.9rem;
}

.markdown-import-dropzone:hover,
.markdown-import-dropzone.is-dragging {
  border-color: var(--money-green-dark);
  background: #f1f8f0;
}

.markdown-import-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
}

.markdown-import-actions {
  margin: 2px 0 0;
}

/* Match the editor dialogs: no hover movement and a neutral disabled confirmation. */
.admin-layout .markdown-import-actions .btn-primary:hover,
.admin-layout .markdown-import-actions .btn-secondary:hover,
.admin-layout .markdown-import-actions button.btn-primary:hover,
.admin-layout .markdown-import-actions button.btn-secondary:hover {
  transform: none;
}

.markdown-import-actions button.btn-primary:disabled,
.markdown-import-actions button.btn-primary:disabled:hover {
  background: #f4f6f7;
  border-color: var(--money-line-strong);
  color: var(--money-muted);
  opacity: 1;
  filter: none;
}

.ai-proposal-dialog {
  display: flex;
  width: min(1440px, calc(100vw - 32px));
  min-width: min(760px, calc(100vw - 32px));
  min-height: min(420px, calc(100vh - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 0;
  resize: both;
  box-sizing: border-box;
  flex-direction: column;
}

.ai-proposal-dialog:not([open]) {
  display: none;
}

.ai-proposal-dialog > .editor-dialog-header {
  margin: 0;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--money-line);
  cursor: move;
  user-select: none;
}

.ai-proposal-dialog > .editor-dialog-header button {
  cursor: pointer;
}

.ai-proposal-dialog-body {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 14px;
  padding: 16px 18px 18px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.ai-proposal-dialog-body > .hint-copy {
  margin: 0;
}

.ai-proposal-comparison {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-proposal-comparison > section {
  display: flex;
  min-height: 0;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  background: #fff;
}

.ai-proposal-comparison > section > div {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.ai-proposal-comparison h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--money-line);
  background: #f7f9fb;
  font-size: 0.85rem;
}

.ai-proposal-field {
  padding: 10px 12px;
  border-bottom: 1px solid var(--money-line);
}

.ai-proposal-field:last-child {
  border-bottom: 0;
}

.ai-proposal-compact-field {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  flex: 0 0 56px;
  gap: 10px;
  box-sizing: border-box;
  height: 56px;
  padding-block: 8px;
}

.ai-proposal-compact-field strong {
  margin: 0;
}

.ai-proposal-compact-input {
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 5px 8px;
}

.ai-proposal-field:has(pre),
.ai-proposal-field:has(.ai-proposal-markdown-input),
.ai-proposal-rich-field {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.ai-proposal-field strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.76rem;
  color: var(--money-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-proposal-field pre {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 0.8rem/1.55 var(--money-font-mono);
}

.ai-proposal-field p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-proposal-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.5rem;
  resize: vertical;
  border: 1px solid var(--money-line);
  border-radius: 4px;
  background: #fff;
  color: var(--money-ink);
  font: inherit;
  line-height: 1.5;
  padding: 8px 10px;
}

.ai-proposal-markdown-input {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
  font: 0.8rem/1.55 var(--money-font-mono);
}

.ai-proposal-rich-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px;
  color: var(--money-ink);
  font: 0.9rem/1.55 var(--money-font-body);
}

.ai-proposal-rich-content[contenteditable="true"] {
  margin: 0 10px 10px;
  border: 1px solid var(--money-line);
  border-radius: 4px;
  outline: none;
}

.ai-proposal-rich-content[contenteditable="true"]:focus {
  border-color: var(--money-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--money-focus) 14%, transparent);
}

.ai-proposal-rich-content img,
.ai-proposal-rich-content video,
.ai-proposal-rich-content iframe,
.ai-proposal-rich-content table {
  max-width: 100%;
}

.editor-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.editor-dialog-header h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.editor-html-source-wrap {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 240px;
  margin: 14px 18px 18px;
}

.editor-html-code-editor {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  min-height: 240px;
  flex: 1 1 auto;
  align-self: stretch;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--money-panel);
}

.editor-html-code-editor .cm-editor {
  min-height: 240px;
  height: 100%;
}

.editor-html-code-editor .cm-focused {
  outline: 0;
}

.editor-html-code-editor:focus-within {
  border-color: var(--money-line);
}

.editor-html-source-wrap .editor-html-copy {
  top: 8px;
  z-index: 3;
}

.editor-html-source-wrap:hover .editor-html-copy,
.editor-html-source-wrap .editor-html-copy:focus-visible,
.editor-html-source-wrap .editor-html-copy.is-copied {
  opacity: 1;
}

.editor-html-status {
  min-height: 1.25rem;
  margin: -8px 18px 0;
  color: var(--money-muted);
  font-size: 0.82rem;
}

.editor-html-status:empty {
  display: none;
}

.editor-html-status.is-error {
  color: #b42318;
}

.editor-html-actions {
  margin: 0;
  padding: 0 18px 18px;
}

.editor-document-preview-dialog {
  width: min(980px, calc(100vw - 32px));
  height: min(78vh, 820px);
}

.editor-document-preview-dialog > .editor-dialog-header {
  border-radius: 0 !important;
}

.editor-document-preview {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
}

.editor-document-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.editor-image-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-image-fields label {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
}

.editor-image-fields input {
  width: 100%;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  padding: 8px 10px;
}

.editor-image-fields .editor-image-alt {
  grid-column: 1 / -1;
}

.editor-dialog-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .ai-proposal-comparison {
    grid-template-columns: 1fr;
  }
}

.admin-developer-content {
  display: grid;
  gap: 0;
}

.admin-developer-section {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--money-line);
}

.admin-developer-section + .admin-developer-section {
  padding-top: 28px;
}

.admin-developer-form {
  max-width: 920px;
}

.admin-layout .admin-developer-form input,
.admin-layout .admin-developer-form select,
.admin-layout .admin-developer-form textarea {
  border-radius: 10px !important;
}

.admin-developer-meta {
  max-width: 920px;
}

.admin-developer-notes {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--money-muted);
  font-size: 0.86rem;
}

.admin-type-filter { width: 100%; margin: 0 0 10px; }
.admin-reference-type-list table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-reference-type-list th { padding: 8px 4px; border-bottom: 1px solid var(--money-line); color: var(--money-muted); font-size: .72rem; text-align: left; text-transform: uppercase; }
.admin-reference-type-list td { padding: 9px 4px; border-bottom: 1px solid var(--money-line); vertical-align: top; }
.admin-reference-type-list tr.active { background: #f4faf5; }
.admin-reference-type-list td a { display: block; padding: 0; border: 0; color: var(--money-ink); font-weight: 700; }
.admin-reference-type-list td a:hover, .admin-reference-type-list tr.active td a { color: var(--money-green); }
.admin-reference-type-list td small { display: block; margin-top: 2px; color: var(--money-muted); }
.admin-reference-type-list td:nth-child(2), .admin-reference-type-list td:nth-child(3) { white-space: nowrap; color: var(--money-muted); }
.admin-graphql-fields { margin: 0 0 22px; }
.admin-graphql-fields h3 { margin: 0 0 8px; font-size: 1rem; }
.admin-graphql-fields table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--money-line); font-size: .88rem; table-layout: fixed; }
.admin-graphql-fields th, .admin-graphql-fields td { padding: 5px 4px; border-bottom: 1px solid var(--money-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; line-height: 1.2; }
.admin-graphql-fields thead th { padding-top: 6px; padding-bottom: 6px; color: var(--money-muted); font-size: .72rem; text-transform: uppercase; }
.admin-graphql-fields tbody th { width: 28%; font-weight: 700; }
.admin-graphql-fields tbody td:nth-child(2) { width: 24%; }
.admin-graphql-fields tbody td:nth-child(3) { width: 48%; color: var(--money-muted); }
.admin-graphql-fields code { overflow-wrap: anywhere; }
.admin-graphql-field-list { overflow: auto; }
.admin-reference-type-list thead th, .admin-graphql-field-list thead th { position: sticky; top: 0; z-index: 1; background: var(--money-panel, #fff); }
.admin-type-visibility-form { border-top: 1px solid var(--money-line); padding-top: 16px; }
.admin-graphql-types { grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); gap: 32px; }
.admin-graphql-types .admin-developer-section { padding-bottom: 18px; }
.admin-graphql-types .admin-developer-section + .admin-developer-section { padding-top: 0; }
.admin-graphql-types .admin-reference-type-list { max-height: none; }
.admin-graphql-types .admin-reference-type-list th { padding-top: 6px; padding-bottom: 6px; line-height: 1.2; }
.admin-graphql-types .admin-reference-type-list td { padding-top: 5px; padding-bottom: 5px; line-height: 1.2; }
.admin-graphql-types .admin-reference-type-list th:nth-child(1) { width: 49%; }
.admin-graphql-types .admin-reference-type-list th:nth-child(2) { width: 19%; }
.admin-graphql-types .admin-reference-type-list th:nth-child(3) { width: 12%; }
.admin-graphql-types .admin-reference-type-list th:nth-child(4) { width: 20%; }
.admin-graphql-types .admin-reference-type-list td:nth-child(2),
.admin-graphql-types .admin-reference-type-list td:nth-child(3),
.admin-graphql-types .admin-reference-type-list td:nth-child(4) { white-space: nowrap; }
.admin-graphql-types .admin-reference-type-list tr.is-hidden td,
.admin-graphql-types .admin-reference-type-list tr.is-hidden td a { color: #c52c2c; }
.admin-graphql-type-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-graphql-type-toolbar .admin-profile-section-heading { margin: 0; }
.admin-type-visibility-form { border: 0; padding: 4px 0 0; white-space: nowrap; }
.admin-type-visibility-form .editor-checkbox { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.admin-type-visibility-form input[type="checkbox"] { width: 16px !important; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--money-green); box-shadow: none; }
.admin-graphql-fields { margin-bottom: 0; }
@media (max-width: 900px) { .admin-graphql-types { grid-template-columns: 1fr; } }

.admin-developer-details {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-top: 20px;
}

.admin-developer-details summary {
  cursor: pointer;
  color: var(--money-ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-developer-details pre {
  max-height: 420px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 14px;
  border: 1px solid var(--money-line);
  background: var(--money-panel-alt);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.admin-developer-history {
  margin-top: 0;
}

.admin-users-content {
  padding-bottom: 28px;
}

.admin-users-table {
  margin-top: 18px;
}

.admin-users-table .admin-pages-grid th,
.admin-users-table .admin-pages-grid td {
  padding-block: 7px;
}

.admin-log-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-log-filter input {
  flex: 0 1 344px;
  width: 344px;
}

.admin-log-filter select {
  flex: 0 0 190px;
  width: 190px;
}

.admin-log-filter input:focus {
  border-color: var(--money-green);
  box-shadow: none;
}

.admin-log-filter .btn-secondary {
  flex: 0 0 auto;
}

.admin-layout .admin-log-filter .btn-secondary:hover,
.admin-layout .admin-log-filter button.btn-secondary:hover {
  transform: none;
}

.admin-log-grid-scroll {
  flex: 1 1 auto;
  max-height: none;
  min-height: 220px;
  overflow: auto;
}

body.admin-page .admin-main .admin-shell.admin-log-shell {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 44px);
  min-height: 0;
}

body.admin-page .admin-main .admin-shell.admin-log-shell.has-detail {
  overflow: hidden;
}

.admin-log-shell.has-detail > .admin-header,
.admin-log-shell.has-detail > .admin-log-filter,
.admin-log-shell.has-detail > .admin-log-grid-scroll {
  display: none;
}

.admin-log-shell.has-detail .admin-ai-log-detail {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  overflow-y: auto;
  padding-right: 14px;
}

body.admin-page .admin-main:has(.admin-log-shell) {
  padding-bottom: 16px;
}

@media (max-width: 820px) {
  body.admin-page .admin-main .admin-shell.admin-log-shell {
    height: auto;
  }

  body.admin-page .admin-main .admin-shell.admin-log-shell.has-detail {
    overflow: visible;
  }

  .admin-log-shell.has-detail .admin-ai-log-detail {
    overflow: visible;
    padding-right: 0;
  }
}

.admin-log-grid th,
.admin-log-grid td {
  padding-block: 7px;
}

.admin-log-grid th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-log-grid .admin-log-path {
  white-space: nowrap;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.admin-log-article-link {
  color: var(--money-pink);
  text-decoration: none;
}

.admin-log-article-link:hover,
.admin-log-article-link:focus-visible {
  color: var(--money-pink);
  text-decoration: underline;
}

.admin-log-loading {
  margin: 8px 12px;
  color: var(--money-muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .admin-log-filter {
    align-items: stretch;
  }

  .admin-log-filter input {
    width: auto;
    flex: 1 1 auto;
  }
}

.admin-users-filters {
  margin-bottom: 24px;
}

.admin-users-heading {
  align-items: center;
}

.admin-user-name {
  font-weight: 600;
}

.admin-user-role-form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.admin-layout .admin-user-role-form select {
  width: 180px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 10px !important;
}

.admin-user-save {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.admin-user-save:hover {
  transform: none;
}

.admin-user-save:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-article-list {
  border-top: 1px solid var(--money-line);
}

.admin-article-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--money-line);
}

.admin-article-main {
  min-width: 0;
}

.admin-article-space,
.admin-article-meta dt {
  color: var(--money-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-article-title {
  display: inline-block;
  margin-top: 2px;
  color: var(--money-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.admin-article-title:hover {
  color: var(--money-green-dark);
}

.admin-article-summary {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--money-muted);
  font-size: 0.84rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.admin-article-slug {
  display: inline-block;
  margin-top: 4px;
  color: #d12f6a;
  font-size: 0.78rem;
}

.admin-article-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.admin-article-meta dd {
  margin: 2px 0 0;
  color: var(--money-ink);
  font-size: 0.84rem;
  white-space: nowrap;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 36px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--money-line);
}

.admin-workspace-primary {
  min-width: 0;
}

.admin-workspace-primary h2 {
  margin: 6px 0 8px;
}

.admin-workspace-primary p {
  max-width: 640px;
  margin: 0;
  color: var(--money-muted);
}

.admin-workspace-stats {
  display: flex;
  gap: 28px;
  margin: 20px 0;
}

.admin-workspace-stats dt,
.admin-technical-metrics dt {
  color: var(--money-muted);
  font-size: 0.78rem;
}

.admin-workspace-stats dd {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-workspace-links {
  display: grid;
  align-content: start;
  border-left: 1px solid var(--money-line);
  padding-left: 28px;
}

.admin-workspace-links a {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--money-line);
}

.admin-workspace-links a:first-child {
  padding-top: 0;
}

.admin-workspace-links a:last-child {
  border-bottom: 0;
}

.admin-workspace-links strong {
  font-size: 0.92rem;
}

.admin-workspace-links span {
  color: var(--money-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-workspace-links a:hover strong {
  color: var(--money-green-dark);
}

.admin-review-queue {
  padding: 24px 0;
  border-bottom: 1px solid var(--money-line);
}

.admin-review-queue-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-review-queue h2 {
  margin: 5px 0 0;
}

.admin-review-queue h2 .badge-soft {
  vertical-align: middle;
}

.admin-review-queue-list {
  border-top: 1px solid var(--money-line);
}

.admin-review-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--money-line);
  color: inherit;
}

.admin-review-queue-item:hover {
  background: #fbfdfb;
}

.admin-review-queue-item strong,
.admin-review-queue-item small {
  display: block;
}

.admin-review-queue-item small,
.admin-review-queue-item time,
.admin-review-queue-empty {
  color: var(--money-muted);
  font-size: 0.82rem;
}

.admin-review-queue-item time {
  white-space: nowrap;
}

.admin-review-queue-empty {
  margin: 0;
}

.admin-dashboard .btn-primary:hover,
.admin-dashboard .btn-secondary:hover,
.admin-dashboard button.btn-primary:hover,
.admin-dashboard button.btn-secondary:hover {
  transform: none;
}

.admin-technical-details {
  margin-top: 8px;
  padding-top: 4px;
}

.admin-technical-details summary {
  color: var(--money-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-technical-content {
  display: grid;
  gap: 28px;
  padding-top: 20px;
}

.admin-technical-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-technical-heading h2 {
  margin: 0;
}

.admin-health-list {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--money-line);
}

.admin-health-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 72px auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--money-line);
  font-size: 0.84rem;
}

.admin-health-row > span:nth-child(2) {
  color: var(--money-muted);
}

.admin-technical-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.admin-technical-metrics dd {
  margin: 3px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-layout .docs-editor-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
}

.admin-layout .docs-editor-toolbar,
.admin-layout .docs-editor-ai,
.admin-layout .docs-editor-block,
.admin-layout .docs-editor-preview,
.admin-layout .docs-editor-raw {
  padding: 12px;
}

.admin-header.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.admin-header.split > :first-child {
  min-width: 0;
  flex: 1;
}

.admin-header-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.docs-heading h1,
.login-panel h1,
.docs-article h1 {
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.docs-heading h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 8px 0 0;
}

.split {
  align-items: center;
}

.docs-search-results {
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--money-line);
}

.docs-toc {
    position: fixed;
    top: var(--docs-sticky-offset);
    right: max(20px, calc((100vw - 1420px) / 2));
    z-index: 10;
  width: var(--docs-toc-width);
    padding-left: 20px;
  border-left: 1px solid var(--money-line);
  transition: opacity .18s ease;
}

.docs-toc-eyebrow {
  margin-bottom: 10px;
  color: var(--money-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-toc-nav {
  display: grid;
  gap: 1px;
}

.docs-toc-link {
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  color: var(--money-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.docs-toc-link[data-level="3"] {
  padding-left: 18px;
  font-size: 0.8rem;
}

.docs-toc-link:hover,
.docs-toc-link.is-active {
  color: var(--money-ink);
  border-left-color: var(--money-green);
}

.search-results-header,
.search-result-meta {
  display: flex;
  gap: 10px;
}

.search-results-header {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-result-list {
  display: grid;
  gap: 0;
}

.search-result-card {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--money-line);
  color: inherit;
}

.search-result-card:hover {
  border-color: var(--money-line-strong);
}

.search-result-meta {
  flex-wrap: wrap;
  align-items: center;
}

.search-result-card p {
  margin: 0;
  color: var(--money-muted);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f6f8;
  color: var(--money-navy);
  font-size: 0.85rem;
  border: 1px solid #dbe1e8;
}

.badge-soft-success {
  background: #edf7f3;
  color: var(--money-green-dark);
}

.badge-soft-warning {
  background: #fff4db;
  color: #9a6700;
}

.badge-soft-danger {
  background: #fde8e8;
  color: #b42318;
}

.docs-article,
.developer-panel,
.release-list,
.admin-panel {
  padding: 0;
}

.admin-panel {
  background: transparent;
}

.panel-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-intro h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.panel-intro-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.docs-article {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.docs-article h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 0 0 18px;
}

/* The page title is rendered from metadata above the article. */
.docs-article > h1:first-child {
  display: none;
}

.docs-article h2 {
  margin-top: 1.75em;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.docs-article h3 {
  margin-top: 1.4em;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.docs-article p,
.docs-article li {
  font-size: 0.94rem;
  line-height: 1.65;
}

.docs-article a:not(.docs-heading-anchor) {
  color: var(--money-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.docs-article a:not(.docs-heading-anchor):is(:hover, :focus-visible) {
  color: var(--money-green-dark);
}

.docs-article li > p {
  margin-block: 0;
}

.docs-article :not(pre) > code {
  padding: 1px 4px;
  border: 1px solid #dfe6e9;
  border-radius: 4px;
  color: #9e3860;
  background: #f5f7f8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
}

.docs-article pre {
  min-height: 84px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  color: #233d49;
  background: #f1f4f5;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-article pre[data-code-width] {
  max-width: 100%;
}

.docs-article pre[data-code-height] {
  overflow-x: hidden;
  overflow-y: auto;
}

.docs-article pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

/* Keep imported documentation assets inside the readable article column. */
.docs-content {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.docs-content-shell {
  grid-template-columns: minmax(0, 820px) minmax(170px, var(--docs-toc-width));
  justify-content: start;
  transition:
    grid-template-columns .24s cubic-bezier(.22, 1, .36, 1),
    column-gap .24s cubic-bezier(.22, 1, .36, 1);
}

.docs-content-shell.docs-content-shell-reference {
  grid-template-columns: minmax(0, 1fr);
}

/* API references use the space normally reserved for the page outline. */
.docs-content-shell.docs-content-shell-reference-example {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
  align-items: start;
  column-gap: 24px;
  row-gap: 24px;
}

.docs-content-shell.docs-content-shell-reference .docs-primary,
.docs-content-shell.docs-content-shell-reference .docs-primary > *,
.docs-content-shell.docs-content-shell-reference .docs-article {
  max-width: none;
}

.docs-primary,
.docs-primary > *,
.docs-article {
  min-width: 0;
  max-width: 820px;
}

.docs-last-edited {
  margin: 0 0 -12px;
  color: var(--money-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.docs-content-shell > .docs-article-navigation {
  grid-column: 1;
  width: 100%;
  max-width: 820px;
}

.docs-content-shell-reference-example > .docs-primary {
  grid-column: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.docs-content-shell-reference-example .docs-last-edited {
  margin-top: auto;
}

.docs-reference-request-slot {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.docs-reference-request-panel {
  position: sticky;
  top: calc(var(--docs-sticky-offset) + 16px);
  min-width: 0;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.docs-reference-request-header,
.docs-reference-request-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.docs-reference-request-header {
  border-bottom: 1px solid var(--money-line);
  font-size: 0.8rem;
}

.docs-reference-request-method {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #167344;
  background: #e8f8ec;
  font-size: 0.7rem;
  font-weight: 700;
}

.docs-reference-request-header code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--money-muted);
}

.docs-reference-request-copy {
  flex: 0 0 auto;
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #d5dfe3;
  border-radius: 6px;
  background: transparent;
  color: var(--money-muted);
  cursor: pointer;
}

.docs-reference-request-copy svg,
.docs-reference-request-try svg,
.docs-graphql-try-send svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.docs-reference-request-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.docs-reference-request-copy:hover,
.docs-reference-request-copy:focus-visible {
  outline: 0;
  border-color: #8bbd9d;
  color: var(--money-green);
  background: #fff;
}

.docs-reference-request-try,
.docs-graphql-try-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: var(--money-green-dark);
  color: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.docs-reference-request-try:hover,
.docs-reference-request-try:focus-visible,
.docs-graphql-try-send:hover,
.docs-graphql-try-send:focus-visible {
  outline: 0;
  background: var(--money-green);
}

.docs-graphql-try-dialog {
  width: min(1180px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  min-height: min(520px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  resize: both;
  border: 1px solid var(--money-line);
  border-radius: 10px;
  color: var(--money-ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(2, 52, 68, .28);
}

.docs-graphql-try-dialog::backdrop { background: rgba(2, 52, 68, .42); }

.docs-graphql-try-dialog-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-height: 0; }

.docs-graphql-try-header,
.docs-graphql-try-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--money-line);
}

.docs-graphql-try-header { grid-column: 1 / -1; cursor: move; user-select: none; touch-action: none; }

.docs-graphql-try-header > div { display: flex; align-items: center; gap: 10px; }

.docs-graphql-try-header button { cursor: pointer; }

.docs-graphql-try-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--money-muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.docs-graphql-try-body,
.docs-graphql-try-response {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.docs-graphql-try-body { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr) auto; border-right: 1px solid var(--money-line); }
.docs-graphql-try-body :is(label, .docs-graphql-try-query-field) { display: grid; gap: 6px; align-content: start; font-size: .8rem; font-weight: 700; }
.docs-graphql-try-body label > span { display: flex; align-items: baseline; gap: 6px; }
.docs-graphql-try-body label small { color: var(--money-muted); font-size: .72rem; font-weight: 400; }
.docs-graphql-try-body > label > input,
.docs-graphql-token-form-panel label > input { min-height: 36px; padding-block: 7px; }
.docs-graphql-try-token { justify-self: start; padding: 4px 8px; border: 0; border-radius: 5px; background: var(--money-green-dark); color: #fff; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.docs-graphql-try-token:hover, .docs-graphql-try-token:focus-visible { outline: 0; background: var(--money-green); }
.docs-graphql-token-form { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; background: rgba(2, 52, 68, .32); }
.docs-graphql-token-form[hidden] { display: none; }
.docs-graphql-token-form-panel { display: grid; width: min(440px, calc(100% - 32px)); gap: 12px; padding: 20px; border: 1px solid var(--money-line); border-radius: 8px; background: #fff; box-shadow: var(--money-shadow-soft); }
.docs-graphql-token-form-panel label { display: grid; gap: 5px; font-size: .8rem; font-weight: 700; }
.docs-graphql-token-form-panel .docs-graphql-token-fixed { border-color: var(--money-line); background: var(--money-panel-alt); color: var(--money-muted); cursor: default; }
.docs-graphql-token-form-panel > div { display: flex; justify-content: flex-end; gap: 8px; }
.docs-graphql-token-cancel { padding: 4px 8px; border: 1px solid var(--money-line-strong); border-radius: 5px; background: #fff; color: var(--money-ink); font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.docs-graphql-token-cancel:hover, .docs-graphql-token-cancel:focus-visible { outline: 0; border-color: #8bbd9d; color: var(--money-green); }
.docs-graphql-try-body textarea { min-height: 0; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }
.docs-graphql-try-body :is(input, textarea):focus { border-color: var(--money-green); box-shadow: none; }
.docs-graphql-try-dialog :is(input, textarea):focus { border-color: var(--money-green); box-shadow: none; outline: none; }
.docs-graphql-try-body > :nth-child(3),
.docs-graphql-try-body > :nth-child(4) { grid-column: span 2; }
.docs-graphql-try-body > :nth-child(3) { position: relative; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.docs-graphql-try-body > :nth-child(3) textarea { height: 100%; }
.docs-graphql-try-body > :nth-child(4) textarea { height: 88px; }
.docs-graphql-autocomplete { position: absolute; z-index: 5; top: 3.45rem; right: 0; left: 0; max-height: 190px; overflow: auto; border: 1px solid var(--money-line-strong); border-radius: 6px; background: #fff; box-shadow: var(--money-shadow-soft); }
.docs-graphql-autocomplete button { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); width: 100%; gap: 12px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--money-line); border-radius: 0; background: #fff; color: var(--money-ink); text-align: left; cursor: pointer; }
.docs-graphql-autocomplete button:last-child { border-bottom: 0; }
.docs-graphql-autocomplete button:is(:hover, .is-active) { background: var(--money-panel-alt); }
.docs-graphql-autocomplete code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; font-weight: 700; }
.docs-graphql-autocomplete small { overflow: hidden; color: var(--money-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }

.docs-graphql-try-response { grid-column: 2; grid-row: 2; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.docs-graphql-try-response-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.docs-graphql-try-response span { color: var(--money-muted); font-size: .76rem; }
.docs-graphql-try-status.is-success,
.docs-graphql-try-status.is-error { display: inline-flex; align-items: center; min-height: 17px; padding: 2px 7px; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; font-weight: 700; line-height: 1; }
.docs-graphql-try-status.is-success { color: #16803a; background: #dcfce7; }
.docs-graphql-try-status.is-error { color: #b42318; background: #fde8e8; }
.docs-graphql-try-response-output { position: relative; min-height: 0; }
.docs-graphql-try-response pre { width: 100%; height: 100%; min-height: 0; box-sizing: border-box; margin: 0; padding: 14px; overflow: auto; border-radius: 6px; background: var(--money-panel-alt); font-size: .78rem; line-height: 1.5; white-space: pre-wrap; }
.docs-graphql-try-copy.docs-copy-code { z-index: 6; }
.docs-graphql-try-query-field:hover .docs-graphql-try-copy,
.docs-graphql-try-response-output:hover .docs-graphql-try-copy,
.docs-graphql-try-copy:focus-visible,
.docs-graphql-try-copy.is-copied { opacity: 1; }
.docs-graphql-try-query-field .docs-graphql-try-copy { top: 2.1rem; }
.docs-graphql-try-copy.has-scrollbar { right: 24px; }
.docs-graphql-try-query-field textarea { padding-right: 44px; }

.docs-graphql-try-footer { grid-column: 1 / -1; border-top: 1px solid var(--money-line); border-bottom: 0; color: var(--money-muted); font-size: .76rem; }
.docs-graphql-try-send:disabled { cursor: wait; opacity: .65; }

@media (max-width: 720px) {
  .docs-graphql-try-dialog { width: min(100%, calc(100vw - 16px)); height: calc(100vh - 16px); max-height: calc(100vh - 16px); min-height: 0; resize: none; }
  .docs-graphql-try-header { cursor: default; touch-action: auto; }
  .docs-graphql-try-body { grid-template-columns: 1fr; grid-template-rows: auto; border-right: 0; border-bottom: 1px solid var(--money-line); }
  .docs-graphql-try-body > :nth-child(3), .docs-graphql-try-body > :nth-child(4) { grid-column: auto; }
  .docs-graphql-try-body > :nth-child(3) textarea { height: auto; }
  .docs-graphql-try-response { grid-column: 1; grid-row: 3; }
  .docs-graphql-try-footer { grid-column: 1; grid-row: 4; }
}

.docs-reference-request-tabs {
  padding-block: 8px;
  border-bottom: 1px solid var(--money-line);
}

.docs-reference-request-tabs button {
  border: 0;
  background: transparent;
  color: var(--money-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.docs-reference-request-tabs button.is-active {
  color: var(--money-green-dark);
}

.docs-reference-request-code {
  margin: 0;
  padding: 14px;
  overflow: hidden;
  background: var(--money-panel-alt);
  color: var(--money-ink);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.docs-reference-request-variables { border-top: 1px solid var(--money-line); }
.docs-reference-request-variables > span { display: block; padding: 9px 14px 0; color: var(--money-muted); font-size: .74rem; font-weight: 700; }
.docs-reference-request-variables pre { margin: 0; padding: 8px 14px 14px; overflow-wrap: anywhere; background: var(--money-panel-alt); color: var(--money-ink); font-size: .78rem; line-height: 1.55; white-space: pre-wrap; }

.docs-content-shell-reference-example > .docs-article-navigation {
  grid-column: 1 / -1;
  max-width: none;
}

.docs-article img,
.docs-article embed,
.docs-article object,
.docs-article canvas,
.docs-article svg {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.35rem auto;
}

.docs-article video[data-docs-video],
.docs-article iframe[data-docs-video-provider] {
  display: block;
  width: min(100%, 860px);
  max-width: 100%;
  margin-block: 1.35rem;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  background: #101b20;
}

.docs-article iframe[data-docs-video-provider="youtube"]:not([style*="height"]) {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 220px;
}

.docs-article video[data-docs-video]:not([style*="height"]) {
  height: auto;
}

.docs-article img.docs-article-image-zoom {
  cursor: zoom-in;
}

.docs-article img[data-image-alignment="left"]:not([data-image-wrap="left"]):not([data-image-wrap="right"]) {
  margin-left: 0;
  margin-right: auto;
}

.docs-article img[data-image-alignment="center"]:not([data-image-wrap="left"]):not([data-image-wrap="right"]) {
  margin-left: auto;
  margin-right: auto;
}

.docs-article img[data-image-alignment="right"]:not([data-image-wrap="left"]):not([data-image-wrap="right"]) {
  margin-left: auto;
  margin-right: 0;
}

.docs-article img[data-image-wrap="left"] {
  float: left;
  margin: 0.35rem 1.25rem 0.75rem 0;
}

.docs-article img[data-image-wrap="right"] {
  float: right;
  margin: 0.35rem 0 0.75rem 1.25rem;
}

.docs-article::after {
  display: block;
  clear: both;
  content: "";
}

.docs-image-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.docs-image-dialog[open] {
  display: grid;
  place-items: center;
}

.docs-image-dialog::backdrop {
  background: rgba(7, 19, 26, 0.78);
}

.docs-image-dialog img {
  display: block;
  max-width: min(96vw, 1800px);
  max-height: 94dvh;
  object-fit: contain;
  background: #fff;
}

.docs-image-dialog-close {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(7 19 26 / 82%);
  cursor: pointer;
}

.docs-article video[data-docs-video][data-video-alignment="left"],
.docs-article iframe[data-docs-video-provider][data-video-alignment="left"] {
  margin-left: 0;
  margin-right: auto;
}

.docs-article video[data-docs-video][data-video-alignment="center"],
.docs-article iframe[data-docs-video-provider][data-video-alignment="center"] {
  margin-left: auto;
  margin-right: auto;
}

.docs-article video[data-docs-video][data-video-alignment="right"],
.docs-article iframe[data-docs-video-provider][data-video-alignment="right"] {
  margin-left: auto;
  margin-right: 0;
}

.docs-callout,
.docs-article [data-docs-callout] {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 9px;
}

/* The editor may preserve a paragraph wrapper around callout text. Keep its
   vertical rhythm explicit, so the public callout cannot gain a blank line at
   the bottom from the browser's default paragraph margin. */
.docs-callout > p,
.docs-article [data-docs-callout] > p {
  margin-block: 0;
}

.docs-callout > p + p,
.docs-article [data-docs-callout] > p + p {
  margin-block-start: 1em;
}

.docs-callout > :first-child,
.docs-article [data-docs-callout] > :first-child { margin-top: 0; }
.docs-callout > :last-child,
.docs-article [data-docs-callout] > :last-child,
.docs-callout :last-child,
.docs-article [data-docs-callout] :last-child { margin-block-end: 0; }

.docs-callout-info {
  color: #06466c;
  border-color: #8ec9e8;
  background: #edf8fe;
}

.docs-callout-success {
  color: #12633a;
  border-color: #9cd8ad;
  background: #edf9f0;
}

.docs-callout-warning {
  color: #765300;
  border-color: #edbf3a;
  background: #fffbe8;
}

.docs-callout-danger {
  color: #8c2f35;
  border-color: #e6a0a4;
  background: #fff1f1;
}

.docs-article figure {
  max-width: 100%;
  margin: 1.35rem 0;
}

.docs-article table {
  width: 100%;
  max-width: 100%;
  margin: 1.35rem 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.docs-article th,
.docs-article td {
  min-width: 72px;
  padding: 8px;
  border: 1px solid var(--money-line);
  box-sizing: border-box;
}

.docs-article th {
  background: #f2f5f6;
}

.docs-article th > p,
.docs-article td > p {
  margin: 0;
}

.docs-article tr[data-row-height] > th,
.docs-article tr[data-row-height] > td {
  height: inherit;
}

/* Public documentation interaction layer. */
.docs-heading-anchor {
  display: inline-flex;
  width: 0.85em;
  height: 0.85em;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  color: var(--money-muted);
  vertical-align: -0.05em;
  opacity: 0;
  text-decoration: none;
}

.editor-html-highlight .hljs-tag,
.editor-html-highlight .hljs-name,
.editor-html-highlight .hljs-selector-tag,
.editor-html-highlight .hljs-title {
  color: #a62c5c;
}

.editor-html-highlight .hljs-attr,
.editor-html-highlight .hljs-attribute,
.editor-html-highlight .hljs-property {
  color: #955b00;
}

.editor-html-highlight .hljs-string,
.editor-html-highlight .hljs-number,
.editor-html-highlight .hljs-literal {
  color: #087b5d;
}

.editor-html-highlight .hljs-keyword,
.editor-html-highlight .hljs-built_in,
.editor-html-highlight .hljs-type {
  color: #5c4ca2;
}

.editor-html-highlight .hljs-comment {
  color: #7a8990;
}

.docs-heading-anchor svg {
  width: 0.68em;
  height: 0.68em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.docs-article h2:hover .docs-heading-anchor,
.docs-article h3:hover .docs-heading-anchor,
.docs-heading-anchor:focus-visible {
  opacity: 1;
}

.docs-heading-anchor.is-copied {
  color: var(--money-green);
}

.docs-code-block-shell {
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  margin: 14px 0;
}

.docs-code-block-shell > pre {
  width: 100%;
  margin: 0;
}

.docs-copy-code {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid #d5dfe3;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #58707d;
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  transition: opacity 120ms ease, border-color 120ms ease, background 120ms ease;
}

.docs-copy-code svg {
  display: block;
  width: 15px;
  height: 15px !important;
  max-width: none !important;
  margin: 0 !important;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.docs-code-block-shell:hover .docs-copy-code,
.docs-copy-code:focus-visible,
.docs-copy-code.is-copied {
  opacity: 1;
}

.docs-copy-code:hover,
.docs-copy-code:focus-visible {
  outline: 0;
  border-color: #8bbd9d;
  color: var(--money-green);
  background: #fff;
}

.docs-copy-code.is-copied {
  border-color: #8bbd9d;
  color: var(--money-green);
  background: #fff;
}

.docs-article pre .hljs-tag,
.docs-article pre .hljs-name,
.docs-article pre .hljs-selector-tag,
.docs-article pre .hljs-title {
  color: #a62c5c;
}

.docs-article pre .hljs-attr,
.docs-article pre .hljs-attribute,
.docs-article pre .hljs-property {
  color: #955b00;
}

.docs-article pre .hljs-string,
.docs-article pre .hljs-number,
.docs-article pre .hljs-literal {
  color: #087b5d;
}

.docs-article pre .hljs-keyword,
.docs-article pre .hljs-built_in,
.docs-article pre .hljs-type {
  color: #5c4ca2;
}

.docs-article pre .hljs-comment {
  color: #7a8990;
}

.docs-article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  /* The parent grid already creates the article-to-navigation gap. */
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--money-line);
}

.docs-article-navigation a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--money-line);
  border-radius: 12px;
  color: var(--money-ink);
  text-decoration: none;
}

.docs-article-navigation a.next {
  text-align: right;
}

.docs-article-navigation span {
  color: var(--money-muted);
  font-size: 0.76rem;
}

.docs-article-navigation strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-article-navigation a:hover {
  border-color: var(--money-green);
  color: var(--money-green-dark);
}

.docs-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 60;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--money-line);
  border-radius: 12px;
  background: var(--money-panel);
  color: var(--money-ink);
  box-shadow: var(--money-shadow);
}

.docs-search-status {
  padding: 12px 14px;
  color: var(--money-muted);
  font-size: 0.78rem;
}

.docs-search-results {
  display: grid;
  max-height: min(52vh, 430px);
  overflow-y: auto;
}

.docs-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 10px;
  border-top: 1px solid var(--money-line);
  color: var(--money-ink);
  text-decoration: none;
}

.docs-search-result:hover,
.docs-search-result.is-selected {
  background: var(--money-green-soft);
}

.docs-search-result small {
  overflow: hidden;
  color: var(--money-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--money-line);
  color: var(--money-muted);
  font-size: 0.76rem;
}

.docs-search-filter,
.docs-search-shortcuts,
.docs-search-shortcuts span {
  display: inline-flex;
  align-items: center;
}

.docs-search-filter {
  gap: 8px;
}

.docs-search-filter select {
  min-height: 28px;
  padding: 0 24px 0 0;
  border: 0;
  background: transparent;
  color: var(--money-ink);
  font: inherit;
  font-weight: 600;
}

.docs-search-filter select:focus-visible {
  outline: 2px solid var(--money-green);
  outline-offset: 2px;
}

.docs-search-shortcuts {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.docs-search-shortcuts span {
  gap: 4px;
  white-space: nowrap;
}

.docs-search-shortcuts kbd {
  min-width: 20px;
  padding: 2px 5px;
  border: 1px solid var(--money-line-strong);
  border-radius: 4px;
  background: var(--money-panel-alt);
  color: var(--money-ink);
  font: inherit;
  font-size: .7rem;
  line-height: 1.2;
  text-align: center;
}

.developer-reference {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--money-line);
}

.developer-reference-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.developer-reference-header h2 {
  margin: 4px 0 0;
}

.developer-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 20px;
}

.developer-reference-grid h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.api-reference-item {
  margin-top: 7px;
  border: 1px solid var(--money-line);
  border-radius: 10px;
  background: #fff;
}

.api-reference-item summary {
  min-height: 42px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
}

.api-reference-item > p,
.api-reference-item > pre,
.api-reference-item > table,
.api-reference-fields {
  margin-right: 12px;
  margin-left: 12px;
}

.api-reference-kind,
.api-method {
  display: inline-block;
  min-width: 46px;
  color: var(--money-green-dark);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.api-method-post { color: #2563eb; }
.api-method-delete { color: #c2410c; }
.api-method-put, .api-method-patch { color: #7c3aed; }

.api-reference-fields {
  display: grid;
  gap: 4px;
  padding: 0 0 12px;
  list-style: none;
}

.api-parameter-table {
  width: calc(100% - 24px);
  margin-bottom: 12px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.api-parameter-table th,
.api-parameter-table td {
  padding: 6px;
  border-top: 1px solid var(--money-line);
  text-align: left;
}

@media (max-width: 820px) {
  .developer-reference-grid,
  .docs-article-navigation {
    grid-template-columns: 1fr;
  }

  .docs-article-navigation a.next {
    text-align: left;
  }

  .developer-reference-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.release-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--money-line);
}

.release-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.admin-grid > .admin-panel {
  padding: 28px 0;
  border-top: 1px solid var(--money-line);
}

.admin-grid > .admin-panel:first-child {
  padding-top: 0;
  border-top: 0;
}

.admin-grid > .admin-panel > h2 {
  margin: 0;
}

.admin-grid > .admin-panel {
  display: block;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.ops-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.ops-health-list {
  display: grid;
  gap: 12px;
}

.ops-health-item {
  border: 1px solid var(--money-line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--money-panel-alt);
}

.empty-state-inline {
  color: var(--money-muted);
  margin: 0;
}

.profile-grid dt {
  color: var(--money-muted);
  font-size: 0.85rem;
}

.profile-grid dd {
  margin: 4px 0 0;
}

.form-grid > * {
  flex: 1 1 0;
}

.menu-icon-picker {
  position: relative;
  width: max-content;
}

.menu-icon-trigger {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0 10px;
  color: var(--money-muted);
  border: 1px solid var(--money-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.menu-icon-trigger::-webkit-details-marker {
  display: none;
}

.menu-icon-trigger:hover,
.menu-icon-picker[open] .menu-icon-trigger {
  color: var(--money-dark);
  border-color: var(--money-dark);
}

.menu-icon-preview {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  font-size: 0.82rem;
  white-space: nowrap;
}

.menu-icon-preview svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-icon-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 38px;
  max-height: min(644px, calc(100vh - 180px));
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--money-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgb(19 59 74 / 12%);
}

.menu-icon-choice {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: var(--money-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.menu-icon-choice.menu-icon-none {
  width: auto;
  min-width: 38px;
  padding: 0 9px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.menu-icon-choice svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-icon-choice:has(.docs-menu-api-badge) {
  width: auto;
  min-width: 38px;
  padding: 0 4px;
}

.menu-icon-preview .docs-menu-api-badge,
.menu-icon-choice .docs-menu-api-badge {
  transform: scale(0.88);
}

.menu-icon-choice:hover,
.menu-icon-choice:focus-visible {
  color: var(--money-dark);
  border-color: var(--money-line);
  outline: none;
}

.menu-icon-choice.is-selected {
  color: var(--money-dark);
  background: var(--money-green-soft);
  border-color: var(--money-green);
}

.editor-meta-grid {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 2px 0 4px;
}

.editor-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.editor-header-actions form {
  margin: 0;
}

.btn-danger:hover {
  border-color: #b42318;
  color: #b42318;
}

.docs-preview-note {
  margin: 12px 0 0;
  color: var(--money-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  cursor: pointer;
}

.admin-checkbox-label input {
  min-height: 0 !important;
  width: 16px;
  height: 16px;
  margin: 0;
}

.admin-inline-link {
  display: inline-block;
  margin: 8px 0 0 24px;
  font-size: 0.82rem;
}

.editor-navigation-toggle {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  margin-top: 21px;
}

.editor-navigation-toggle .admin-inline-link {
  margin: 0;
}

.editor-navigation-link {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.navigation-manager-panel {
  padding: 18px 20px !important;
}

.navigation-manager .admin-header .lead-copy {
  display: none;
}

.navigation-manager-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.navigation-manager-toolbar input {
  width: min(440px, 100%);
  min-height: 34px;
  padding-block: 6px;
}

.navigation-root-drop {
  border: 1px dashed var(--money-line-strong);
  color: var(--money-muted);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
}

.navigation-tree {
  display: grid;
  gap: 0;
}

.navigation-space-heading {
  margin-top: 10px;
  padding: 6px 0 2px;
  color: var(--money-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navigation-space-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.navigation-space-toggle:hover,
.navigation-space-toggle:focus-visible {
  color: var(--money-ink);
  outline: 0;
}

.navigation-space-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 120ms ease;
}

.navigation-space-toggle[aria-expanded="false"] .navigation-space-chevron {
  transform: rotate(-90deg);
}

.navigation-space-items[hidden] {
  display: none;
}

.navigation-tree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 2px 8px 2px calc(10px + var(--navigation-depth) * 24px);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}

.navigation-tree-row:hover,
.navigation-tree-row.selected {
  background: rgba(45, 200, 0, 0.06);
  border-color: var(--money-line);
}

.navigation-tree-row.dragging {
  opacity: 0.45;
}

.navigation-tree-row.drag-over {
  border-top-color: var(--money-green);
  border-top-width: 2px;
}

.developer-reference-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.developer-reference-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  color: var(--money-ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.developer-reference-tabs a:hover {
  border-color: var(--money-green-dark);
  color: var(--money-green-dark);
}

.developer-reference-tabs span {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--money-panel-alt);
  color: var(--money-muted);
  font-size: 0.72rem;
  text-align: center;
}

.developer-reference-section + .developer-reference-section {
  margin-top: 32px;
}

.developer-reference-section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--money-line);
}

.developer-reference-section-heading h3,
.developer-reference-section-heading p {
  margin: 0;
}

.developer-reference-section-heading h3 {
  font-size: 1rem;
}

.developer-reference-section-heading p {
  color: var(--money-muted);
  font-size: 0.82rem;
}

.navigation-tree-row.drop-into {
  background: rgba(45, 200, 0, 0.1);
  border-color: var(--money-green);
}

.navigation-tree-row.drop-into::after {
  content: "Vložit jako podsekci";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: var(--money-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
}

.navigation-tree-grip {
  color: var(--money-muted);
  letter-spacing: -2px;
  cursor: grab;
}

.navigation-tree-content {
  min-width: 0;
  flex: 1 1 auto;
}

.navigation-tree-content strong {
  font-size: 0.88rem;
}

.navigation-tree-slug {
  overflow: hidden;
  color: var(--money-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navigation-move-into {
  border: 1px solid var(--money-line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--money-text);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 4px 7px;
  white-space: nowrap;
}

.navigation-move-into:hover {
  color: var(--money-green-dark);
  border-color: var(--money-green-dark);
}

.navigation-move-into:disabled {
  border-color: transparent;
  background: transparent;
  color: var(--money-muted);
  cursor: default;
}

@media (max-width: 760px) {
  .navigation-manager-toolbar,
  .navigation-tree-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .navigation-tree-content {
    flex-basis: calc(100% - 42px);
  }
}

.editor-status-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-field-label {
  color: var(--money-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .editor-meta-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

.editor-markdown {
  min-height: 420px;
}

.docs-editor {
  display: grid;
  gap: 12px;
}

.docs-editor-ai {
  border: 1px solid var(--money-line);
  border-radius: 16px;
  background: #f7f9fb;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.docs-editor-ai-header,
.docs-editor-ai-actions {
  display: flex;
  gap: 10px;
}

.docs-editor-ai-header {
  justify-content: space-between;
  align-items: flex-start;
}

.docs-editor-ai-title,
.docs-editor-ai-icon {
  display: inline-flex;
  align-items: center;
}

.docs-editor-ai-title {
  gap: 7px;
}

.docs-editor-ai-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.docs-editor-ai-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-editor-ai-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  white-space: nowrap;
}

.docs-editor-ai-actions .btn-secondary {
  padding: 8px 12px;
}

.docs-editor-ai-result {
  border: 1px dashed var(--money-line);
  border-radius: 14px;
  background: white;
  padding: 14px 16px;
}

.docs-editor-ai-result > :first-child {
  margin-top: 0;
}

.docs-editor-ai-result > :last-child {
  margin-bottom: 0;
}

.docs-editor-ai-notes {
  white-space: pre-wrap;
  margin: 12px 0 0;
  font: inherit;
  color: var(--money-text);
  background: #f6f8fa;
  border-radius: 12px;
  padding: 12px 14px;
}

.docs-editor-ai .is-error,
.docs-editor-ai-result .is-error {
  color: #b42318;
}

.docs-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--money-line);
  border-radius: 16px;
  background: white;
}

.docs-editor-toolbar .btn-secondary {
  padding: 8px 12px;
  font-size: 0.95rem;
}

.docs-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.docs-editor-canvas {
  display: grid;
  gap: 14px;
  min-height: 280px;
}

.docs-editor-block {
  border: 1px solid var(--money-line);
  border-radius: 16px;
  background: #fafcfd;
  padding: 16px 18px;
}

.docs-editor-block-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.docs-editor-block-actions,
.docs-editor-block-actions-secondary,
.docs-editor-inline-fields {
  display: flex;
  gap: 10px;
}

.docs-editor-block-actions {
  flex-wrap: wrap;
}

.docs-editor-block-actions .btn-secondary,
.docs-editor-block-actions-secondary .btn-secondary {
  min-height: 36px;
  padding: 0 12px;
}

.docs-editor-block-body {
  display: grid;
  gap: 12px;
}

.docs-editor-inline-fields {
  flex-wrap: wrap;
}

.docs-editor-inline-fields > * {
  flex: 1 1 220px;
}

.docs-editor-flex-field {
  flex: 1 1 320px;
}

.docs-editor-label {
  display: block;
  margin-bottom: 6px;
  color: var(--money-muted);
  font-size: 0.9rem;
}

.docs-editor-input,
.docs-editor-select,
.docs-editor-textarea {
  width: 100%;
}

.docs-editor-textarea {
  min-height: 120px;
}

.editor-markdown-raw {
  min-height: 320px;
  margin-top: 12px;
}

.docs-editor-raw {
  border: 1px solid var(--money-line);
  border-radius: 12px;
  background: white;
  padding: 14px 16px;
}

.docs-editor-raw summary {
  cursor: pointer;
  font-weight: 600;
}

.admin-layout .docs-editor-raw {
  border-radius: 10px !important;
}

.docs-editor-preview {
  min-height: 420px;
  border: 1px solid var(--money-line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
  position: sticky;
  top: 92px;
}

.panel-toggle {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--money-muted);
  cursor: pointer;
}

.panel-toggle:hover,
.panel-toggle:focus-visible {
  background: rgba(45, 200, 0, 0.08);
  color: var(--money-green);
}

/* Dialog close controls use a textual × rather than an SVG icon. Keep it at
   the same visual weight as the other dialog toolbar controls. */
dialog .editor-dialog-header > .panel-toggle {
  font-size: 1.35rem;
  line-height: 1;
}

.panel-toggle-icon {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 120ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-collapsed .panel-toggle-icon {
  transform: rotate(180deg);
}

.docs-editor-preview.is-collapsed {
  min-height: 56px;
  width: 44px;
  justify-self: end;
  padding: 10px 6px;
}

.docs-editor-preview.is-collapsed .docs-editor-preview-header {
  height: 45px;
  min-height: 45px;
  justify-content: center;
  padding: 8px 1px;
  border-bottom: 1px solid var(--money-line);
}

.docs-editor-preview.is-collapsed .docs-editor-preview-header > strong,
.docs-editor-preview.is-collapsed .docs-editor-preview-header > .hint-copy,
.docs-editor-preview.is-collapsed .docs-editor-preview-body {
  display: none;
}

.docs-editor-side-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.editor-comments-panel {
  display: grid;
  gap: 8px;
  border: 1px solid var(--money-line);
  border-radius: 10px;
  background: white;
  padding: 12px 16px 14px;
}

.admin-layout .editor-comments-panel {
  border-radius: 10px !important;
}

.editor-comments-panel .review-comments-header {
  box-sizing: border-box;
  height: 45px;
  min-height: 45px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--money-line);
}

.editor-comments-panel.is-collapsed {
  width: 64px;
  min-height: 56px;
  justify-self: end;
  align-content: start;
  padding: 10px 6px;
}

.editor-comments-panel.is-collapsed .review-comments-header {
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  min-height: 62px;
  gap: 4px;
}

.editor-comments-panel.is-collapsed .review-comments-header > div,
.editor-comments-panel.is-collapsed > form,
.editor-comments-panel.is-collapsed > .comment-list {
  display: none;
}

.editor-comments-panel .review-comments-header h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.editor-comments-panel .review-comments-header .section-copy {
  display: none;
}

.editor-comments-panel form > label[for="Comment_Body"] {
  display: none;
}

.editor-comments-panel .editor-form {
  gap: 0;
}

.editor-comments-panel .editor-actions {
  margin-top: 8px;
}

.editor-comments-panel textarea[name="Comment.Body"] {
  height: 64px;
}

.editor-comments-panel .empty-state {
  display: none;
}

.mention-composer {
  position: relative;
}

.mention-suggestions {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  z-index: 30;
  display: grid;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--money-line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--money-shadow);
}

.mention-suggestion {
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--money-navy);
  text-align: left;
  cursor: pointer;
}

.mention-suggestion:hover,
.mention-suggestion:focus-visible {
  background: rgba(45, 200, 0, 0.08);
  color: var(--money-green);
}

.docs-editor-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--money-line);
  background: white;
}

.docs-editor-preview-header > strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.docs-editor-preview-body {
  padding: 18px 18px 22px;
}

.docs-editor-preview-body > :first-child {
  margin-top: 0;
}

.docs-editor-preview-body > :last-child {
  margin-bottom: 0;
}

.docs-editor-preview-header .is-error {
  color: #b42318;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.table-shell {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--money-line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  background: rgba(248, 251, 252, 0.98);
  color: var(--money-muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table tbody tr:hover {
  background: rgba(2, 52, 68, 0.04);
}

.table-main {
  font-weight: 700;
}

.table-link {
  color: var(--money-green-dark);
  font-weight: 600;
}

.table-link:hover {
  color: var(--money-navy);
}

.review-comments-header,
.comment-meta,
.comment-mentions {
  display: flex;
  gap: 10px;
}

.review-comments-header {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-copy,
.hint-copy,
.empty-state {
  color: var(--money-muted);
}

.hint-copy {
  margin-top: 6px;
  font-size: 0.92rem;
}

.article-slug-hints > .hint-copy {
  margin: 6px 0 0;
}

.comment-list {
  display: grid;
  gap: 14px;
}

.workflow-timeline {
  display: grid;
  gap: 14px;
}

#workflow-history .empty-state {
  min-height: 0;
  display: block;
}

.workflow-card,
.comment-card {
  border: 1px solid var(--money-line);
  border-radius: 16px;
  padding: 9px 12px;
  background: var(--money-panel-alt);
}

.workflow-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.workflow-card-header .comment-meta {
  flex: 0 1 auto;
  margin-bottom: 0;
  font-size: 12px;
  white-space: nowrap;
}

.workflow-card-details {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.workflow-transition {
  margin: 0;
  color: var(--money-ink);
  flex: 0 1 auto;
  font-size: 11.5px;
  white-space: nowrap;
}

.workflow-card p,
.comment-card p {
  margin: 0;
  white-space: pre-wrap;
}

.workflow-card > p:not(.workflow-transition) {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.workflow-version-link {
  text-decoration: none;
  color: var(--money-navy);
}

.workflow-version-link:hover {
  color: var(--money-green-dark);
  border-color: var(--money-green);
}

.workflow-version-detail {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--money-line);
  border-radius: 12px;
  background: #fff;
}

.workflow-version-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--money-line);
}

.workflow-version-detail-header h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.workflow-version-metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 12px 0 0;
}

.workflow-version-metadata div {
  min-width: 0;
}

.workflow-version-metadata dt {
  color: var(--money-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.workflow-version-metadata dd {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  font-size: 12px;
}

.workflow-version-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  margin-top: 14px;
  border-top: 1px solid var(--money-line);
}

.workflow-version-detail .revision-history-document {
  min-height: 0;
  padding: 14px 16px 0 0;
}

.workflow-version-detail .revision-history-review {
  padding: 14px 0 0 16px;
  background: transparent;
}

.revision-history-panel {
  margin: 0 0 18px;
  border: 1px solid var(--money-line);
  border-radius: 12px;
  background: #fff;
}

.revision-history-panel > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--money-navy);
}

.revision-history-panel > summary::marker {
  color: var(--money-navy);
}

.revision-history-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.28fr) minmax(0, 0.92fr) minmax(240px, 0.34fr);
  border-top: 1px solid var(--money-line);
}

.revision-history-list {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--money-line);
  background: var(--money-panel-alt);
}

.revision-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--money-line);
  color: var(--money-muted);
  font-size: 12px;
}

.revision-history-item:hover,
.revision-history-item.is-selected {
  color: var(--money-navy);
  background: #fff;
}

.revision-history-item.is-selected {
  box-shadow: inset 3px 0 0 var(--money-green);
}

.revision-history-item-title {
  font-size: 13px;
  font-weight: 700;
}

.revision-history-item-meta,
.revision-history-item-comments {
  grid-column: 1 / -1;
}

.revision-history-item-comments {
  color: var(--money-muted);
}

.revision-history-content {
  min-width: 0;
  padding: 18px 20px;
}

.revision-history-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--money-line);
}

.revision-history-content-header h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.revision-history-content-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 8px;
  color: var(--money-muted);
  font-size: 12px;
  text-align: right;
}

.revision-history-document {
  min-height: 220px;
  padding-top: 16px;
}

.revision-history-review {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px 16px;
  border-left: 1px solid var(--money-line);
  background: var(--money-panel-alt);
}

.revision-history-review h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
}

.revision-history-comments {
  display: grid;
  gap: 8px;
}

.revision-history-comment {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--money-line);
  font-size: 12px;
}

.revision-history-comment .comment-meta {
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
}

.revision-history-comment p {
  margin: 0;
  white-space: pre-wrap;
}

.revision-history-events {
  padding-top: 14px;
  border-top: 1px solid var(--money-line);
}

.revision-history-events ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.revision-history-events li {
  display: grid;
  gap: 2px;
  color: var(--money-muted);
  font-size: 12px;
}

.revision-history-events li strong {
  color: var(--money-ink);
}

.workflow-event-note {
  display: block;
  margin-top: 2px;
  color: var(--money-ink);
}

.workflow-event-note strong {
  margin-right: 4px;
  font-size: inherit;
}

.comment-meta {
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--money-muted);
  font-size: 0.95rem;
}

.comment-card {
  padding: 8px 10px;
}

.comment-card .comment-meta {
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 11px;
  line-height: 1.3;
}

.comment-card p {
  font-size: 12px;
  line-height: 1.35;
}

.comment-mentions {
  flex-wrap: wrap;
  margin-top: 12px;
}

.compact-select {
  min-width: 140px;
}

.editor-actions-sticky {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 14px;
  border: 1px solid var(--money-line);
  border-radius: 16px;
  background: #fafbfc;
  box-shadow: var(--money-shadow);
}

.badge-soft-info {
  background: rgba(45, 200, 0, 0.1);
  color: var(--money-navy);
  border-color: rgba(45, 200, 0, 0.16);
}

@media (max-width: 820px) {
  .topbar-main-row,
  .admin-layout,
  .admin-grid,
  .profile-grid,
  .form-grid,
  .docs-editor-layout {
    grid-template-columns: 1fr;
  }

  .docs-shell {
    display: block;
  }

  .admin-sidebar {
    position: static;
    min-height: 0;
    margin-bottom: 28px;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--money-line);
  }

  body.admin-page .admin-layout {
    width: 100%;
    min-height: 0;
  }

  body.admin-page .admin-sidebar {
    margin-bottom: 0;
    padding: 24px 12px;
    border-right: 0;
  }

  body.admin-page .admin-main {
    padding: 24px 12px 40px 16px;
  }

  .admin-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .docs-content-shell {
    grid-template-columns: 1fr;
  }

  .docs-content {
    grid-column: auto;
  }

  /* Keep article text clear of the mobile viewport edge while preserving its left alignment. */
  .docs-article {
    padding-inline-end: 12px;
  }

  .topbar-inner {
    padding-top: 12px;
  }

  .topbar-main-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topbar-search-toggle {
    display: inline-flex;
  }

  .topbar-search-slot {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.topbar-mobile-search-open .topbar-search-slot {
    display: flex;
  }

  .topbar-search-form {
    width: 100%;
  }

  .docs-search-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .docs-search-shortcuts {
    justify-content: flex-start;
  }

  .topbar .btn-compact {
    min-height: 36px;
    padding: 0 10px;
  }

  .docs-mobile-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-top: 8px;
    border-top: 1px solid var(--money-line);
  }

  .docs-mobile-section-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--money-ink);
    font-size: 0.94rem;
    font-weight: 700;
  }

  .docs-mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--money-line);
    border-radius: 8px;
    background: var(--money-panel);
    color: var(--money-ink);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
  }

  .docs-mobile-menu-toggle:hover,
  .docs-mobile-menu-toggle:focus-visible,
  .docs-mobile-menu-toggle[aria-expanded="true"] {
    border-color: var(--money-line-strong);
    background: var(--money-panel-alt);
    color: var(--money-green-dark);
    outline: none;
  }

  .docs-mobile-menu-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.9;
  }

  .docs-sidebar {
    display: none;
    position: static;
    left: auto;
    width: auto;
    height: auto;
    margin-bottom: 16px;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--money-line);
  }

  body.docs-mobile-menu-open .topnav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
    margin-top: 8px;
    padding: 0 0 8px;
    border-top: 1px solid var(--money-line);
  }

  body.docs-mobile-menu-open .topnav a,
  body.docs-mobile-menu-open .topnav a:visited {
    min-height: 42px;
    border-bottom: 0;
  }

  body.docs-mobile-menu-open .topnav a.active {
    color: var(--money-green-dark);
  }

  body.docs-mobile-menu-open .docs-sidebar {
    display: block;
  }

  .docs-sidebar-scroll {
    height: auto;
    max-height: max(160px, calc(100dvh - var(--docs-sticky-offset) - 100px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 0;
  }

  .docs-sidebar-scroll-fade,
  .docs-sidebar-scroll-more {
    display: none;
  }

  .docs-sidebar-footer {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .docs-header,
  .admin-header,
  .admin-links,
  .editor-actions,
  .inline-form,
  .search-results-header,
  .review-comments-header,
  .docs-editor-ai-header,
  .docs-editor-ai-actions,
  .docs-editor-block-header,
  .docs-editor-block-actions,
  .docs-editor-inline-fields,
  .ops-links {
    display: grid;
  }

  .admin-header.split {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-pages-filter-main,
  .admin-pages-filter-options {
    grid-template-columns: 1fr;
  }

  .admin-pages-list .admin-pages-filter-main {
    grid-template-columns: 1fr;
  }

  .admin-pages-filter-actions {
    justify-content: flex-start;
    justify-self: start;
  }

  .admin-article-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-article-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-workspace {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .admin-workspace-links {
    padding: 20px 0 0;
    border-top: 1px solid var(--money-line);
    border-left: 0;
  }

  .admin-health-row {
    grid-template-columns: 1fr auto;
  }

  .admin-health-row > span:nth-child(2) {
    grid-column: 1 / -1;
  }

  .admin-technical-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topnav {
    display: none;
  }

  .topbar-inner,
  .page-shell,
  .site-footer {
    width: min(100%, calc(100% - 24px));
  }

  .brand-logo {
    width: 128px;
  }

  .docs-heading h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .topbar-search-form {
    padding: 0 10px;
  }

  .docs-editor-preview,
  .editor-actions-sticky,
  .data-table th {
    position: static;
  }

  .docs-toc {
        right: auto;
        width: auto;
        display: none;
    }
}

@media (max-width: 420px) {
  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 116px;
  }

  .brand-lockup {
    display: none;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-search-toggle,
  .topbar-settings-toggle,
  .topbar-account-toggle {
    width: 36px;
    height: 36px;
  }

  .topbar .btn-compact {
    padding-inline: 8px;
  }

  .docs-search-shortcuts {
    gap: 6px;
  }
}

/* Admin shell follows the full-height side navigation pattern used by the dashboard. */
body.admin-page {
  min-height: 100dvh;
  overflow-x: hidden;
}

body.admin-page .page-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}

body.admin-page .admin-layout {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  transition: grid-template-columns 160ms ease;
}

body.admin-page .admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid var(--money-line);
  background: #fafbfc;
}

body.admin-page .admin-sidebar::before {
  display: none;
}

body.admin-page .admin-main {
  width: 100%;
  max-width: none;
  padding: 28px 36px 56px;
  background: #fff;
}

body.admin-page .admin-main .admin-shell {
  max-width: none;
  min-height: 0;
  padding: 0;
}

.admin-sidebar-top {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--money-line);
}

.admin-sidebar-brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--money-ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-sidebar-brand-link img {
  width: 118px;
  height: auto;
}

.admin-sidebar-brand-link span {
  color: var(--money-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar-toggle {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  color: var(--money-ink);
  cursor: pointer;
}

.admin-sidebar-toggle:hover,
.admin-sidebar-toggle:focus-visible {
  color: var(--money-green-dark);
  outline: 0;
}

.admin-sidebar-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-sidebar-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 16px 24px;
}

.admin-sidebar-footer {
  padding: 12px 16px 18px;
  border-top: 1px solid var(--money-line);
}

.admin-sidebar-footer form {
  margin: 0;
}

.admin-sidebar-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  min-height: 44px;
  align-items: center;
  gap: 8px;
}

.admin-sidebar-user-identity {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  color: var(--money-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.admin-sidebar-user-identity:hover {
  color: var(--money-green-dark);
}

.admin-sidebar-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-logout {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--money-muted);
  cursor: pointer;
}

.admin-sidebar-logout:hover,
.admin-sidebar-logout:focus-visible {
  color: var(--money-ink);
  outline: 0;
}

.admin-sidebar-logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html.admin-sidebar-collapsed body.admin-page .admin-layout {
  grid-template-columns: 72px minmax(0, 1fr);
}

html.admin-sidebar-collapsed .admin-sidebar-top {
  justify-content: center;
  padding: 0 10px;
}

html.admin-sidebar-collapsed .admin-sidebar-brand-link,
html.admin-sidebar-collapsed .admin-sidebar-brand,
html.admin-sidebar-collapsed .admin-sidebar-section-title,
html.admin-sidebar-collapsed .admin-sidebar-link > span:not(.admin-sidebar-icon),
html.admin-sidebar-collapsed .admin-sidebar-user-name {
  display: none;
}

html.admin-sidebar-collapsed .admin-sidebar-toggle {
  transform: rotate(180deg);
}

html.admin-sidebar-collapsed .admin-sidebar-content {
  padding: 18px 10px 24px;
}

html.admin-sidebar-collapsed .admin-sidebar-nav {
  gap: 8px;
}

html.admin-sidebar-collapsed .admin-sidebar-link {
  justify-content: center;
  gap: 0;
  padding: 0;
}

html.admin-sidebar-collapsed .admin-sidebar-footer {
  padding: 10px;
}

html.admin-sidebar-collapsed .admin-sidebar-logout {
  margin: 0 auto;
}

@media (max-width: 820px) {
  body.admin-page .admin-layout,
  html.admin-sidebar-collapsed body.admin-page .admin-layout {
    grid-template-columns: 1fr;
  }

  body.admin-page .admin-sidebar {
    position: relative;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--money-line);
  }

  body.admin-page .admin-main {
    padding: 22px 16px 40px;
  }

  .admin-sidebar-top {
    min-height: 64px;
  }

  html.admin-sidebar-collapsed .admin-sidebar-content,
  html.admin-sidebar-collapsed .admin-sidebar-footer {
    display: none;
  }

  html.admin-sidebar-collapsed .admin-sidebar-top {
    justify-content: flex-end;
  }
}

/* Compact article editing layout. */
.docs-editor.uses-toast-editor .docs-editor-ai {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 10px !important;
  background: #fafbfc;
}

.docs-editor.uses-toast-editor .docs-editor-ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.docs-editor.uses-toast-editor .docs-editor-ai-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-editor.uses-toast-editor .docs-editor-ai-header .hint-copy {
  display: none;
}

.docs-editor.uses-toast-editor .docs-editor-ai-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.docs-editor.uses-toast-editor .docs-editor-ai-actions .btn-secondary {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.78rem;
}

.docs-editor.uses-toast-editor .docs-editor-ai-result {
  display: none;
}

.admin-layout .docs-editor.uses-toast-editor .docs-editor-layout {
  grid-template-columns: minmax(0, 0.6fr) minmax(320px, 0.4fr);
}

.admin-layout .docs-editor.uses-toast-editor[data-editor-has-comments="true"] .docs-editor-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr) minmax(250px, 0.55fr);
}

.admin-layout .docs-editor.uses-toast-editor[data-editor-has-comments="true"] .docs-editor-layout:has(.docs-editor-side-panel.is-collapsed) {
  grid-template-columns: minmax(0, 1.65fr) 44px minmax(270px, 0.65fr);
}

.admin-layout .docs-editor.uses-toast-editor[data-editor-has-comments="true"] .docs-editor-layout:has(.editor-comments-panel.is-collapsed) {
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.95fr) 64px;
}

.admin-layout .docs-editor.uses-toast-editor[data-editor-has-comments="true"] .docs-editor-layout:has(.docs-editor-side-panel.is-collapsed):has(.editor-comments-panel.is-collapsed) {
  grid-template-columns: minmax(0, 1fr) 44px 64px;
}

.docs-editor.uses-toast-editor .docs-editor-preview {
  min-height: 520px;
}

.docs-editor.uses-toast-editor[data-editor-empty="true"] .docs-editor-preview {
  height: 260px;
  min-height: 0;
}

@media (max-width: 980px) {
  .admin-workflow-section {
    margin-left: 0;
  }

  .workflow-card-details,
  .workflow-card-header .comment-meta {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .docs-editor.uses-toast-editor .docs-editor-ai {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-editor.uses-toast-editor .docs-editor-ai-actions {
    justify-content: flex-start;
  }

  .admin-layout .docs-editor.uses-toast-editor .docs-editor-layout {
    grid-template-columns: 1fr;
  }

  .workflow-version-detail-layout {
    grid-template-columns: 1fr;
  }

  .workflow-version-detail .revision-history-document {
    padding-right: 0;
  }

  .workflow-version-detail .revision-history-review {
    padding: 14px 0 0;
    border-top: 1px solid var(--money-line);
    border-left: 0;
  }

  .revision-history-layout {
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  }

  .revision-history-review {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--money-line);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .workflow-card-header,
  .workflow-card-header .comment-meta {
    flex-wrap: wrap;
    white-space: normal;
  }

  .workflow-version-detail-header {
    display: grid;
  }

  .workflow-version-metadata {
    grid-template-columns: 1fr 1fr;
  }

  .revision-history-layout,
  .revision-history-review {
    grid-template-columns: 1fr;
  }

  .revision-history-list {
    border-right: 0;
    border-bottom: 1px solid var(--money-line);
  }

  .revision-history-content-header {
    display: grid;
  }

  .revision-history-content-meta {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Tiptap Simple Editor is kept as an isolated Razor-page editor island. */
.docs-editor.uses-tiptap-editor .docs-editor-ai {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.docs-editor.uses-tiptap-editor .docs-editor-ai-header,
.docs-editor.uses-tiptap-editor .docs-editor-ai-header > div,
.docs-editor.uses-tiptap-editor .docs-editor-ai-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-editor.uses-tiptap-editor .docs-editor-ai-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.docs-editor.uses-tiptap-editor .docs-editor-ai-header .hint-copy {
  display: none;
}

.docs-editor.uses-tiptap-editor .docs-editor-ai-result[hidden] {
  display: none;
}

.docs-editor.uses-tiptap-editor .docs-editor-ai-result {
  display: block;
  flex-basis: 100%;
}

.admin-layout .docs-editor.uses-tiptap-editor .docs-editor-layout {
  grid-template-columns: minmax(0, 1fr);
}

.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .docs-editor-layout {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  gap: 0;
  align-items: stretch;
  overflow: clip;
  border: 1px solid var(--money-line);
  /* The admin reset removes radii from descendants; this is the shared outer frame. */
  border-radius: 12px !important;
  background: #fff;
}

/* The editor and review area intentionally read as one shared workspace. */
.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .editor-comments-panel {
  align-self: stretch;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 100%;
  border: 0;
  border-left: 1px solid var(--money-line);
  border-radius: 0 !important;
  padding: 0 0 14px;
}

.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .review-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 49px;
  min-height: 49px;
  padding: 0 16px;
  margin: 0 0 12px;
  background: #fafbfc;
}

.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .editor-comments-panel > form,
.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .editor-comments-panel > .comment-list,
.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .editor-comments-panel > .empty-state {
  margin-inline: 16px;
}

.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .tiptap-simple-editor {
  border: 0;
  border-radius: 0 !important;
}

.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .tiptap-simple-toolbar {
  border-radius: 0 !important;
}

.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .editor-comments-panel .panel-toggle {
  display: none;
}

.tiptap-simple-editor {
  overflow: clip;
  isolation: isolate;
  min-height: 520px;
  border: 1px solid var(--money-line);
  border-radius: 12px !important;
  background-clip: padding-box;
  background: #fff;
}

.tiptap-simple-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 5px 8px;
  overflow-x: auto;
  border-top-left-radius: 11px !important;
  border-top-right-radius: 11px !important;
  border-bottom: 1px solid var(--money-line);
  background: #fafbfc;
}

/* Keep the main and contextual formatting actions together while editing. */
.admin-layout .docs-editor.uses-tiptap-editor .tiptap-toolbar-stack {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fafbfc;
}

.admin-layout .docs-editor.uses-tiptap-editor .tiptap-toolbar-stack > :not(.tiptap-simple-toolbar) {
  border-radius: 0 !important;
}

.tiptap-table-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 42px;
  padding: 5px 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--money-line);
  background: #f2f5f6;
}

.tiptap-table-toolbar[hidden] {
  display: none;
}

.tiptap-code-block-toolbar[hidden] {
  display: none;
}

.tiptap-image-toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 54px;
  padding: 6px 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--money-line);
  background: #f2f5f6;
}

.tiptap-image-toolbar[hidden] {
  display: none;
}

.tiptap-image-toolbar-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding-right: 4px;
  color: var(--money-ink);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.tiptap-image-toolbar-title svg {
  width: 16px;
  height: 16px;
}

.tiptap-image-control {
  display: grid;
  gap: 3px;
  min-width: 94px;
  color: #536877;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tiptap-image-control:has(input[name="alt"]) {
  min-width: 196px;
}

.tiptap-image-control input {
  width: 100%;
  min-height: 29px;
  padding: 4px 7px;
  border: 1px solid #ccd7dc;
  border-radius: 5px;
  color: var(--money-ink);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.tiptap-image-alignment {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d7e0e4;
  border-radius: 6px;
  background: #fff;
}

.tiptap-image-alignment .tiptap-simple-button.is-active {
  color: var(--money-green);
  background: #e8f4e9;
}

.tiptap-image-alignment .is-mirrored svg {
  transform: scaleX(-1);
}

.tiptap-image-popover {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid #cad6db;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 36, 54, 0.18);
}

.tiptap-image-popover[hidden] {
  display: none;
}

.tiptap-image-popover .is-mirrored svg {
  transform: scaleX(-1);
}

.tiptap-table-context-menu {
  position: fixed;
  z-index: 1400;
  display: grid;
  min-width: 212px;
  padding: 5px;
  border: 1px solid #d7e0e4;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 47, 62, 0.2);
}

.tiptap-table-context-menu[hidden] {
  display: none;
}

.tiptap-table-context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  color: var(--money-ink);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

.tiptap-table-context-menu button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.tiptap-table-context-menu button:hover,
.tiptap-table-context-menu button:focus-visible {
  outline: 0;
  background: #e9eff0;
}

.tiptap-table-row-resize-handle {
  position: absolute;
  z-index: 8;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #b8c8ce;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 36, 54, 0.14);
  cursor: row-resize;
}

.tiptap-table-row-resize-handle::after {
  color: var(--money-green-dark);
  content: "↕";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.tiptap-table-row-resize-handle[hidden] {
  display: none;
}

body.is-resizing-table-row,
body.is-resizing-table-row * {
  cursor: row-resize !important;
  user-select: none;
}

.tiptap-table-toolbar-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-right: 4px;
  color: var(--money-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.tiptap-table-toolbar-title svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.tiptap-table-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #596b75;
  font-size: 0.72rem;
  font-weight: 600;
}

.tiptap-table-control select {
  height: 28px;
  max-width: 108px;
  padding: 0 22px 0 7px;
  border: 1px solid #d7e0e4;
  border-radius: 5px;
  color: var(--money-ink);
  background: #fff;
  font: inherit;
  font-size: 0.74rem;
}

.tiptap-code-height-control input {
  width: 104px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid #d7e0e4;
  border-radius: 5px;
  color: var(--money-ink);
  background: #fff;
  font: inherit;
  font-size: 0.74rem;
}

.tiptap-simple-button,
.tiptap-simple-heading,
.tiptap-simple-code-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  color: #4c5968;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.tiptap-simple-heading {
  width: 108px;
  justify-content: flex-start;
  border: 1px solid transparent;
}

.tiptap-simple-code-language {
  width: 112px;
  justify-content: flex-start;
  border: 1px solid #d7e0e4;
  background: #fff;
  font-size: 0.78rem;
}

.tiptap-simple-button:hover,
.tiptap-simple-button:focus-visible,
.tiptap-simple-heading:hover,
.tiptap-simple-heading:focus-visible,
.tiptap-simple-code-language:hover,
.tiptap-simple-code-language:focus-visible {
  outline: 0;
  color: var(--money-ink);
  background: #eef2f4;
}

.tiptap-simple-toolbar .tiptap-simple-button.is-active,
.tiptap-simple-heading.is-active {
  color: var(--money-green-dark);
  background: #dcefe2;
  box-shadow: inset 0 0 0 1px #a3cbb0, inset 0 2px 3px rgba(16, 47, 62, 0.12);
}

.tiptap-simple-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.tiptap-simple-color-picker {
  position: fixed;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 47, 62, 0.16);
}

.tiptap-simple-color-picker[hidden] {
  display: none;
}

.tiptap-simple-color-swatch {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--swatch-color, #81919a) 55%, #fff);
  border-radius: 50%;
  background: var(--swatch-color, transparent);
  cursor: pointer;
}

.tiptap-simple-color-swatch:hover,
.tiptap-simple-color-swatch:focus-visible {
  outline: 2px solid #7f97a3;
  outline-offset: 2px;
}

.tiptap-simple-color-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #aab7bd;
  background: #fff;
  color: #65747d;
}

.tiptap-simple-color-clear svg {
  width: 15px;
  height: 15px;
}

.tiptap-simple-link-popover {
  position: fixed;
  z-index: 1200;
  min-width: min(452px, calc(100vw - 16px));
  padding: 5px 7px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 47, 62, 0.16);
}

.tiptap-simple-link-popover[hidden] {
  display: none;
}

.tiptap-simple-link-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--money-ink);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
}

.tiptap-simple-link-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tiptap-simple-link-target {
  flex: 0 0 164px;
  width: 164px;
  max-width: 164px;
  min-height: 30px;
  padding: 0 22px 0 7px;
  border: 0;
  border-left: 1px solid #e3e8ea;
  color: #536873;
  background-color: transparent;
  font: inherit;
  font-size: 0.76rem;
}

.tiptap-simple-link-target:focus-visible {
  outline: 2px solid #00b531;
  outline-offset: -2px;
}

.tiptap-simple-link-suggestions {
  display: grid;
  gap: 2px;
  max-height: 204px;
  margin-top: 5px;
  padding-top: 5px;
  overflow-y: auto;
  border-top: 1px solid #e3e8ea;
}

.tiptap-simple-link-suggestion {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 5px;
  color: var(--money-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tiptap-simple-link-suggestion:hover,
.tiptap-simple-link-suggestion:focus-visible {
  background: #eef5f0;
  outline: 0;
}

.tiptap-simple-link-suggestion strong {
  font-size: 0.82rem;
}

.tiptap-simple-link-suggestion span {
  overflow: hidden;
  color: #65747d;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiptap-simple-link-input::placeholder {
  color: #91a0a8;
}

.tiptap-simple-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-left: 1px solid #e3e8ea;
  color: #687a84;
  background: transparent;
  cursor: pointer;
}

.tiptap-simple-link-action:hover,
.tiptap-simple-link-action:focus-visible {
  color: var(--money-ink);
  background: #f2f5f6;
  outline: 0;
}

.tiptap-simple-link-action svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.tiptap-simple-tooltip {
  position: fixed;
  z-index: 1300;
  max-width: 220px;
  padding: 6px 9px;
  border-radius: 6px;
  color: #fff;
  background: #203b48;
  box-shadow: 0 6px 16px rgba(16, 47, 62, 0.22);
  font-size: 0.74rem;
  line-height: 1.2;
  pointer-events: none;
  transform: translateX(-50%);
}

.tiptap-simple-tooltip[hidden] {
  display: none;
}

.tiptap-simple-content :not(pre) > code {
  padding: 1px 4px;
  border: 1px solid #dfe6e9;
  border-radius: 4px;
  color: #9e3860;
  background: #f5f7f8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
}

.tiptap-simple-content pre {
  min-height: 84px;
  margin: 14px 0;
  padding: 14px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  color: #233d49;
  background: #f1f4f5;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.tiptap-simple-content pre[data-code-width] {
  width: var(--docs-code-width);
  max-width: 100%;
}

.tiptap-simple-content pre[data-code-height] {
  height: var(--docs-code-height);
  overflow-x: hidden;
  overflow-y: auto;
}

.tiptap-simple-content pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.tiptap-code-copy-button {
  position: absolute;
  z-index: 4;
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #d5dfe3;
  border-radius: 6px;
  color: #58707d;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.tiptap-code-copy-button[hidden] {
  display: none;
}

.tiptap-code-copy-button:hover,
.tiptap-code-copy-button:focus-visible,
.tiptap-code-copy-button.is-copied {
  outline: 0;
  border-color: #8bbd9d;
  color: var(--money-green);
  background: #fff;
}

.tiptap-code-copy-button svg {
  width: 15px;
  height: 15px;
}

.tiptap-simple-content pre .hljs-tag,
.tiptap-simple-content pre .hljs-name,
.tiptap-simple-content pre .hljs-selector-tag,
.tiptap-simple-content pre .hljs-title {
  color: #a62c5c;
}

.tiptap-simple-content pre .hljs-attr,
.tiptap-simple-content pre .hljs-attribute,
.tiptap-simple-content pre .hljs-property {
  color: #955b00;
}

.tiptap-simple-content pre .hljs-string,
.tiptap-simple-content pre .hljs-number,
.tiptap-simple-content pre .hljs-literal {
  color: #087b5d;
}

.tiptap-simple-content pre .hljs-keyword,
.tiptap-simple-content pre .hljs-built_in,
.tiptap-simple-content pre .hljs-type {
  color: #5c4ca2;
}

.tiptap-simple-content pre .hljs-comment {
  color: #7a8990;
}

.tiptap-simple-content [data-docs-anchor] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  margin: 0 3px;
  padding: 0 6px;
  border: 1px dashed #8fa3ad;
  border-radius: 5px;
  color: #516674;
  background: #f4f7f8;
  font-size: 0.74rem;
  font-family: "Source Sans 3", sans-serif;
  vertical-align: middle;
}

.tiptap-simple-content [data-docs-anchor]::before {
  content: "\2693";
}

.tiptap-simple-content [data-docs-anchor]::after {
  content: attr(id);
}

.tiptap-simple-divider {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: #e1e6e9;
}

.tiptap-simple-content {
  position: relative;
  min-height: 474px;
  padding: 26px;
  color: var(--money-ink);
  font: inherit;
}

.tiptap-simple-content .ProseMirror {
  min-height: 420px;
  outline: 0;
}

.tiptap-simple-content .ProseMirror > :first-child { margin-top: 0; }
.tiptap-simple-content .ProseMirror h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.tiptap-simple-content .ProseMirror h2 {
  margin-top: 1.75em;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.tiptap-simple-content .ProseMirror h3 {
  margin-top: 1.4em;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.tiptap-simple-content .ProseMirror p { line-height: 1.65; }
.tiptap-simple-content .ProseMirror ul,
.tiptap-simple-content .ProseMirror ol {
  margin-block: 0.65rem;
  padding-left: 1.5rem;
}

.tiptap-simple-content .ProseMirror li {
  margin: 0;
  line-height: 1.65;
}

.tiptap-simple-content .ProseMirror li > p {
  margin-block: 0;
}

.tiptap-simple-content .ProseMirror li > ul,
.tiptap-simple-content .ProseMirror li > ol {
  margin-block: 0.25rem;
}

.tiptap-simple-content .ProseMirror [data-resize-container] {
  max-width: 100%;
  margin: 14px 0;
}

.tiptap-simple-content .ProseMirror [data-resize-container]:has(img[data-image-alignment="center"]) {
  justify-content: center;
}

.tiptap-simple-content .ProseMirror [data-resize-container]:has(img[data-image-alignment="right"]) {
  justify-content: flex-end;
}

.tiptap-simple-content .ProseMirror [data-resize-container]:has(img[data-image-wrap="left"]),
.tiptap-simple-content .ProseMirror [data-resize-container]:has(img[data-image-wrap="right"]) {
  display: flex !important;
  max-width: min(55%, 520px);
}

.tiptap-simple-content .ProseMirror [data-resize-container]:has(img[data-image-wrap="left"]) {
  float: left;
  margin: 8px 18px 10px 0;
}

.tiptap-simple-content .ProseMirror [data-resize-container]:has(img[data-image-wrap="right"]) {
  float: right;
  margin: 8px 0 10px 18px;
}

.tiptap-simple-content .ProseMirror [data-resize-wrapper] {
  max-width: 100%;
}

.tiptap-simple-content .ProseMirror img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tiptap-simple-content .ProseMirror .docs-editor-video {
  display: block;
  width: min(100%, 860px);
  max-width: 100%;
  min-height: 220px;
  margin: 16px auto;
  border: 1px solid var(--money-line);
  border-radius: 8px;
  background: #101b20;
}

.tiptap-simple-content .ProseMirror .tiptap-video-nodeview {
  position: relative;
  max-width: 100%;
  margin-top: 16px;
  margin-bottom: 16px;
}

.tiptap-simple-content .ProseMirror .tiptap-video-nodeview .docs-editor-video {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.tiptap-video-edit-handle {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 7px;
  background: rgb(7 19 26 / 78%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease;
}

.tiptap-video-edit-handle svg {
  width: 15px;
  height: 15px;
}

.tiptap-video-nodeview:hover .tiptap-video-edit-handle,
.tiptap-video-nodeview:focus-within .tiptap-video-edit-handle,
.ProseMirror-selectednode.tiptap-video-nodeview .tiptap-video-edit-handle {
  opacity: 1;
}

.tiptap-simple-content .ProseMirror .docs-editor-video-youtube {
  aspect-ratio: 16 / 9;
  height: auto;
}

.tiptap-simple-content .ProseMirror .docs-editor-video[data-video-alignment="left"] {
  margin-left: 0;
  margin-right: auto;
}

.tiptap-simple-content .ProseMirror .docs-editor-video[data-video-alignment="center"] {
  margin-left: auto;
  margin-right: auto;
}

.tiptap-simple-content .ProseMirror .docs-editor-video[data-video-alignment="right"] {
  margin-left: auto;
  margin-right: 0;
}

.tiptap-simple-content .ProseMirror .docs-editor-callout {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 9px;
}

.tiptap-simple-content .ProseMirror .docs-editor-callout > p {
  margin-block: 0;
}

.tiptap-simple-content .ProseMirror .docs-editor-callout > p + p {
  margin-block-start: 1em;
}

.tiptap-simple-content .ProseMirror .docs-editor-callout > :first-child { margin-top: 0; }
.tiptap-simple-content .ProseMirror .docs-editor-callout > :last-child,
.tiptap-simple-content .ProseMirror .docs-editor-callout :last-child { margin-block-end: 0; }

.tiptap-callout-picker {
  position: fixed;
  z-index: 1200;
  display: grid;
  width: 216px;
  padding: 6px;
  border: 1px solid var(--money-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 47, 62, 0.16);
}

.tiptap-callout-picker[hidden] { display: none; }

.tiptap-callout-option {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.tiptap-callout-option strong { font-size: 0.8rem; }
.tiptap-callout-option span { font-size: 0.72rem; opacity: 0.78; }
.tiptap-callout-option:hover,
.tiptap-callout-option:focus-visible { outline: 0; filter: brightness(0.97); }

.tiptap-video-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--money-line);
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(7, 31, 43, 0.28);
}

.tiptap-image-dialog {
  width: min(1440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.tiptap-video-dialog::backdrop {
  background: rgba(7, 19, 26, 0.52);
}

.tiptap-video-dialog-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.tiptap-image-dialog .tiptap-video-dialog-form {
  max-height: calc(100vh - 72px);
}

.tiptap-image-dialog .tiptap-video-dialog-header {
  cursor: move;
  user-select: none;
}

.tiptap-video-dialog-header,
.tiptap-video-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tiptap-video-dialog-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.tiptap-video-dialog-header [data-video-close],
.tiptap-video-dialog-header [data-image-close] {
  width: 28px;
  height: 28px;
  padding: 0;
  color: #65747d;
  font-size: 1rem;
}

.tiptap-image-source-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--money-line);
  border-radius: 8px;
}

.tiptap-image-source-tabs button {
  min-height: 36px;
  padding: 7px 10px;
  color: #586a73;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  border: 0;
  border-right: 1px solid var(--money-line);
  background: #fff;
  cursor: pointer;
}

.tiptap-image-source-tabs button:last-child {
  border-right: 0;
}

.tiptap-image-source-tabs button:hover,
.tiptap-image-source-tabs button:focus-visible {
  outline: 0;
  background: #f5f8f8;
}

.tiptap-image-source-tabs button.is-active {
  color: #0b6b39;
  background: #eaf7ee;
}

.tiptap-image-dialog [data-image-source-panel="upload"] > .tiptap-video-help {
  margin: 6px 0 12px;
}

.tiptap-image-dialog [data-image-source-panel="upload"] > .tiptap-video-help:last-child {
  margin-bottom: 0;
}

.tiptap-image-dialog [data-image-source-panel="upload"] > .tiptap-video-separator {
  margin: 0 0 12px;
}

.tiptap-image-dialog [data-image-source-panel="gallery"] > .tiptap-video-help {
  margin: 8px 0 0;
}

.tiptap-image-dropzone {
  display: grid;
  min-height: 130px;
  place-content: center;
  gap: 7px;
  width: 100%;
  border: 1px dashed #aebbc1;
  border-radius: 6px;
  background: #f8fafb;
  color: var(--money-ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.tiptap-image-dropzone span {
  color: var(--money-muted);
  font-size: 0.9rem;
}

.tiptap-image-dropzone:hover,
.tiptap-image-dropzone.is-dragging {
  border-color: var(--money-green-dark);
  background: #f1f8f0;
}

.tiptap-image-file-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin: 6px 0 12px;
  color: #63727b;
  font-size: 0.78rem;
}

.tiptap-image-file-entry {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  padding: 2px 5px 2px 7px;
  border: 1px solid #cbdad1;
  border-radius: 4px;
  color: var(--money-ink);
  background: #edf8f0;
  font-size: 0.92rem;
  font-weight: 700;
}

.tiptap-image-file-entry > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiptap-image-file-empty {
  color: #63727b;
}

.tiptap-image-file-clear {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 4px;
  color: #697981;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.tiptap-image-file-clear:hover,
.tiptap-image-file-clear:focus-visible {
  color: #a21818;
  background: #fff0f0;
  outline: 0;
}

.tiptap-image-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-height: 180px;
  max-height: min(500px, calc(100vh - 320px));
  padding: 3px;
  overflow-y: auto;
}

.tiptap-image-gallery.is-dragging {
  outline: 2px dashed var(--money-green-dark);
  outline-offset: -2px;
  background: #f1f8f0;
}

.tiptap-image-gallery.is-uploading {
  cursor: progress;
  opacity: 0.7;
}

.tiptap-image-gallery-item {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  color: #5d6d75;
  font: inherit;
  font-size: 0.72rem;
  text-align: left;
  border: 1px solid #d6e0e3;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.tiptap-image-gallery-item img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  background: #f2f5f6;
}

.tiptap-image-gallery-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tiptap-image-gallery-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiptap-image-gallery-date {
  color: #63727b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tiptap-image-gallery-item:hover,
.tiptap-image-gallery-item:focus-visible,
.tiptap-image-gallery-item.is-selected {
  outline: 0;
  border-color: var(--money-green);
  box-shadow: 0 0 0 2px rgba(26, 160, 82, 0.15);
}

.tiptap-image-gallery-more {
  min-height: 34px;
  padding: 0 12px;
  color: var(--money-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  border: 1px solid #cbd5d9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.tiptap-image-gallery-more:hover,
.tiptap-image-gallery-more:focus-visible {
  border-color: #8c9ca4;
  outline: 0;
}

@media (max-width: 700px) {
  .tiptap-image-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: min(440px, calc(100vh - 310px));
  }

  .tiptap-image-gallery-item img {
    height: 100px;
  }
}

.tiptap-video-label {
  display: grid;
  gap: 6px;
  color: var(--money-ink);
  font-size: 0.84rem;
  font-weight: 650;
}

.tiptap-video-label input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--money-line);
  border-radius: 7px;
  font: inherit;
}

.tiptap-video-help,
.tiptap-video-error {
  margin: -7px 0 0;
  color: #63727b;
  font-size: 0.78rem;
}

.tiptap-video-error {
  color: #b33d43;
}

.tiptap-video-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #7a8990;
  font-size: 0.78rem;
}

.tiptap-video-separator::before,
.tiptap-video-separator::after {
  height: 1px;
  content: "";
  background: var(--money-line);
}

.tiptap-video-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.tiptap-video-actions .button {
  min-height: 38px;
  padding: 0 15px;
  color: var(--money-ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  border: 1px solid #cbd5d9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.tiptap-video-actions .button:hover,
.tiptap-video-actions .button:focus-visible {
  border-color: #8c9ca4;
  outline: 0;
}

.tiptap-video-actions .button-primary {
  color: #fff;
  border-color: var(--money-green);
  background: var(--money-green);
}

.tiptap-video-actions .button-primary:hover,
.tiptap-video-actions .button-primary:focus-visible {
  color: #fff;
  border-color: #0f6d38;
  background: #0f6d38;
}

.tiptap-simple-content .ProseMirror [data-resize-handle] {
  z-index: 3;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid #147a43;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 36, 54, 0.22);
}

.tiptap-simple-content .ProseMirror [data-resize-handle="top-left"] {
  cursor: nwse-resize;
  transform: translate(-50%, -50%);
}

.tiptap-simple-content .ProseMirror [data-resize-handle="bottom-right"] {
  cursor: nwse-resize;
  transform: translate(50%, 50%);
}

.tiptap-simple-content .ProseMirror [data-resize-handle="top-right"] {
  cursor: nesw-resize;
  transform: translate(50%, -50%);
}

.tiptap-simple-content .ProseMirror [data-resize-handle="bottom-left"] {
  cursor: nesw-resize;
  transform: translate(-50%, 50%);
}
.tiptap-simple-content .tableWrapper { overflow-x: auto; }
.tiptap-simple-content .ProseMirror table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
}
.tiptap-simple-content .ProseMirror th,
.tiptap-simple-content .ProseMirror td {
  position: relative;
  min-width: 72px;
  padding: 8px;
  vertical-align: top;
  border: 1px solid var(--money-line);
  box-sizing: border-box;
}

/* Paragraph margins must not define the minimum height of an editable table row. */
.tiptap-simple-content .ProseMirror th > p,
.tiptap-simple-content .ProseMirror td > p {
  margin: 0;
}

.tiptap-simple-content .ProseMirror th { background: #f2f5f6; }
.tiptap-simple-content .ProseMirror tr[data-row-height] > th,
.tiptap-simple-content .ProseMirror tr[data-row-height] > td {
  height: var(--docs-table-row-height);
  min-height: var(--docs-table-row-height);
  box-sizing: border-box;
}

.tiptap-simple-content .ProseMirror tr[data-row-height] {
  height: var(--docs-table-row-height);
}
.tiptap-simple-content .ProseMirror .selectedCell::after { background: rgba(20, 122, 67, 0.12); }
.tiptap-simple-content .ProseMirror.resize-cursor { cursor: col-resize; }
.tiptap-simple-content .ProseMirror .column-resize-handle { position: absolute; top: 0; right: -2px; bottom: -1px; width: 4px; background: rgba(20, 122, 67, 0.48); pointer-events: none; }
.tiptap-simple-content .ProseMirror a { color: var(--money-green); text-decoration: underline; }

/* Keep the article editor compact; it is a work surface, not a card dashboard. */
.admin-layout .admin-edit-section input,
.admin-layout .admin-edit-section select,
.admin-layout .admin-edit-section textarea,
.admin-layout .admin-edit-section .btn-primary,
.admin-layout .admin-edit-section .btn-secondary,
.admin-layout .admin-edit-section .panel-toggle {
  border-radius: 6px !important;
}

.admin-layout .admin-edit-section .docs-editor-raw,
.admin-layout .admin-edit-section .docs-editor-ai,
.admin-layout .admin-edit-section .editor-actions-sticky,
.admin-layout .admin-edit-section .workflow-history-panel,
.admin-layout .admin-edit-section .revision-history-panel,
.admin-layout .admin-edit-section .workflow-card,
.admin-layout .admin-edit-section .workflow-version-detail,
.admin-layout .docs-editor.uses-tiptap-editor,
.admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .docs-editor-layout,
.admin-layout .docs-editor.uses-tiptap-editor .editor-comments-panel {
  border-radius: 8px !important;
}

.admin-layout .docs-editor.uses-tiptap-editor .tiptap-simple-editor,
.admin-layout .docs-editor.uses-tiptap-editor .tiptap-simple-toolbar {
  border-radius: 0 !important;
}

.admin-layout .admin-edit-section .editor-source-dialog,
.admin-layout .admin-edit-section .editor-image-dialog,
.admin-layout .admin-edit-section .ai-proposal-dialog,
.admin-layout .admin-edit-section .tiptap-simple-link-popover,
.admin-layout .admin-edit-section .tiptap-simple-color-picker {
  border-radius: 8px !important;
}

/* Shared administration panels and filters use the same compact radius. */
.admin-layout .admin-panel,
.admin-layout .admin-pages-filters,
.admin-layout .admin-profile-section,
.admin-layout .admin-form-success,
.admin-layout .ops-health-item,
.admin-layout .api-reference-item {
  border-radius: 8px !important;
}

.admin-layout .admin-pages-filters input,
.admin-layout .admin-pages-filters select,
.admin-layout .admin-profile-form input,
.admin-layout .admin-profile-form select,
.admin-layout .admin-profile-form textarea,
.admin-layout .admin-settings-fields input,
.admin-layout .admin-settings-fields select,
.admin-layout .admin-settings-fields textarea,
.admin-layout .admin-developer-form input,
.admin-layout .admin-developer-form select,
.admin-layout .admin-developer-form textarea {
  border-radius: 6px !important;
}

/* Apply the compact shape consistently to every standard admin surface. */
body.admin-page .admin-main [class*="-panel"],
body.admin-page .admin-main [class*="-card"],
body.admin-page .admin-main [class*="-dialog"],
body.admin-page .admin-main [class*="-filters"],
body.admin-page .admin-main [class*="-toolbar"],
body.admin-page .admin-main [class*="-menu"],
body.admin-page .admin-main [class*="-popover"],
body.admin-page .admin-main [class*="-result"],
body.admin-page .admin-main [class*="-success"],
body.admin-page .admin-main details,
body.admin-page .admin-main dialog {
  border-radius: 8px !important;
}

body.admin-page .admin-main :is(button, input, select, textarea, .badge-soft, .admin-grid-icon) {
  border-radius: 6px !important;
}

/* Public documentation uses the same compact control geometry as the admin. */
body.public-page :is(button, input, select, textarea, .btn-primary, .btn-secondary, .topbar-search-toggle, .topbar-settings-toggle, .topbar-account-toggle, .topbar-settings-item, .topbar-menu-item, .docs-ask-menu-toggle) {
  border-radius: 6px !important;
}

body.public-page .docs-ask-actions > .docs-ask-open-panel {
  border: 0 !important;
  border-radius: 6px 0 0 6px !important;
  background: transparent;
}

body.public-page .docs-ask-actions > .docs-ask-open-panel + .docs-article-ask-menu > .docs-ask-menu-more {
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 6px 6px 0 !important;
  background: transparent;
  box-shadow: inset .75px 0 0 var(--money-line);
}

body.public-page .docs-ask-actions > .docs-ask-open-panel:is(:hover, :focus-visible),
body.public-page .docs-ask-actions > .docs-ask-open-panel + .docs-article-ask-menu > .docs-ask-menu-more:is(:hover, :focus-visible) {
  background: var(--money-panel-alt);
  color: var(--money-ink);
  outline: none;
}

body.public-page :is(
  .topbar-search-form,
  .topbar-settings-panel,
  .topbar-account-panel,
  .docs-ask-menu-panel,
  .docs-sidebar-footer,
  .docs-article-navigation a,
  .docs-search-panel,
  .search-result-card,
  .docs-chat-citation,
  .docs-chat-window,
  .docs-callout
) {
  border-radius: 8px !important;
}

/* Rich-content elements keep the same shape even when imported HTML omits helper classes. */
[data-docs-callout],
.docs-article pre,
.docs-preview-body pre,
.tiptap-simple-content .ProseMirror pre {
  border-radius: 8px !important;
}

.developer-article-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; margin-top: 12px; }
.developer-article-kind > div { min-width: 0; }
.developer-article-kind label,
.developer-article-kind select { width: 100%; }
.developer-reference-index, .developer-reference-detail { margin-top: 28px; border-top: 1px solid var(--money-line); padding-top: 16px; }
.developer-reference-index { position: relative; }
.developer-reference-index input { width: 100%; height: 36px; min-height: 0; margin: 6px 0 10px; padding: 7px 12px; font-size: .94rem; line-height: 1.35; }
.developer-reference-index input:focus { border-color: var(--money-green); box-shadow: none; }
.developer-reference-index-head, [data-developer-reference-row] { display: grid; grid-template-columns: minmax(0, .9fr) minmax(285px, .8fr); gap: 16px; padding: 6px 12px; }
.developer-reference-index-head { background: var(--money-surface-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
[data-developer-reference-row] { color: inherit; font-size: .94rem; line-height: 1.45; text-decoration: none; border-bottom: 1px solid var(--money-line); }
[data-developer-reference-row] > :nth-child(2) { white-space: nowrap; }

/* Public dark theme. The selected mode is applied before first paint in the layout. */
:root[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
  opacity: .94;
}

:root[data-theme="dark"] body.public-page .docs-ask-menu-brand-icon {
  filter: brightness(0) invert(1);
  opacity: .72;
}

:root[data-theme="dark"] .topbar {
  border-bottom-color: var(--money-line);
}

:root[data-theme="dark"] body.public-page :is(
  .topbar-search-form,
  .topbar-search-submit,
  .topbar-search-toggle,
  .topbar-settings-toggle,
  .topbar-account-toggle,
  .topbar-settings-panel,
  .topbar-account-panel,
  .docs-sidebar-footer,
  .docs-sidebar-scroll-more,
  .docs-ask-menu-toggle,
  .docs-ask-menu-panel,
  .btn-secondary,
  .login-panel,
  .login-modal-dialog,
  .docs-search-panel,
  .docs-article-navigation a,
  .docs-reference-request-panel,
  .docs-graphql-try-dialog,
  .docs-graphql-token-form-panel,
  input,
  select,
  textarea
) {
  background: var(--money-panel);
}

:root[data-theme="dark"] body.public-page .docs-sidebar-scroll-fade {
  background: linear-gradient(to bottom, transparent, var(--money-bg) 64%);
}

:root[data-theme="dark"] body.public-page .docs-nav-root:hover,
:root[data-theme="dark"] body.public-page .docs-nav-subitem:hover {
  background: var(--money-panel-alt);
}

:root[data-theme="dark"] body.public-page .docs-nav-subitem:hover {
  box-shadow: -10px 0 0 var(--money-panel-alt);
}

:root[data-theme="dark"] body.public-page .docs-article :not(pre) > code,
:root[data-theme="dark"] body.public-page .docs-article pre,
:root[data-theme="dark"] body.public-page .graphql-example pre,
:root[data-theme="dark"] body.public-page .docs-article th {
  border-color: var(--money-line);
  background: var(--money-code-bg);
  color: var(--money-code-ink);
}

:root[data-theme="dark"] body.public-page .docs-callout-info {
  border-color: #315f78;
  background: #102b39;
  color: #b9dff2;
}

:root[data-theme="dark"] body.public-page .docs-callout-success {
  border-color: #356b46;
  background: #112f1d;
  color: #bde6c8;
}

:root[data-theme="dark"] body.public-page .docs-callout-warning {
  border-color: #766128;
  background: #332b12;
  color: #f0d98b;
}

:root[data-theme="dark"] body.public-page .docs-callout-danger {
  border-color: #744047;
  background: #35191d;
  color: #f2c1c5;
}

:root[data-theme="dark"] body.public-page :is(.graphql-overview-grid a:hover, .graphql-reference-list a:hover) {
  background: var(--money-panel-alt);
}
[data-developer-reference-row]:hover { background: #e9eff0; }
.developer-reference-scroll { max-height: 370px; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.developer-reference-scroll::-webkit-scrollbar { width: 7px; }
.developer-reference-scroll::-webkit-scrollbar-thumb { background: transparent; }
.developer-reference-index:hover .developer-reference-scroll,
.developer-reference-index:focus-within .developer-reference-scroll { scrollbar-color: rgba(80, 98, 113, .52) transparent; }
.developer-reference-index:hover .developer-reference-scroll::-webkit-scrollbar-thumb,
.developer-reference-index:focus-within .developer-reference-scroll::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(80, 98, 113, .52); }
.developer-reference-index::after { position: absolute; right: 7px; bottom: 0; left: 0; height: 56px; pointer-events: none; content: ""; opacity: 0; background: linear-gradient(to bottom, transparent, var(--money-bg) 72%); transition: opacity 140ms ease; }
.developer-reference-index.has-more-below::after { opacity: 1; }
.developer-reference-expand { position: absolute; bottom: 8px; left: 50%; z-index: 1; display: none; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--money-muted); font: inherit; font-size: 0; line-height: 1; transform: translateX(-50%); }
.developer-reference-expand::after { content: "↓"; font-size: .95rem; }
.developer-reference-expand > span { display: none; }
.developer-reference-index:hover .developer-reference-expand,
.developer-reference-index:focus-within .developer-reference-expand { display: inline-flex; align-items: center; justify-content: center; }
.developer-reference-expand:hover { background: transparent; color: var(--money-ink); transform: translateX(-50%); }
.developer-reference-detail details { margin: 8px 0; }
.developer-reference-fields { position: relative; margin-top: 12px; }
.developer-reference-fields h3 { margin: 0 0 6px; }
.developer-reference-fields + h3 { margin-top: 28px; }
.developer-reference-fields-scroll { max-height: 360px; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.developer-reference-fields-scroll::-webkit-scrollbar { width: 7px; }
.developer-reference-fields-scroll::-webkit-scrollbar-thumb { background: transparent; }
.developer-reference-fields:hover .developer-reference-fields-scroll,
.developer-reference-fields:focus-within .developer-reference-fields-scroll { scrollbar-color: rgba(80, 98, 113, .52) transparent; }
.developer-reference-fields:hover .developer-reference-fields-scroll::-webkit-scrollbar-thumb,
.developer-reference-fields:focus-within .developer-reference-fields-scroll::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(80, 98, 113, .52); }
.developer-reference-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; min-height: 32px; padding: 6px 10px; border-bottom: 1px solid var(--money-line); font-size: .875rem; line-height: 1.35; }
.developer-reference-field code { min-width: 0; overflow: hidden; font-size: .84rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.developer-reference-field > span { min-width: 0; overflow: hidden; color: var(--money-muted); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.developer-reference-field-extra { display: none; }
.developer-reference-fields::after { position: absolute; right: 7px; bottom: 0; left: 0; height: 52px; pointer-events: none; content: ""; opacity: 0; background: linear-gradient(to bottom, transparent, var(--money-bg) 72%); transition: opacity 140ms ease; }
.developer-reference-fields.has-more-below::after { opacity: 1; }
.developer-reference-fields-expand { position: absolute; bottom: 7px; left: 50%; z-index: 1; display: inline-flex; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--money-muted); font: inherit; font-size: 0; line-height: 1; align-items: center; justify-content: center; transform: translateX(-50%); }
.developer-reference-fields-expand[hidden] { display: none; }
.developer-reference-fields-expand::after { content: "↓"; font-size: .95rem; }
.developer-reference-fields-expand > span { display: none; }
.developer-reference-fields-expand:hover { background: transparent; color: var(--money-ink); transform: translateX(-50%); }

@media (max-width: 980px) {
  .docs-editor-ai { align-items: flex-start; flex-direction: column; }
  .docs-editor-ai-actions { flex-wrap: wrap; justify-content: flex-start; white-space: normal; }
  .docs-editor.uses-tiptap-editor .docs-editor-ai { align-items: flex-start; flex-direction: column; }
  .docs-editor.uses-tiptap-editor .docs-editor-ai-actions { justify-content: flex-start; }
  .admin-layout .docs-editor.uses-tiptap-editor .docs-editor-layout { grid-template-columns: 1fr; }
  .admin-layout .docs-editor.uses-tiptap-editor[data-editor-has-comments="true"] .editor-comments-panel {
    border-top: 1px solid var(--money-line);
    border-left: 0;
  }
}
.admin-statistics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.admin-statistics-grid section { min-width: 0; }
.admin-statistics-grid h2 { margin: 0 0 12px; font-size: 1rem; }
.admin-stat-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 34px; gap: 8px; align-items: center; min-height: 30px; border-bottom: 1px solid var(--money-line); font-size: .82rem; }
.admin-stat-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-stat-row > div { height: 6px; overflow: hidden; border-radius: 4px; background: #edf2ef; }
.admin-stat-row i { display: block; min-width: 2px; height: 100%; border-radius: inherit; background: var(--money-green); }
.admin-stat-row b { text-align: right; font-size: .78rem; }
@media (max-width: 900px) { .admin-statistics-grid { grid-template-columns: 1fr; } }
