/* Keep text zoom and the user's default font size throughout the interface. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --reading-size: clamp(.875rem, .84rem + .18vw, 1rem);
  --caption-size: clamp(.78rem, .76rem + .12vw, .875rem);
}
body :where(h1,h2,h3,h4,p,dt,dd,li,label,summary,button,bdi,th,td,a) {
  overflow-wrap: anywhere;
}
body :where(h1,h2,h3,h4) { line-height: 1.5; }
body :where(input,textarea,select,fieldset) { min-inline-size: 0; max-inline-size: 100%; }
:where(svg.ui-icon) {
  display: inline-block;
  width: 1.12em;
  height: 1.12em;
  flex: none;
  vertical-align: -.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.footer-support > .ui-icon {width:2.5rem;height:2.5rem}
.bottom-nav-icon > .ui-icon {width:1.25rem;height:1.25rem}
.step-outline > summary { list-style: none; }
.step-state.state-done::before, body .flash.chat-toast::before {
  content: "";
  background: #206e4c url("check-mark.svg") center / 72% no-repeat;
}
.chat-membership .plan-card li::before {
  content: "";
  background: var(--tg-accent);
  mask: url("check-mark.svg") center / contain no-repeat;
}
.step-outline > summary::-webkit-details-marker { display: none; }
.step-outline:not([open]) > summary .ui-icon { transform: rotate(90deg); }
.project-intro .profile-bio, .step-text p, .stop-copy strong, .chat-message p,
.help-messages p, .news-article p, .management :is(.panel,.section) p {
  font-size: var(--reading-size);
  line-height: 1.85;
}
.tg-channel .channel-identity strong, .menu-identity :is(strong,bdi),
.tg-list .inbox-excerpt, .profile-chats .inbox-excerpt, .help-thread-copy span,
.project-tile .tile-description, .ops-description, .card .card-summary, .card-news a {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  display: block;
  overflow-wrap: anywhere;
}
.channel-identity > span, .step-heading > *, .tile-identity > div,
.project-facts dd, .profile-hero > div, .stop-copy > * { min-inline-size: 0; }
.project-facts > div, .stop-copy small, .step-preview, .stop-state {
  font-size: var(--caption-size);
  line-height: 1.65;
}
.step-heading { flex-wrap: wrap; }
.tg-channel .tg-thread { min-inline-size: 0; }
.project-page .project-columns, .project-page .participation-summary {
  overflow-wrap: anywhere;
}
@media (max-width: 48rem) {
  .tg-shell .tg-thread { padding-inline: clamp(.35rem, 1.6vw, .8rem); }
  .tg-channel .step-feed { width: 100%; max-width: 100%; }
  .project-page .profile-identity :is(h1,h2) { font-size: clamp(1.13rem, 1rem + .7vw, 1.55rem); }
  .project-page .profile-identity .campaign-logo { width: 3.5rem; height: 3.5rem; }
  .project-page .project-columns { padding: clamp(.65rem, 3vw, 1.2rem); }
  .step-message, .step-feed .step-overview { padding: clamp(.65rem, 3vw, 1rem); }
  .tg-shell .tg-channel > .tg-tabs:not(.support-tabs) {
    display: flex; flex-wrap: wrap; align-items: stretch;
  }
  .tg-shell .tg-channel > .tg-tabs:not(.support-tabs) a {
    display: grid; place-items: center; flex: 1 1 4.1em;
    white-space: normal; min-width: 0; padding-inline: .2rem; line-height: 1.55;
  }
  .management-account, .project-estimate header { flex-wrap: wrap; }
  .tg-channel .compose-row input[name=message] { min-width: 0; }
}
@container (max-width: 24rem) {
  .step-index .step-stop {
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: .3rem .55rem;
    padding: .65rem;
  }
  .step-stop .stop-mark { grid-row: 1; grid-column: 1; width: 1.6rem; height: 1.6rem; }
  .step-stop .stop-copy { display: contents; }
  .step-stop .stop-copy small { grid-row: 1; grid-column: 2; }
  .step-stop .stop-state { grid-row: 1; grid-column: 3; }
  .step-stop .stop-copy :is(strong,.step-preview) { grid-column: 1 / -1; }
  .step-stop .stop-copy strong { grid-row: 2; }
}

body.site-shell:not(.management), body.membership-page {
  font-size:var(--reading-size);
}
.site-shell:not(.management) :is(.page-head,.login-card,.terms-cover,.news-article,.profile-identity) h1,
.membership-page h1 {
  font-size:clamp(1.35rem,1.05rem + 1.55vw,2.5rem);
  line-height:1.45;
  text-wrap:balance;
}
.site-shell :is(.terms-chapter,.news-article,.service-benefit,.login-card,.page-head,.tile-body) p {
  line-height:1.85;
  text-wrap:pretty;
}
.site-shell :is(.section-head,.hub-stories header,.page-help-toolbar,.footer-support) > * { min-inline-size:0; }
.site-shell :is(.terms-chapter,.news-article,.service-benefit) p { max-inline-size:70ch; }
@media (max-width:48rem) {
  body:not(.management) .site-navigation-inner {
    display:flex; flex-wrap:wrap; gap:.2rem .5rem;
  }
  body:not(.management) .site-navigation .brand {
    margin-inline-end:auto; font-size:clamp(1rem,.92rem + .55vw,1.2rem);
  }
  body:not(.management) .site-navigation .account-link { margin:0; }
  body:not(.management) .site-navigation nav {
    order:1; flex:1 0 100%; display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,4.3em),1fr));
  }
  .site-navigation :is(.install-trigger,.account-link) { font-size:.85rem; line-height:1.5; }
  .site-shell:not(.management) .home-shortcuts { flex-wrap:wrap; align-items:center; }
  .site-shell .button { min-inline-size:0; line-height:1.55; }
  .tg-list .inbox-tabs {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,3.4rem),1fr));
  }
  .tg-list .inbox-shortcuts {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));
  }
}
@media (prefers-reduced-motion:no-preference) {
  .public-surface-enter { animation:surface-arrive .48s cubic-bezier(.2,.8,.25,1); }
  @keyframes surface-arrive { from { opacity:.76; transform:translateY(.85rem); } }
}

.tg-thread .step-feed { gap:.85rem; }
.step-feed .step-heading { gap:.25rem .55rem; margin-block-end:.35rem; align-items:baseline; }
.step-feed .step-heading h3, .step-feed .step-overview h2 {
  font-size:clamp(.95rem,.91rem + .19vw,1.06rem); line-height:1.55;
}
.step-feed .step-state {
  background:var(--tg-field); border-radius:2rem; padding:.1em .55em;
  line-height:1.55; margin:0;
}
.step-feed .step-text p, .step-feed .step-excerpt, .step-feed .step-source p {
  font-size:var(--reading-size); line-height:1.72; overflow-wrap:anywhere; text-wrap:pretty;
}
.step-feed .step-text p + p { margin-block-start:.38em; }
.step-reading summary { display:grid; justify-items:start; gap:.3rem; list-style:none; color:inherit; font-weight:400; }
.step-reading summary::-webkit-details-marker { display:none; }
.reading-toggle {
  display:inline-flex; align-items:center; gap:.3rem; min-block-size:1.8rem;
  color:var(--accent); font-size:var(--caption-size); font-weight:650;
}
.step-reading .read-less, .step-reading[open] .read-more, .step-reading[open] .step-excerpt { display:none; }
.step-reading[open] .read-less { display:inline; }
.step-reading[open] .ui-icon { transform:rotate(180deg); }
.step-references {
  display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between;
  gap:.25rem .65rem; border-block-start:1px solid var(--edge);
  margin-block-start:.4rem; padding-block-start:.2rem;
}
.step-references .step-source, .step-references .step-destination { margin:0; }
.step-references .step-destination { border:0; padding:0; gap:.3rem; font-size:var(--caption-size); }
.step-references .step-source[open] { flex-basis:100%; min-width:0; }
.step-actions .step-key, .step-source > summary {
  display:inline-flex; direction:rtl; align-items:center; gap:.4rem;
}
.step-actions .step-key > span { min-inline-size:0; }
.step-references .step-source summary { list-style:none; font-size:var(--caption-size); }
.step-source > summary::-webkit-details-marker { display:none; }
.step-source:not([open]) > summary .ui-icon { transform:rotate(90deg); }
.step-feed .step-outline { margin-block-start:.45rem; }
@media (max-width:48rem) {
  .step-feed .step-message { padding:.65rem .8rem; }
  .step-feed .step-keyboard .step-key { font-size:.8125rem; min-height:44px; padding-block:.35rem; }
  .step-feed .step-personal-note { margin-block-start:.45rem; padding:.4rem .65rem; }
}
