@font-face {
  font-family: Roboto;
  src: url("./roboto-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fff;
  --surface: #fafafa;
  --text: #080808;
  --muted: #61615d;
  --border: #d9dcda;
  --button: #080808;
  --button-text: #fff;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.nav {
  max-width: 72rem;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-weight: 700;
}
.brand svg { width: 1.05rem; height: 1.2rem; }
.site-link,
.text-link {
  color: var(--muted);
  font: 400 .75rem/1 Roboto, Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-link:hover,
.text-link:hover { color: var(--text); }
main {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  max-width: 64rem;
  margin: auto;
  padding: 5rem 1.5rem 6rem;
}
.page-intro { max-width: 48rem; }
.eyebrow {
  margin: 0;
  color: var(--muted);
  font: 400 .68rem/1.2 Roboto, Inter, sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: Roboto, Inter, system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: -.035em;
}
h1 {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1.02;
}
h2 {
  margin: .8rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}
h3 { margin: 0; font-size: 1.45rem; line-height: 1.15; }
.page-content { margin-top: 2.75rem; }
p { color: var(--muted); }
strong { color: var(--text); }
.session-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem .8rem;
  color: var(--muted);
  font: 400 .68rem/1 Roboto, Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.logout-form { margin: 0; }
.notice {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.notice--cancelled { color: var(--muted); }
.trial {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--text);
  background: var(--surface);
}
.offers { margin-top: 5rem; }
.section-copy { max-width: 42rem; margin-top: 1rem; }
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.plan {
  display: flex;
  min-height: 30rem;
  flex-direction: column;
  padding: 2rem;
  background: var(--bg);
}
.plan:hover { background: var(--surface); }
.plan-tag {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font: 400 .68rem/1 Roboto, Inter, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.price {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  margin: 1.6rem 0 0;
  color: var(--text);
}
.price strong {
  font: 400 clamp(2.7rem, 6vw, 4rem)/1 Roboto, Inter, sans-serif;
  letter-spacing: -.045em;
}
.price span { color: var(--muted); }
.plan ul {
  display: grid;
  gap: .75rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.plan li { padding-left: 1.25rem; position: relative; }
.plan li::before { content: "→"; position: absolute; left: 0; color: var(--text); }
.plan form { margin-top: auto; }
button {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.25rem;
  background: var(--button);
  color: var(--button-text);
  cursor: pointer;
  font: 400 .75rem/1.2 Roboto, Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
button:hover { opacity: .88; }
.primary-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .85rem 1.4rem;
  background: var(--button);
  color: var(--button-text);
  font: 400 .75rem/1.2 Roboto, Inter, sans-serif;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-action:hover { opacity: .88; }
button:focus-visible,
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.trust article { padding: 1.4rem; background: var(--surface); }
.trust p { margin: .55rem 0 0; font-size: .9rem; }
.single-action { max-width: 32rem; }
.single-action form { margin-top: 1.5rem; }
.connector-address {
  display: block;
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 64rem;
  margin: auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
label { display: block; margin-top: 1rem; }
input,
textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: .35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem;
  background: var(--surface);
  color: var(--text);
}
textarea { min-height: 7rem; resize: vertical; }
code { word-break: break-all; }
small { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

.subscribe-layout,
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}
.subscribe-offer {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.subscribe-price {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 0;
}
.subscribe-price strong {
  font: 400 clamp(3.25rem, 7vw, 5.5rem)/.95 Roboto, Inter, sans-serif;
  letter-spacing: -.055em;
}
.subscribe-price span { color: var(--muted); }
.subscribe-lead,
.auth-lead {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}
.subscribe-features {
  display: grid;
  gap: .9rem;
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.subscribe-features li {
  position: relative;
  padding-left: 1.4rem;
}
.subscribe-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text);
}
.action-note {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: .88rem;
}
.subscribe-context {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}
.subscribe-context h2 {
  margin: .55rem 0 0;
  font-size: 1.4rem;
}
.subscribe-context p:not(.context-index) { margin: .65rem 0 2.5rem; }
.context-index {
  margin: 0;
  color: var(--text);
  font: 400 .68rem/1 Roboto, Inter, sans-serif;
  letter-spacing: .2em;
}

.auth-layout {
  min-height: 38rem;
  align-items: center;
}
.auth-copy h1 {
  margin: 2.25rem 0 0;
  font-size: clamp(3.25rem, 7vw, 5.75rem);
}
.auth-back {
  color: var(--muted);
  font: 400 .72rem/1 Roboto, Inter, sans-serif;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.auth-facts {
  display: grid;
  gap: 0;
  max-width: 38rem;
  margin: 3rem 0 0;
}
.auth-facts div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.auth-facts dt {
  color: var(--muted);
  font: 400 .68rem/1.4 Roboto, Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-facts dd { margin: 0; color: var(--text); }
.auth-flow {
  width: 100%;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.auth-flow-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--border);
}
.auth-flow-header div { display: grid; gap: .25rem; }
.auth-flow-header span { color: var(--muted); font-size: .8rem; }
.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text) !important;
  font-family: Roboto, Inter, sans-serif;
}
descope-wc { display: block; width: 100%; margin-top: 1rem; }
.auth-status { margin: 1rem 0 0; color: #a52b28; font-size: .9rem; }
.auth-status:empty { display: none; }
.auth-provider { margin: 1rem 0 0; text-align: center; font-size: .75rem; }

.account-section {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
/* Sole child of .page-content on the activation page: no separator rule above it. */
.activation { max-width: 48rem; }
.activation-lead { color: var(--text); font-size: 1.15rem; }
.activation-steps {
  display: grid;
  gap: 1px;
  margin: 2rem 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  list-style: none;
  counter-reset: activation;
}
.activation-steps li {
  display: grid;
  grid-template-columns: minmax(11rem, .7fr) 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  counter-increment: activation;
}
.activation-steps strong::before { content: counter(activation, decimal-leading-zero) " · "; }
.activation-steps span { color: var(--muted); }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.copy-row code {
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.copy-row button { width: auto; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 2rem; }
.history-list { display: grid; gap: 1px; margin-top: 2rem; background: var(--border); }
.history-item { padding: 1.25rem; background: var(--surface); }
.history-label { margin: 0 0 .45rem; color: var(--text); }
.history-state { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.history-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 0;
}
.history-facts div { min-width: 0; }
.history-facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.history-facts dd { margin: .25rem 0 0; color: var(--text); font-size: .88rem; }
.empty-state { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--border); }
.team-checkout,
.team-invite,
.team-contact { max-width: 30rem; margin-top: 2rem; }
.team-checkout button,
.team-invite button,
.team-contact button { margin-top: 1rem; }
.team-enterprise { max-width: 42rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.team-list { margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.team-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.team-list li div { display: grid; gap: .25rem; }
.team-list span { color: var(--muted); font-size: .85rem; }
.team-list form { margin: 0; }
.list-title { margin-top: 2.5rem; }
.secondary-button { width: auto; border: 1px solid var(--border); background: transparent; color: var(--text); }
.team-portal { margin-top: 1.5rem; }
button:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 720px) {
  main { padding-top: 3rem; }
  .plans,
  .trust,
  .subscribe-layout,
  .auth-layout { grid-template-columns: 1fr; }
  .plan { min-height: 0; }
  .subscribe-context { padding: 2rem 0 0; border-top: 1px solid var(--border); border-left: 0; }
  .auth-layout { min-height: 0; gap: 3rem; }
  .auth-facts div { grid-template-columns: 1fr; gap: .4rem; }
  .auth-flow { padding: 1rem; }
  .activation-steps li,
  .history-facts,
  .copy-row { grid-template-columns: 1fr; }
  .copy-row button { width: 100%; }
  .section-heading { flex-direction: column; }
  .team-list li { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
}

/* Account workspace: task navigation and progressive disclosure, without changing public pages. */
body:has(.account-workspace) main { max-width: 76rem; padding: 2.5rem 2rem 4rem; }
body:has(.account-workspace) .page-content { margin-top: 0; }
body:has(.account-workspace) .grain { display: none; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.workspace-heading h1 { font-size: 2rem; margin: .5rem 0; }
.account-identity { margin: 0; overflow-wrap: anywhere; }
.workspace-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3.5rem; }
.workspace-sidebar { min-width: 0; align-self: start; position: sticky; top: 1.5rem; }
.workspace-nav { display: grid; gap: .25rem; }
.workspace-nav a { min-height: 44px; display: flex; align-items: center; padding: .65rem .9rem; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; border-radius: 0 6px 6px 0; }
.workspace-nav a:hover { background: var(--surface); color: var(--text); }
.workspace-nav a[aria-current] { background: #f2f3f1; border-color: var(--text); color: var(--text); }
.sidebar-balance { display: grid; gap: .5rem; padding: 1.5rem .9rem; margin-top: 1.5rem; border-top: 1px solid var(--border); }
.sidebar-balance span, .sidebar-balance small { color: var(--muted); font-weight: 400; }
.sidebar-balance strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.sidebar-balance a, .workspace-support { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.workspace-support { margin-left: .9rem; }
.workspace-main { min-width: 0; }
.account-panel { scroll-margin-top: 1rem; }
.account-panel[hidden] { display: none; }
.account-panel:empty { display: none; }
.account-panel > .account-section, .account-panel > section { margin-top: 0; padding-top: 0; border-top: 0; }
.account-panel h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: .5rem; }
.account-panel h3 { font-size: 1.2rem; }
.account-panel p { line-height: 1.6; }
.account-panel .offers, .account-panel .account-section { margin-top: 2rem; padding-top: 1.5rem; }
.account-panel .single-action { max-width: none; }
.account-panel .offers h2, #updates h2 { font-size: 1.35rem; }
.account-panel button, .account-panel .primary-action, .workspace-heading button { width: auto; font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; min-height: 44px; }
.workspace-tasks { margin-top: 2rem; border-top: 1px solid var(--border); }
.workspace-task { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem .5rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.workspace-task > span:first-child { display: grid; gap: .4rem; }
.workspace-task strong { font-size: 1.15rem; }
.workspace-task span span { color: var(--muted); }
.workspace-task:hover { background: var(--surface); }
.workspace-note { padding: 1.25rem 0; margin-top: 1.5rem; }
.workspace-note p { margin: .5rem 0 0; }
.account-panel > .voucher-invitation { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.voucher-invitation > div { flex: 1 1 18rem; }
.voucher-invitation h3 { margin: 0; font-size: 1.25rem; }
.voucher-invitation p { margin: .5rem 0 0; color: var(--muted); }
.connection-steps { padding-left: 1.4rem; margin: 2rem 0; }
.connection-steps li { padding: .7rem 0 .7rem .4rem; }
.connection-steps .connector-address { margin-bottom: 0; }
.disclosure { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: .5rem; }
summary { cursor: pointer; min-height: 44px; padding: .75rem 0; }
summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.identity-facts { margin: 2rem 0; }
.identity-facts dt { color: var(--muted); }
.identity-facts dd { margin: .5rem 0; overflow-wrap: anywhere; }
.history-list { background: transparent; gap: 0; border-top: 1px solid var(--border); }
.history-item { padding: 0; border-bottom: 1px solid var(--border); background: transparent; }
.history-summary { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem 7rem 4rem; align-items: center; gap: 1rem; padding: 1.1rem .25rem; list-style: none; }
.history-summary::-webkit-details-marker { display: none; }
.history-main { display: grid; gap: .35rem; }
.history-label { margin: 0; }
.history-main time, .history-expand, .history-charge small { color: var(--muted); font-size: .875rem; }
.history-charge { text-align: right; font-variant-numeric: tabular-nums; }
.history-charge small { display: block; }
.history-expand { text-decoration: underline; }
.history-state { font-size: .875rem; white-space: normal; }
.history-detail { background: var(--surface); padding: 1.25rem; }
.history-detail p { margin: 0; }
.history-detail .secondary-button { margin-top: 1rem; }
.saved-result, .saved-source { overflow-wrap: anywhere; }
.saved-source { padding: 2rem 0; border-top: 1px solid var(--border); }
.source-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.history-facts dt { font-size: .8rem; }
.history-facts dd { font-size: 1rem; }
@media (max-width: 900px) {
  .workspace-layout { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; }
  .history-summary { grid-template-columns: minmax(0, 1fr) 6rem; }
  .history-main { grid-column: 1; }
  .history-charge { grid-column: 2; grid-row: 1; }
}
@media (max-width: 720px) {
  body:has(.account-workspace) main { padding: 1.5rem 1rem 3rem; }
  .workspace-heading { margin-bottom: 1rem; }
  .workspace-heading h1 { font-size: 1.6rem; }
  .workspace-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .workspace-sidebar { position: static; }
  .workspace-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding-bottom: .5rem; }
  .workspace-nav a { justify-content: center; text-align: center; font-size: .875rem; border-left: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; padding: .7rem; }
  .sidebar-balance { margin-top: .5rem; padding: .75rem 0; grid-template-columns: 1fr auto; align-items: center; }
  .sidebar-balance strong { font-size: 1.1rem; }
  .sidebar-balance a, .workspace-support { display: none; }
  .workspace-task { padding: 1.15rem .25rem; }
  .account-panel .plans { margin-top: 1.5rem; }
}
.watch-add { margin: 1.75rem 0 1rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 8px; }
.watch-add > span, .watch-meta, .watch-add > p { color: var(--muted); }
.watch-add > p { margin: .5rem 0 0; }
.watch-form--add { display: flex; align-items: flex-end; gap: 1rem; }
.watch-form--add label { flex: 1; margin-top: .65rem; }
.watch-form--add input { min-height: 48px; font: inherit; }
.watch-pricing { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.watch-item { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.watch-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.watch-heading h3 { font-family: inherit; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.watch-state { font-size: .875rem; color: var(--muted); flex-shrink: 0; }
.watch-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.watch-reference summary, .watch-delete summary { color: var(--muted); width: fit-content; }
.watch-reference, .watch-delete { margin-top: .5rem; }
.watch-delete[open] { border-left: 2px solid var(--muted); padding-left: 1rem; }
.watch-movements li { padding: .65rem 0; overflow-wrap: anywhere; }
.watch-item [role="alert"] { border-left: 2px solid var(--text); padding: .75rem 1rem; }
@media (max-width: 720px) {
  .watch-form--add { flex-direction: column; align-items: stretch; gap: .75rem; }
  .watch-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .watch-actions { align-items: stretch; flex-direction: column; }
  .watch-actions button { width: 100%; }
}
body:has(.activation) main { padding-top: 2rem; }
body:has(.activation) h1 { font-size: 2.5rem; }
.activation h2 { font-size: 2rem; }
.activation .primary-action, .activation button { font: inherit; text-transform: none; letter-spacing: 0; }
.team-removal { flex-shrink: 0; max-width: 24rem; }
.team-removal summary { color: var(--muted); }
.account-workspace input, .account-workspace textarea { font: inherit; }
.guide-note { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--muted); }
.tool-guides { border-top: 1px solid var(--border); margin-top: 2rem; }
.tool-guide { border-bottom: 1px solid var(--border); scroll-margin-top: 1rem; }
.tool-guide > summary { display: flex; align-items: start; gap: .8rem; padding: 1.3rem .25rem; list-style: none; }
.tool-guide > summary::-webkit-details-marker { display: none; }
.tool-guide > summary::before { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1.2; }
.tool-guide[open] > summary::before { content: "−"; }
.tool-guide > summary span span { display: block; margin-top: .35rem; color: var(--muted); }
.tool-guide-body { padding: 0 1.25rem 1.5rem; }
.guide-prompt { margin: .75rem 0 1rem; padding: 1rem; border-left: 2px solid var(--text); background: var(--surface); line-height: 1.65; }
.guide-copy-status:empty { display: none; }
.guide-facts { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.guide-facts dt { font-weight: 600; }
.guide-facts dd { margin: .35rem 0 0; color: var(--muted); line-height: 1.6; }
.guide-tool-name { overflow-wrap: anywhere; }
@media (max-width: 720px) { .tool-guide-body { padding: 0 0 1.25rem; } }

.research-organizer{padding:1.25rem;border:1px solid var(--border);border-radius:12px;margin:1rem 0 2rem}.research-organizer form{display:grid;gap:1rem;max-width:40rem}.research-organizer label{display:grid;gap:.4rem}.research-organizer input,.research-organizer select{width:100%;min-width:0;padding:.7rem;font:inherit;border:1px solid var(--border);border-radius:6px}.research-selection{display:flex;align-items:center;gap:.6rem;margin:1rem 0 .35rem;font-size:.875rem}.research-selection input{width:1.1rem;height:1.1rem;flex-shrink:0}

.saved-research h1{font-size:clamp(1.8rem,4vw,2.5rem);letter-spacing:-.035em;margin:0 0 1.5rem}.saved-research{overflow-wrap:anywhere}

.feedback-form form { display: grid; gap: 1.25rem; }
.feedback-form label { display: grid; gap: .5rem; }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  width: 100%; min-width: 0; box-sizing: border-box; font: inherit;
  padding: .8rem; border: 1px solid #d4d5d0; border-radius: .4rem;
}
.feedback-form textarea { resize: vertical; }
.feedback-form button { justify-self: start; }

.feedback-fields { display: grid; gap: 1.25rem; padding: .75rem 0; }
.feedback-details { border-block: 1px solid var(--border); }
.saved-research fieldset { min-width: 0; margin: 1rem 0; padding: 1rem; border: 1px solid var(--border); }

/* Silo: shared light identity, native forms and dialogs. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #245fca !important; outline-offset: 3px; }
input, textarea, select, button { font: inherit; }
button, .primary-action, .site-link, .text-link { font-size: .9rem; text-transform: none; letter-spacing: 0; }
button, .primary-action, a { transition: background-color 160ms, color 160ms, opacity 160ms; }
.skip-link { position: absolute; top: -100px; left: 24px; z-index: 10; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.nav { min-height: 88px; max-width: 1600px; padding: 20px 42px; }
.brand { gap: 10px; font-size: 25px; letter-spacing: -.045em; font-weight: 500; }
.brand svg { width: 23px; height: 27px; }
.module-nav { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.module-nav a { display: inline-flex; align-items: center; justify-content: center; flex: 1; min-height: 44px; padding: 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; gap: 6px; }
.module-nav a[aria-current] { color: var(--text); background: #e9ece8; font-weight: 500; }
.module-nav a:hover { background: #eceeeb; }
.module-nav small, .module-label { color: var(--muted); font-size: 11px; font-weight: 400; }
.site-link { margin-left: auto; min-height: 44px; display: flex; align-items: center; }
.footer-inner { max-width: 1600px; padding: 24px 42px; font-size: 12px; }
body:has(.account-workspace) main, body:has(.account-frame) main { max-width: 1600px; padding: 42px 42px 80px; }
body:has(.account-frame) .page-content { margin-top: 0; }
.workspace-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 42px; }
.workspace-nav a { border: 0; border-radius: 7px; padding: 12px 16px; }
.workspace-nav a[aria-current] { font-weight: 500; }
.workspace-heading { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.workspace-heading h1 { font-size: 24px; }
.account-menu { display: none; }
.account-welcome { position: relative; overflow: hidden; min-height: 250px; margin: 28px 0; border-radius: 12px; background: #e9e4da; }
.account-welcome img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.account-welcome > div { position: relative; z-index: 1; margin: 32px; max-width: 380px; padding: 24px; border: 1px solid #ffffff80; background: #ffffffb3; backdrop-filter: blur(18px); border-radius: 9px; }
.account-welcome h3 { font-size: 30px; font-weight: 300; }
.account-welcome p { color: #333; }
.account-welcome a { min-height: 44px; display: inline-flex; align-items: center; }
.auth-page .site-header, .auth-page .footer { display: none; }
.auth-page main { max-width: none; padding: 0; }
.auth-page .page-content { margin: 0; }
.auth-layout { min-height: 100svh; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.auth-scene { min-height: 100svh; position: relative; overflow: hidden; background: #cdc7bb; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-scene .brand { position: relative; align-self: flex-start; color: #080808; background: #ffffffd9; padding: 12px 16px; border-radius: 6px; }
.glass-caption { position: relative; max-width: 560px; margin-top: 160px; padding: 32px; border: 1px solid #ffffff80; background: #ffffffad; backdrop-filter: blur(22px); border-radius: 10px; }
.glass-caption h2 { font-size: clamp(32px, 3.5vw, 52px); font-weight: 300; margin: 0; }
.glass-caption p { margin-bottom: 0; color: #383936; }
.auth-panel { padding: 40px clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.auth-back { font: inherit; letter-spacing: 0; text-transform: none; min-height: 44px; display: inline-flex; align-items: center; }
.auth-panel-content { width: 100%; max-width: 460px; margin: auto; }
.auth-panel h1 { font-size: clamp(36px, 4vw, 58px); margin: 0; }
.auth-lead { font-size: 17px; line-height: 1.6; margin: 20px 0 24px; color: var(--muted); }
.auth-flow { border: 0; background: #fff; padding: 0; }
descope-wc { margin-top: 0; }
.auth-policies { font-size: 12px; line-height: 1.7; color: var(--muted); }
.research-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 36px; }
.research-heading h1, .reader-heading h1 { margin: 0; font-size: clamp(32px, 4vw, 50px); max-width: 100%; }
.research-heading p { margin: 12px 0 0; }
.research-heading .primary-action { flex-shrink: 0; gap: 24px; }
.library-search { max-width: 420px; color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.library-search input { min-height: 48px; background: #fff; font-size: 16px; }
.research-library { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.research-library li > a { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 8px; min-height: 100px; border-bottom: 1px solid var(--border); text-decoration: none; }
.research-library li > a:hover { background: var(--surface); }
.research-row-title { font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; }
.research-row-action { font-size: 13px; color: var(--muted); white-space: nowrap; }
.research-row-action span { margin-left: 16px; }
.pagination { display: flex; gap: 24px; margin: 20px 0; }
.pagination a { min-height: 44px; display: inline-flex; align-items: center; }
.reader-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: none; margin-bottom: 16px; }
.reader-heading { max-width: 900px; margin-bottom: 24px; }
.reader-heading p { max-width: 680px; font-size: 15px; line-height: 1.7; }
.reader-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.reader-toolbar > a, .reader-toolbar > button, .reader-toolbar form button { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; text-decoration: none; }
.reader-toolbar > a { background: #fff; }
.reader-toolbar > form { margin: 0; }
.toolbar-notice, .reader-toolbar > details[open] { flex-basis: 100%; }
.reader-grid { display: grid; grid-template-columns: minmax(180px, 224px) minmax(0, 760px); gap: 32px; align-items: start; }
.reader-index { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding-right: 12px; }
.reader-index summary { font-size: 13px; font-weight: 500; }
.reader-index ol { list-style: none; padding: 0; margin: 0; }
.reader-index li { border-bottom: 1px solid var(--border); padding: 16px 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.reader-index a { display: block; font-size: 13px; text-decoration: none; color: var(--text); padding-bottom: 6px; }
.reader-index a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.reader-document { min-width: 0; }
.saved-source { scroll-margin-top: 24px; }
.reader-document .saved-source:first-child { padding-top: 0; border-top: 0; }
.saved-source h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 400; line-height: 1.2; margin-top: 0; }
.saved-source h3 { font-size: 20px; font-weight: 500; margin: 32px 0 16px; }
.source-text { font-size: 17px; line-height: 1.8; color: #242523; }
.saved-source .history-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 0; margin: 20px 0; border-block: 1px solid var(--border); }
.saved-source .history-facts dt { font-size: 11px; letter-spacing: .04em; }
.saved-source .history-facts dd { font-size: 14px; line-height: 1.6; }
.source-retention { border-top: 1px solid var(--border); padding: 8px 0 24px; font-size: 12px; }
.source-retention p { margin: 8px 0; }
.research-feedback { margin-top: 40px; border-block: 1px solid var(--border); padding: 8px 0; }
.research-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100svh - 48px); margin: auto; padding: 32px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: auto; }
.research-dialog::backdrop { background: #08080855; backdrop-filter: blur(4px); }
.research-dialog > h2 { font-size: 30px; margin: 0 52px 24px 0; }
.research-dialog .dialog-close { position: absolute; top: 20px; right: 20px; width: 44px; min-height: 44px; padding: 0; background: #f2f3f1; color: var(--text); }
.research-dialog fieldset { min-width: 0; padding: 20px; margin: 20px 0; border: 1px solid var(--border); border-radius: 8px; }
.research-dialog legend { font-size: 14px; padding: 0 6px; }
.research-dialog input[type=checkbox] { width: 18px; height: 18px; accent-color: #080808; }
.research-dialog label { display: flex; gap: 10px; align-items: start; font-size: 14px; line-height: 1.6; }
.research-dialog button { width: auto; margin-top: 16px; }
@media (max-width: 1100px) {
  .workspace-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .reader-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .research-heading { align-items: flex-start; flex-direction: column; }
  .auth-scene { padding: 28px; }
  .glass-caption { padding: 24px; }
}
@media (max-width: 760px) {
  .nav { min-height: 76px; padding: 16px 20px; gap: 12px; }
  .brand { font-size: 23px; gap: 8px; }
  .brand svg { width: 21px; }
  .nav .site-link { font-size: 12px; }
  .account-menu { display: inline-flex; align-items: center; width: auto; padding: 10px 14px; font-size: 12px; min-height: 44px; margin-left: auto; }
  .nav:has(.account-menu) .site-link { display: none; }
  .footer-inner { padding: 24px 20px; }
  body:has(.account-workspace) main, body:has(.account-frame) main { padding: 24px 20px 48px; }
  .workspace-layout, .reader-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .workspace-sidebar { position: static; }
  .workspace-nav { grid-template-columns: 1fr 1fr; }
  .workspace-nav a { justify-content: flex-start; text-align: left; }
  .account-navigation-ready .workspace-sidebar:not(.is-open) { display: none; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading h1 { font-size: 23px; }
  .workspace-heading button { padding: 10px 16px; }
  .account-welcome > div { margin: 20px; padding: 20px; }
  .account-welcome h3 { font-size: 26px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-scene { min-height: 280px; padding: 24px; }
  .auth-scene .brand { padding: 8px 12px; }
  .glass-caption { margin-top: 48px; max-width: 420px; padding: 20px; }
  .glass-caption h2 { font-size: 30px; }
  .glass-caption p { font-size: 13px; }
  .auth-panel { padding: 24px; gap: 24px; }
  .auth-panel-content { max-width: 460px; }
  .auth-panel h1 { font-size: 38px; }
  .auth-lead { font-size: 16px; }
  .research-heading { margin-bottom: 24px; }
  .research-row-title { font-size: 19px; }
  .research-library li > a { align-items: flex-start; flex-direction: column; gap: 14px; padding: 24px 0; }
  .reader-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reader-toolbar > a, .reader-toolbar > button, .reader-toolbar form button { width: 100%; font-size: 12px; padding: 10px; text-align: center; }
  .toolbar-notice, .reader-toolbar > details { grid-column: 1 / -1; }
  .reader-index { position: static; max-height: none; padding: 0; border-block: 1px solid var(--border); }
  .reader-index details[open] { padding-bottom: 16px; }
  .reader-index summary { min-height: 52px; padding-block: 16px; }
  .source-text { font-size: 16px; }
  .saved-source .history-facts { gap: 16px; }
  .research-dialog { padding: 24px 20px; }
  .research-dialog fieldset { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.auth-policies { display: flex; gap: 16px; flex-wrap: wrap; }
.primary-action, .reader-toolbar > a, .site-link { gap: 8px; }
.research-dialog form[action$="/sources"] button { background: #fff; color: var(--muted); border: 1px solid var(--border); }

.voucher-form { display: grid; gap: .6rem; max-width: 24rem; }
.voucher-form label { font-size: .875rem; color: var(--muted); }
.voucher-form input { width: 100%; min-width: 0; padding: .7rem; font: inherit; border: 1px solid var(--border); border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
