/* Connect and Pricing: the homepage's paper, ink, and restrained color.
   Loaded after the shared styles. Interactive state and content stay in app.js. */
.home-connection-workspace { --page-polish-line: #ddd6ca; --page-polish-surface: #faf7f0; width: 100%; margin-top: 28px; }
.code-language-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); position: relative; isolation: isolate; gap: 0; padding: 3px; width: min(310px,100%); background: #e8e6dc; border-radius: 8px; }
.code-language-tabs::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px)/3); border-radius: 6px; background: #fffdf7; box-shadow: 0 3px 8px #4b433012; transform: translateX(calc(var(--language-index,0)*100%)); transition: transform 240ms cubic-bezier(.16,1,.3,1); }
.code-language-tabs button { position: relative; border: 0; border-radius: 5px; min-height: 38px; padding: 6px 10px; background: transparent; color: #746c5e; font: 550 .8rem var(--sans); cursor: pointer; }
.code-language-tabs button[aria-selected="true"] { color: #302c24; }
.code-language-tabs button:hover { color: var(--signal-strong); }
.code-toolbar:has(.code-language-tabs) { justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.code-scroll[role="tabpanel"] { min-height: 450px; transition: opacity 200ms ease, transform 240ms cubic-bezier(.16,1,.3,1); }
.code-scroll.is-code-changing { opacity: .6; transform: translateY(5px); }
@media(max-width:760px) {
  .code-language-tabs { flex: 1; min-width: 220px; }
  .code-scroll[role="tabpanel"] { min-height: 0; }
}
@media(prefers-reduced-motion:reduce) { .code-language-tabs::before { transition: none; } .code-scroll[role="tabpanel"] { transition: none; transform: none; } }
body:is([data-docs-page], [data-pricing-page]) {
  --page-polish-line: #ddd6ca;
  --page-polish-surface: #faf7f0;
  background: var(--paper);
}
body:is([data-docs-page], [data-pricing-page]) .site-footer { border-color: var(--page-polish-line); background: transparent; }
body:is([data-docs-page], [data-pricing-page]) :is(button, a, input):focus-visible { outline: 2px solid var(--signal-strong); outline-offset: 4px; }

/* Connect: keep every method in place while its setup changes. */
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .docs-connect-intro { margin: 40px auto 30px; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .docs-connect-intro h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; white-space: normal; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .docs-connect-intro > p:last-child { max-width: 62ch; font-size: 1rem; line-height: 1.6; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-workspace { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs,
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs:has([data-connection-tab][aria-selected="true"]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  transition: none;
}
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"],
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"][aria-selected] {
  min-height: 126px;
  align-content: start;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--page-polish-line);
  border-radius: 8px;
  background: transparent;
  color: #756b5f;
  box-shadow: none;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"] > .connection-method-code { margin-bottom: 3px; color: var(--green); font-size: 1.6rem; font-weight: 650; letter-spacing: -.035em; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"] strong { max-width: none; font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.35; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"] .connection-method-detail { font-size: .8rem; line-height: 1.45; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"][aria-selected="true"] { border-color: #849687; background: #e9ece2; color: var(--ink); }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"][aria-selected="true"] > .connection-method-code { color: var(--green); }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"]:hover { border-color: #849687; background: #efeee5; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"][aria-selected="true"]:hover { background: #e9ece2; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel { gap: 36px; margin-top: 24px; padding: 28px; border: 0; border-radius: 10px; background: var(--page-polish-surface); box-shadow: none; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel h2 { max-width: 17ch; margin: 10px 0 16px; font-size: clamp(1.8rem, 2.7vw, 2.5rem); line-height: 1.07; letter-spacing: -.025em; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel .metric-tag { padding: 0; border: 0; border-radius: 0; background: none; color: var(--green); font: 600 .75rem/1.4 var(--mono); }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-decision { color: #675e54; line-height: 1.65; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-steps { gap: 10px; font-size: .875rem; line-height: 1.6; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-steps li::marker { color: var(--green); font-weight: 600; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel-setup { align-content: start; gap: 14px; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-actions { gap: 8px; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-actions > * { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px; border-color: var(--page-polish-line); border-radius: 7px; background: transparent; color: var(--ink); font-size: .85rem; font-weight: 600; box-shadow: none; transition: background-color 160ms ease, border-color 160ms ease; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-actions > button:first-child { min-height: 46px; border-color: var(--ink); background: var(--ink); color: var(--surface); }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-actions > button:first-child:hover { background: #352f26; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-actions > :not(:first-child):hover { background: #eee9df; border-color: #b7ad9e; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-auth-prompt { padding: 18px 22px; border: 1px solid #b2c0b1; border-radius: 8px; background: #edf0e6; box-shadow: none; }

/* One code surface, with a separate fixed toolbar and a scrollable body. */
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-frame { border: 1px solid #e3ded2; border-radius: 8px; background: #faf8f1; box-shadow: none; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-toolbar { min-height: 48px; padding: 6px 10px; border-bottom: 1px solid #e3ded2; background: #f0ede4; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-scroll { overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #b4b7a8 #faf8f1; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-frame pre.copyable-code,
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel-setup .code-frame pre.copyable-code { margin: 0; padding: 20px; border: 0; border-radius: 0; background: transparent; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-frame code,
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel-setup .code-frame code { color: #403c33; font-family: var(--mono); font-size: .82rem; font-weight: 450; line-height: 1.8; white-space: pre; overflow-wrap: normal; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-toolbar .copy-button { min-height: 36px; padding: 7px 11px; border-color: #d4d6c9; border-radius: 5px; background: transparent; color: #5b6255; font-size: .75rem; font-weight: 550; box-shadow: none; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-toolbar .copy-button:hover { background: #e7e9de; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-scroll:focus-visible { outline-color: #8d967d; outline-offset: -3px; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .technical-details { border-color: var(--page-polish-line); }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .technical-details .t-acc-head { border-color: var(--page-polish-line); background: transparent; box-shadow: none; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .docs-guide-controls { border-color: var(--page-polish-line); border-radius: 8px; background: var(--page-polish-surface); box-shadow: none; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .docs-copy-toolbar { border-color: var(--page-polish-line); background: transparent; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .docs-copy-toolbar button { min-height: 44px; border-color: var(--page-polish-line); border-radius: 6px; box-shadow: none; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .technical-details .doc-nav { border-color: var(--page-polish-line); border-radius: 8px; background: var(--paper); }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .doc-section { border-color: var(--page-polish-line); background: transparent; box-shadow: none; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .doc-section h2 { line-height: 1.12; letter-spacing: -.02em; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .doc-callout { border: 0; border-left: 2px solid #96a78f; border-radius: 0; background: #ecefe5; }

/* Pricing: comparable columns and an unambiguous Pro recommendation. */
body[data-pricing-page] .pricing-page .pricing-hero { padding: 34px 0 22px; gap: 18px; border: 0; background: none; }
body[data-pricing-page] .pricing-page .pricing-hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
body[data-pricing-page] .pricing-page .pricing-value-strip { gap: 8px 18px; }
body[data-pricing-page] .pricing-page .pricing-value-strip span { padding: 0; border: 0; border-radius: 0; background: none; color: var(--green); font-size: .78rem; }
body[data-pricing-page] .pricing-page .pricing-catalog { gap: 44px; }
body[data-pricing-page] .pricing-page .pricing-column { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body[data-pricing-page] .pricing-page .pricing-column-heading,
body[data-pricing-page] .pricing-page .plans-heading-box { padding: 12px 0 20px; border-bottom-color: var(--page-polish-line); background: none; box-shadow: none; }
body[data-pricing-page] .pricing-page .pricing-column-heading h2 { font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; }
body[data-pricing-page] .pricing-page .monthly-plan-grid { gap: 20px; margin-top: 22px; }
body[data-pricing-page] .pricing-page .pricing-column .price-card { border: 1px solid var(--page-polish-line); border-radius: 10px; background: var(--page-polish-surface); box-shadow: none; transform: none; }
body[data-pricing-page] .pricing-page .monthly-plan-grid .price-card { min-height: 440px; padding: 24px; }
body[data-pricing-page] .pricing-page .plan-visual { display: none; }
body[data-pricing-page] .pricing-page .price-card.recommended[data-plan-id="pro"] { border-color: var(--signal); background: #fff4e9; box-shadow: inset 0 2px 0 var(--signal); }
body[data-pricing-page] .pricing-page .price-card.recommended[data-plan-id="pro"] .plan-badge { padding: 5px 8px; border-radius: 4px; background: var(--signal-strong); color: #fffdf8; font-size: .67rem; line-height: 1.2; }
body[data-pricing-page] .pricing-page .plan-name { flex-wrap: wrap; font-size: 1.25rem; font-weight: 600; }
body[data-pricing-page] .pricing-page .pricing-column .plan-price { gap: 0; margin: 12px 0; font-size: clamp(2.5rem, 3.8vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
body[data-pricing-page] .pricing-page .plan-price-meta { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; white-space: normal; }
body[data-pricing-page] .pricing-page .plan-credit-rate { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--green); font-size: .76rem; font-weight: 600; line-height: 1.45; }
body[data-pricing-page] .pricing-page .plan-save { padding: 4px 7px; border-color: #b9c7ad; border-radius: 4px; box-shadow: none; }
body[data-pricing-page] .pricing-page .plan-tagline { margin: 4px 0 18px; font-size: .86rem; line-height: 1.5; }
body[data-pricing-page] .pricing-page .pricing-column .plan-features { margin-bottom: 24px; font-size: .84rem; }
body[data-pricing-page] .pricing-page .pricing-column .plan-features li { padding-block: 9px; border-color: var(--page-polish-line); }
body[data-pricing-page] .pricing-page .monthly-plan-grid .plan-features li:first-child { gap: 5px; padding: 14px 0; margin: 0 0 6px; border: 0; border-block: 1px solid var(--page-polish-line); border-radius: 0; background: transparent; }
body[data-pricing-page] .pricing-page .monthly-plan-grid .plan-features li:first-child strong { color: var(--green); font-size: 1.55rem; }
body[data-pricing-page] .pricing-page .plan-action { min-height: 46px; border-radius: 7px; font-size: .94rem; font-weight: 600; box-shadow: none; transition: background-color 160ms ease, border-color 160ms ease; }
body[data-pricing-page] .pricing-page .price-card.recommended .plan-action { border-color: var(--signal-strong); background: var(--signal-strong); color: #fffdf8; }
body[data-pricing-page] .pricing-page .price-card.recommended .plan-action:hover { background: #a93613; }
body[data-pricing-page] .pricing-page .billing-interval-toggle { border-color: var(--page-polish-line); border-radius: 8px; background: var(--page-polish-surface); box-shadow: none; }
body[data-pricing-page] .pricing-page .billing-interval-toggle::before { border-radius: 5px; box-shadow: none; }
body[data-pricing-page] .pricing-page .billing-interval-toggle button { min-height: 44px; border-radius: 5px; font-size: .875rem; }
body[data-pricing-page] .pricing-page .credit-pack-grid { gap: 18px; margin-top: 22px; }
body[data-pricing-page] .pricing-page .pack-card { padding: 22px; }
body[data-pricing-page] .pricing-page .pack-card .plan-price { font-size: 2.3rem; }
body[data-pricing-page] .pricing-page .custom-pack-card { border-style: solid; }
body[data-pricing-page] .pricing-page .pricing-flow { padding: 20px 0; border: 0; border-top: 1px solid var(--page-polish-line); border-radius: 0; background: transparent; box-shadow: none; }
body[data-pricing-page] .pricing-page .pack-validity,
body[data-pricing-page] .pricing-page .pricing-note { color: #675e54; font-size: .85rem; line-height: 1.65; }
body[data-pricing-page] .pricing-page .pricing-info { border-color: var(--page-polish-line); border-radius: 8px; background: var(--page-polish-surface); box-shadow: none; }

@media (min-width: 940px) {
  body[data-pricing-page] .pricing-page .monthly-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel { grid-template-columns: 1fr; gap: 24px; }
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel h2 { max-width: 26ch; }
}
@media (max-width: 720px) {
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .docs-connect-intro { margin-top: 28px; }
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs,
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs:has([data-connection-tab][aria-selected="true"]) { grid-template-columns: 1fr; gap: 8px; }
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"],
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"][aria-selected] { min-height: 88px; padding: 16px 18px; gap: 5px; }
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"] > .connection-method-code { font-size: 1.3rem; }
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel { padding: 20px; }
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-actions { grid-template-columns: 1fr; }
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-frame pre.copyable-code,
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel-setup .code-frame pre.copyable-code { padding: 16px; }
  body[data-pricing-page] .pricing-page .pricing-hero { padding-top: 28px; }
  body[data-pricing-page] .pricing-page .monthly-plan-grid .price-card { min-height: 0; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-tabs [role="tab"],
  :is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel,
  body[data-pricing-page] .pricing-page .plan-action,
  body[data-pricing-page] .pricing-page .billing-interval-toggle::before { animation: none; transition: none; }
}

/* Keep examples readable at the same size as the proof text. */
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .code-frame code,
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel-setup .code-frame code {
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel { min-width: 0; }
:is(body[data-docs-page] .docs-page, .app-page .developer-setup, .home-connection-workspace) .connection-panel-copy .metric-tag { display: none; }
.home-connection-workspace .connection-tabs { margin-bottom: 16px; }
@media(max-width:720px) {
  .home-connection-workspace .connection-tabs,
  .home-connection-workspace .connection-tabs:has([data-connection-tab][aria-selected="true"]) { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .home-connection-workspace .connection-tabs [role="tab"][aria-selected] { min-height: 105px; padding: 12px 10px; }
  .home-connection-workspace .connection-method-detail { display: none; }
  .home-connection-workspace .connection-tabs [role="tab"] strong { font-size: .76rem; }
}
/* Account controls must stay in place while customers select billing options. */
html:has(.app-page) { scroll-behavior: auto; }

/* Copy affordance — docs "Copy … for AI" group buttons already get an
   inline .copy-icon via addCopyIcon(); keep their spacing aligned. */
.docs-copy-groups button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Sign-out affordance — door glyph on the account header action */
#sign-out-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#sign-out-button::before {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3H3.5A1.5 1.5 0 0 0 2 4.5v7A1.5 1.5 0 0 0 3.5 13H6M10.5 11 13.5 8l-3-3M13.5 8H6' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0.7;
}

/* API-key icon — recognition marker on the developer card */
.api-key-hero h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-key-icon {
  flex: none;
  color: var(--accent, #b6542e);
}

/* Plan expiry glance — account overview */
.plan-period-summary {
  display: block;
}

.plan-expiry-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.plan-expiry-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: color-mix(in oklab, currentColor 10%, transparent);
}

.plan-expiry-chip.is-active {
  color: #1d6b3f;
  background: color-mix(in oklab, #1d6b3f 12%, transparent);
}

.plan-expiry-chip.is-ending {
  color: #9a5b13;
  background: color-mix(in oklab, #9a5b13 14%, transparent);
}

.plan-expiry-chip.is-expired {
  color: #a3271f;
  background: color-mix(in oklab, #a3271f 12%, transparent);
}

/* Plan name row: "Pro · Monthly" — cadence rides inline after the name. */
.plan-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.plan-cadence {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #6b6353);
  white-space: nowrap;
}

.pill.is-muted {
  opacity: 0.7;
}

.job-removed-note {
  display: block;
  margin-top: 4px;
  opacity: 0.75;
}

/* Admin access-expiry controls */
.admin-expiry-field {
  border: 1px solid color-mix(in oklab, currentColor 18%, transparent);
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 0;
}

.admin-expiry-field legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 6px;
}

.admin-expiry-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-expiry-modes label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 11px;
  border: 1px solid color-mix(in oklab, currentColor 16%, transparent);
  border-radius: 999px;
  cursor: pointer;
}

.admin-expiry-modes label:has(input:checked) {
  border-color: var(--accent, #b6542e);
  background: color-mix(in oklab, var(--accent, #b6542e) 10%, transparent);
  font-weight: 600;
}

.admin-expiry-input {
  display: block;
  font-size: 13px;
}

.admin-expiry-input input {
  margin-top: 4px;
}

/* Agent install strip (copy-for-AI) — a primary product surface, sized so the
   one-liner actually reads at a glance instead of hiding as fine print. */
.agent-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 20px auto 0;
  padding: 12px 18px;
  border: 1px solid color-mix(in oklab, var(--ink, #1a1a1a) 14%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--paper, #fff) 70%, transparent);
  font-size: 14.5px;
  line-height: 1.4;
  text-align: center;
}

.agent-install-spark {
  display: inline-flex;
  color: var(--accent, #4f46e5);
  flex: none;
}

/* Keep icon + copy + button on ONE row: basis 0 defeats flex-wrap's
   base-size line breaking, nowrap+ellipsis guarantees a single line even on
   narrow widths (the 560px breakpoint then stacks deliberately). */
.agent-install-text {
  flex: 1 1 0;
  min-width: 0;
  color: var(--muted, #555);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-install-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: color-mix(in oklab, currentColor 8%, transparent);
}

.agent-install-button {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: var(--ink, #1a1a1a);
  transition: opacity 150ms ease, transform 150ms ease;
}

.agent-install-button:hover {
  opacity: 0.88;
}

.agent-install-button:active {
  transform: translateY(1px);
}

.agent-install-status {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted, #555);
  min-height: 0;
}

.agent-install-status:empty {
  display: none;
}

@media (max-width: 560px) {
  .agent-install {
    border-radius: 14px;
    padding: 10px 14px;
  }
  /* Narrow screens stack deliberately: label line, then the button. */
  .agent-install-text {
    flex-basis: 100%;
    order: 2;
    white-space: normal;
  }
  .agent-install-button {
    order: 3;
  }
  .agent-install-status {
    order: 4;
  }
}

/* Mobile primary menu: 4 links need 2×2, not 3 cramped columns */
@media (max-width: 980px) {
  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a {
    padding: 0 8px;
    white-space: nowrap;
    font-size: 13.5px;
  }

  /* Menu pills fill their cells edge-to-edge — a 4px-outset focus ring would
     spill onto the container border. Inset it inside the pill instead. */
  .site-header .nav-links a:focus-visible,
  body#brand-site[data-brand-ui] .site-header .nav-links a:focus-visible {
    outline-offset: -3px;
  }
}

/* Connect page: give the agent prompt strip its own clear layer */
.docs-connect-intro .agent-install {
  margin: 30px 0 0;
  max-width: 680px;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 16px;
}

/* Homepage safety note — a slim strip docked to the conversion form, not a
   floating card between sections */
.trust-band {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 14px 2px 0;
  padding: 13px 4px 0;
  border-top: 1px solid color-mix(in oklab, currentColor 10%, transparent);
}

.trust-band-icon {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #3d7a4a;
}

.trust-band-icon svg {
  width: 20px;
  height: 20px;
}

.trust-band-copy {
  margin: 0;
  font-size: 13.5px;
}

.trust-band-copy strong {
  font-weight: 650;
}

.trust-band-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 320px;
  font-size: 13.5px;
  color: var(--muted, #6b6353);
}

.trust-band-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d7a4a;
  flex: none;
}

.trust-band-link {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #b6542e);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.trust-band-link:hover {
  border-bottom-color: currentColor;
}

/* Reveal — rides the shared data-motion-card observer; the band lifts in,
   the shield settles a beat later, and the proof points stagger behind it. */
.trust-band[data-motion-card] {
  opacity: 0;
  transform: translateY(14px);
}

.trust-band[data-motion-card].is-in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--markovo-motion-proof, 400ms) ease,
    transform var(--markovo-motion-proof, 400ms) var(--markovo-motion-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.trust-band[data-motion-card] .trust-band-icon {
  opacity: 0;
  transform: scale(0.82);
}

.trust-band[data-motion-card].is-in-view .trust-band-icon {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity var(--markovo-motion-base, 220ms) ease 140ms,
    transform var(--markovo-motion-base, 220ms) var(--markovo-motion-ease, cubic-bezier(0.2, 0.8, 0.2, 1)) 140ms;
}

/* Shield draws itself in: outline first, check a beat later */
.trust-band[data-motion-card] .trust-band-icon svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.trust-band[data-motion-card].is-in-view .trust-band-icon svg path {
  animation: trust-shield-draw 0.7s var(--markovo-motion-ease, cubic-bezier(0.2, 0.8, 0.2, 1)) 0.15s forwards;
}

.trust-band[data-motion-card].is-in-view .trust-band-icon svg path + path {
  animation-delay: 0.55s;
}

@keyframes trust-shield-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.trust-band[data-motion-card] .trust-band-points li {
  opacity: 0;
  transform: translateY(6px);
}

.trust-band[data-motion-card].is-in-view .trust-band-points li {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--markovo-motion-base, 220ms) ease calc(200ms + var(--point-order, 0) * 70ms),
    transform var(--markovo-motion-base, 220ms) var(--markovo-motion-ease, cubic-bezier(0.2, 0.8, 0.2, 1)) calc(200ms + var(--point-order, 0) * 70ms);
}

.trust-band[data-motion-card] .trust-band-points li:nth-child(1) { --point-order: 0; }
.trust-band[data-motion-card] .trust-band-points li:nth-child(2) { --point-order: 1; }
.trust-band[data-motion-card] .trust-band-points li:nth-child(3) { --point-order: 2; }

@media (prefers-reduced-motion: reduce) {
  .trust-band[data-motion-card],
  .trust-band[data-motion-card] .trust-band-icon,
  .trust-band[data-motion-card] .trust-band-points li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .trust-band[data-motion-card] .trust-band-icon svg path {
    stroke-dashoffset: 0;
    animation: none;
  }
}

@media (max-width: 720px) {
  .trust-band {
    align-items: flex-start;
  }
  .trust-band-points {
    flex-basis: 100%;
  }
}

/* Verified badge next to "Email verified" in the account session summary */
#account-email-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#account-email-status.is-verified::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.4' fill='%233d7a4a'/%3E%3Cpath d='m4.4 7.4 1.8 1.8 3.6-4.2' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
