/* HFTCloud 2.12: shared layout rhythm and accessible request form.
 * Load last, after page-specific styles. Palette and component behavior stay
 * in their existing stylesheets; this layer owns spacing and alignment. */
:root {
  --hc-content-width: 1200px;
  --hc-gutter: 24px;
  --hc-section-space: 64px;
  --hc-grid-gap: 24px;
  --hc-card-padding: 24px;
}

[hidden] { display: none !important; }
.container,
.hc-header-inner {
  width: min(var(--hc-content-width), calc(100% - 2 * var(--hc-gutter)));
  margin-inline: auto;
}
main :is(section, article, aside, form, fieldset) { min-width: 0; }
main :is(h1, h2, h3, h4) { overflow-wrap: break-word; }
main :is(section, article)[id] { scroll-margin-top: 16px; }
.section,
.ts-section,
.hc-directory,
.hc-journal-section,
.hc-connect-section { padding-block: var(--hc-section-space); }
.section-heading { max-width: 800px; margin: 0 auto 32px; }
.section-title { margin-bottom: 16px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.16; text-wrap: balance; }
.section-subtitle { max-width: 72ch; margin-inline: auto; font-size: 1rem; line-height: 1.65; }
.eyebrow { margin-bottom: 16px; line-height: 1.6; }
.section-heading > :last-child,
.hc-directory-heading > :last-child,
.ts-section-heading > :last-child { margin-bottom: 0; }
.hc-directory-heading,
.hc-journal-section-heading,
.ts-section-heading,
.hc-connect-heading { margin-bottom: 32px; }

/* Shared card grids keep the same gutters through desktop and tablet. */
.feature-grid, .route-grid, .steps-grid, .timeline-grid, .metrics-grid,
.use-case-grid, .addon-grid, .trial-grid, .platform-layer-grid,
.deliverable-grid, .market-access-grid, .stack-grid, .grid,
.content-grid, .doc-grid, .exchanges-grid, .blog-grid,
.hc-launch-steps, .hc-directory-grid, .hc-journal-grid, .ts-profile-grid {
  gap: var(--hc-grid-gap);
  align-items: stretch;
}
.feature-card, .route-card, .spec-card, .timeline-card, .addon-card,
.metric-card, .use-case-card, .trial-card, .platform-layer-card,
.deliverable-card, .market-access-card, .stack-card, .card,
.page-card, .content-card, .exchange-card, .blog-hero-panel,
.article-nav-card, .ts-profile { padding: var(--hc-card-padding); }
.feature-card, .route-card, .spec-card, .timeline-card, .addon-card,
.metric-card, .use-case-card, .trial-card, .market-access-card,
.card, .content-card, .exchange-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-card h3, .route-card h3, .timeline-card h3, .addon-card h3,
.use-case-card h3, .platform-layer-card h3, .market-access-card h3,
.card h3, .content-card h3, .exchange-card h3 { line-height: 1.3; margin-bottom: 12px; }
.feature-card p, .route-card p, .timeline-card p, .metric-card p,
.use-case-card p, .platform-layer-card p, .market-access-card p,
.card p, .content-card p, .exchange-card p { line-height: 1.65; }
.spec-number, .timeline-card > span { margin-bottom: 16px; }
.results-grid .metric-card { min-height: 0; }
.results-grid .metric-card p { margin-top: 16px; }
.results-grid .metric-label { margin-bottom: 0; }
.stack-card { min-height: 0; }
.deployment-facts { width: 100%; margin-top: 24px; }
.card > .card-request { align-self: stretch; margin-top: auto; }
.card:has(> .card-request) > :nth-last-child(2) { margin-bottom: 24px; }
.trust-strip, .network-capabilities { gap: 8px; margin-top: 24px; }
.nda-note, .stack-summary { margin-top: 24px; padding: 24px; }

/* Introductory text and actions share consistent edges. */
.hero, .section-hero, .ts-hero { padding-block: 48px; }
.hero-grid--page,
body[data-hc-section="journal"] .hero-grid--page.blog-hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 48px;
  align-items: start;
}
.page-hero-copy h1 { max-width: 24ch; font-size: clamp(2.25rem, 3.7vw, 3.25rem); line-height: 1.12; text-wrap: balance; }
.page-hero-copy .page-lead { max-width: 60ch; font-size: 1.0625rem; line-height: 1.65; }
.page-actions, .hc-launch-actions, .ts-actions { align-items: center; gap: 16px 24px; margin-top: 24px; }
.hc-launch-layout, .hc-journal-hero-grid, .ts-hero-grid { gap: 48px; }
.hc-launch-hero, .hc-journal-hero { padding-block: 32px; }
.hc-launch-proof { padding-block: 24px; }
.hc-setup-card { max-width: 464px; }
.hc-setup-card .btn { min-height: 48px; }
.hc-setup-note { font-size: 12px; }
.ts-hero h1 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); }
.ts-lead { font-size: 1.0625rem; }
.ts-page .ts-hero-note { margin-top: 16px; }
.ts-hero-grid, .ts-licensing-grid { gap: 48px; }
.ts-profile--featured, .ts-profile--custom { padding: 32px; }
.ts-delivery-grid { gap: 32px; }
.ts-profile-request { width: 100%; margin-top: 24px; }
.ts-profile-request .btn { width: 100%; }
.ts-profile--featured > .ts-profile-request,
.ts-profile--custom > .ts-profile-request { grid-column: 1 / -1; margin-top: 0; }
.ts-profile--featured > .ts-profile-request .btn,
.ts-profile--custom > .ts-profile-request .btn { width: auto; }

.btn { min-height: 48px; padding: 12px 20px; gap: 8px; line-height: 1.4; text-align: center; white-space: normal; }
.btn-compact, .btn-sm { min-height: 44px; }
.btn:hover, .btn:focus-visible { transform: none; }
.hc-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--hk-accent);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.hc-text-link:hover { color: var(--hk-accent-hover); }
.routes-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 24px; }
.routes-footer > p { flex: 1 1 400px; max-width: 72ch; }
.routes-footer > a { flex: 0 0 auto; }
.routes-footer .callout__actions { align-items: center; margin-top: 0; }
.final-cta { padding-top: 0; }
.final-cta-box, .ts-cta, .hc-journal-cta-box { gap: 32px; padding: 32px; }
.final-cta-box > div:first-child { flex: 1 1 0; max-width: 720px; }
.final-actions { flex: 0 1 280px; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; }
.final-actions .hc-text-link { justify-content: center; }
.ts-cta-section { padding-top: 0; padding-bottom: 40px; }

/* Journal and long-form pages retain readable line lengths. */
.journal-section-heading { align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.journal-section-heading .section-heading { text-align: left; margin: 0; }
.journal-section-heading .eyebrow { justify-content: flex-start; }
.blog-card__link { display: flex; flex-direction: column; }
.blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.blog-card__cta { margin-top: auto; padding-top: 20px; }
.hc-journal-index .blog-card__body { min-height: 0; padding: 24px; }
.hc-journal-index .blog-card p { font-size: .875rem; }
.hc-journal-index .blog-card__cta { font-size: .8125rem; }
.article-layout { gap: 32px; }
.article-sidebar { top: var(--hc-header-clearance); gap: 24px; }
.journal-article .article-body { max-width: 72ch; }
.journal-article .article-body h2 { scroll-margin-top: 16px; }
.article-table-wrap, .table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.hc-connect-table td { padding: 0 8px; }
.hc-connect-request { display: inline-flex; align-items: center; justify-content: flex-end; width: 100%; min-height: 44px; padding: 8px; border-radius: 5px; }
.hc-connect-request .hc-connect-value { color: var(--hk-accent); text-decoration: underline; text-underline-offset: 3px; }
.hc-connect-request:hover { background: var(--hk-accent-subtle); }
.hc-connect-request:focus-visible { outline-offset: -2px; }
.legal-stack { max-width: 920px; gap: 24px; }
.legal-section { padding: 32px; }
.legal-section :is(p, li) { max-width: 76ch; }
.site-footer { padding-block: 40px 24px; }
.footer-grid { gap: 32px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-links { gap: 4px 32px; }

/* One final request form with clear groups and a quiet supporting column. */
.contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 48px; }
.contact-copy { justify-content: flex-start; padding-top: 8px; text-align: left; }
.contact-copy .eyebrow { align-self: flex-start; justify-content: flex-start; }
.contact-copy .section-title { max-width: 16ch; }
.contact-copy .section-subtitle { margin-inline: 0; max-width: 52ch; }
.contact-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.contact-item { display: flex; align-items: baseline; gap: 16px; padding: 16px; }
.contact-item > span { flex: 0 0 24px; min-width: 24px; justify-content: flex-start; font-size: .8125rem; }
.contact-item p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.contact-note { margin-top: 24px; padding: 20px 24px; }
.contact-note p { font-size: .875rem; line-height: 1.65; }
.contact-grid > .form-card { padding: 28px; }
.contact-grid > .form-card:hover { background: var(--hk-surface); border-color: var(--hk-border); }
.form-heading { margin-bottom: 20px; }
.form-heading h3 { margin: 0; color: var(--hk-text); font-size: 1.375rem; line-height: 1.3; }
.form-heading p { margin: 8px 0 0; color: var(--hk-text-muted); font-size: .875rem; line-height: 1.6; }
.request-form { min-width: 0; }
.form-card .request-form { gap: 16px; }
.request-form label, .request-form .field-group { min-width: 0; margin: 0; gap: 8px; }
.request-form label span { margin: 0; }
.request-form label > span, .request-form .field-label { font-size: .875rem; font-weight: 650; line-height: 1.5; }
.request-form :is(input[type="email"], input[type="text"], select, textarea) {
  width: 100%; max-width: 100%; min-width: 0; min-height: 48px;
  padding: 10px 14px; border-radius: 10px; font-size: 1rem; line-height: 1.5;
  color: var(--hk-text); background: var(--hc-field-bg);
}
.request-form textarea { min-height: 88px; resize: vertical; }
.request-form .hc-request-setup-grid { gap: 16px; }
.request-form .field-label { display: block; margin: 0; }
.request-form .field-optional,
.request-form .field-required { display: inline; margin: 0; color: var(--hk-text-muted); font-weight: 400; }
.request-form .field-error { margin: 0; color: var(--hk-danger); font-size: .8125rem; line-height: 1.5; }
.request-form [aria-invalid="true"] { border-color: var(--hk-danger); }
.request-form .privacy-consent {
  display: flex; align-items: flex-start; gap: 12px; min-height: 44px;
  padding-block: 4px; cursor: pointer;
}
.request-form .privacy-consent > input[type="checkbox"] {
  appearance: auto; flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px;
  margin: 2px 0 0; padding: 0; border-radius: 4px;
  accent-color: var(--hk-accent); cursor: pointer;
}
.request-form .privacy-consent > span { font-size: .875rem; font-weight: 400; line-height: 1.6; }
.request-form .privacy-consent a { color: var(--hk-accent); text-decoration: underline; text-underline-offset: 3px; }
.request-form .privacy-consent:has(input[aria-invalid="true"]) { border-left: 2px solid var(--hk-danger); padding-left: 10px; }
.form-assurance { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--hk-border); }
.request-form .captcha-panel { min-width: 0; padding: 16px; border: 1px solid var(--hk-border); border-radius: 10px; background: var(--hk-bg-alt); }
.captcha-label { margin: 0 0 12px; color: var(--hk-text-secondary); font-size: .875rem; font-weight: 650; line-height: 1.4; }
#request-captcha { min-width: 0; min-height: 78px; }
#request-captcha:empty { min-height: 0; }
#captcha-status { margin: 8px 0 0; color: var(--hk-text-muted); font-size: .8125rem; line-height: 1.5; }
#captcha-status:empty { display: none; }
.captcha-retry { min-height: 44px; margin-top: 12px; padding: 10px 14px; color: var(--hk-text); border: 1px solid var(--hk-border-strong); border-radius: 8px; background: var(--hk-surface); font-size: .8125rem; line-height: 1.4; cursor: pointer; }
.captcha-retry:hover { background: var(--hk-surface-hover); }
#request-context-summary { padding: 16px; border: 1px solid var(--hk-border); border-radius: 10px; color: var(--hk-text-secondary); background: var(--hk-bg-alt); font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
#request-context-summary strong { color: var(--hk-text); font-weight: 650; }
#request-context-summary :is(p, dl) { margin: 8px 0 0; }
#request-context-summary ul { margin: 8px 0 0; padding-left: 20px; }
.request-context-text { display: block; }
.request-context-clear { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; color: var(--hk-accent); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.request-form .btn { margin-top: 0; min-height: 48px; }
.request-form .form-note { margin: 0; font-size: .8125rem; line-height: 1.6; }
#form-note[data-state="warning"] { color: var(--hk-danger) !important; }
#form-note[data-state="success"] { color: var(--hk-accent) !important; }
main :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--hk-accent); outline-offset: 3px; }

@media (min-width: 1120px) {
  :root { --hc-header-clearance: 100px; }
  .hc-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 80px; gap: 24px; padding-block: 12px; }
  .hc-brand { min-height: 44px; }
  .hc-primary-links { grid-column: 2; grid-row: 1; min-height: 44px; justify-content: center; padding: 0; border-top: 0; }
  .hc-header-actions { grid-column: 3; min-height: 44px; padding: 0; }
}

@media (max-width: 1100px) {
  :root { --hc-grid-gap: 20px; }
  .contact-grid, .hc-launch-layout, .hc-journal-hero-grid, .ts-hero-grid { gap: 32px; }
  .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .hero-grid--page, body[data-hc-section="journal"] .hero-grid--page.blog-hero-grid { gap: 32px; }
  .market-access-grid, .hc-launch-steps, .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid > .form-card { padding: 24px; }
  .request-form .hc-request-setup-grid { grid-template-columns: 1fr; }
  .final-cta-box { align-items: flex-start; flex-direction: column; }
  .final-actions { flex: 0 1 auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (max-width: 960px) {
  :root { --hc-section-space: 48px; }
  .hero-grid--page, body[data-hc-section="journal"] .hero-grid--page.blog-hero-grid,
  .hc-launch-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero, .section-hero, .ts-hero { padding-block: 40px; }
  .hc-launch-copy { max-width: 680px; }
  .hc-setup-card { max-width: none; }
  .contact-copy { padding-top: 0; }
  .contact-copy .section-title { max-width: none; }
  .contact-copy .section-subtitle { max-width: 64ch; }
  .contact-grid { max-width: 720px; }
  .contact-grid > .form-card { grid-row: 1; }
  .contact-grid > .contact-copy { grid-row: 2; }
  .request-form .hc-request-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid, .feature-grid--three, .route-grid, .metrics-grid, .use-case-grid,
  .use-case-grid--six, .platform-layer-grid, .market-access-grid, .stack-grid,
  .content-grid, .doc-grid, .exchanges-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routes-footer { flex-direction: row; align-items: center; }
  .routes-footer > p { flex-basis: 100%; }
  .journal-section-heading { align-items: flex-start; }
  .article-sidebar { position: static; }
}

@media (max-width: 600px) {
  :root { --hc-gutter: 16px; --hc-section-space: 40px; --hc-grid-gap: 16px; --hc-card-padding: 20px; }
  .section-heading, .hc-directory-heading, .hc-journal-section-heading,
  .ts-section-heading, .hc-connect-heading, .journal-section-heading { margin-bottom: 24px; }
  .section-heading { text-align: left; }
  .section-heading .eyebrow { justify-content: flex-start; }
  .section-subtitle { margin-inline: 0; }
  .section-title { font-size: clamp(1.75rem, 7.5vw, 2rem); line-height: 1.2; }
  .hero, .section-hero, .ts-hero, .hc-launch-hero, .hc-journal-hero { padding-block: 32px; }
  .hero-grid--page, body[data-hc-section="journal"] .hero-grid--page.blog-hero-grid,
  .hc-launch-layout, .hc-journal-hero-grid, .ts-hero-grid { gap: 24px; }
  .page-hero-copy h1 { font-size: clamp(2rem, 8vw, 2.65rem); }
  .feature-grid, .feature-grid--three, .route-grid, .metrics-grid, .use-case-grid,
  .use-case-grid--six, .platform-layer-grid, .market-access-grid, .stack-grid,
  .content-grid, .doc-grid, .exchanges-grid, .blog-grid, .hc-launch-steps,
  .timeline-grid, .grid, .hc-journal-grid { grid-template-columns: minmax(0, 1fr); }
  .page-actions, .hc-launch-actions, .callout__actions { gap: 12px; }
  .page-actions .btn, .hc-launch-actions .btn, .callout__actions .btn { width: 100%; }
  .routes-footer > a, .routes-footer > .callout__actions { width: 100%; }
  .routes-footer .hc-text-link { justify-content: flex-start; }
  .hc-launch-proof-grid { gap: 16px; }
  .hc-launch-proof-grid > span { align-items: flex-start; font-size: 12px; }
  .hc-launch-proof-grid i { line-height: 1.7; }
  .ts-profile--featured, .ts-profile--custom { padding: 24px; }
  .ts-profile--featured > .ts-profile-request .btn,
  .ts-profile--custom > .ts-profile-request .btn { width: 100%; }
  .nda-note, .stack-summary, .legal-section { padding: 24px; }
  .final-cta-box, .ts-cta, .hc-journal-cta-box { gap: 24px; padding: 24px; }
  .final-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hc-journal-index .blog-card__body, .blog-card__body { padding: 20px; }
  .contact-grid { gap: 24px; }
  .contact-list { gap: 12px; }
  .contact-note { padding: 20px; }
  .contact-grid > .form-card { padding: 20px; }
  .request-form .hc-request-setup-grid { grid-template-columns: 1fr; gap: 20px; }
  .request-form :is(input[type="email"], input[type="text"], select, textarea) { font-size: 16px; }
  .request-form .btn { padding-inline: 12px; }
  .footer-grid { gap: 24px; }
  .footer-links { column-gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .request-form :is(input, select, textarea), #request-context-summary { border-color: CanvasText; }
  .request-form .privacy-consent:has(input[aria-invalid="true"]) { border-left-color: Mark; }
}

/* The transmission receipt keeps its own dark console palette in both themes. */
.hc-terminal {
  --terminal-bg: #06110c;
  --terminal-surface: #0b1a12;
  --terminal-ink: #e4f5e9;
  --terminal-muted: #a2b7aa;
  --terminal-green: #6bf58f;
  --terminal-border: #284f36;
  box-sizing: border-box;
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--terminal-border);
  border-radius: 16px;
  color: var(--terminal-ink);
  background: var(--terminal-bg);
  box-shadow: 0 32px 100px #0009, 0 0 40px #43ec7910;
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.hc-terminal[open] { display: flex; flex-direction: column; }
.hc-terminal::backdrop { background: #001006b3; backdrop-filter: blur(6px); }
.hc-terminal :is(h2, p, ol) { margin: 0; }
.hc-terminal__head {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px 12px 28px;
  border-bottom: 1px solid var(--terminal-border); background: var(--terminal-surface);
}
.hc-terminal__identity { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.hc-terminal__brand { color: var(--terminal-ink); font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.hc-terminal__brand > span { color: var(--terminal-green); }
.hc-terminal__route { color: var(--terminal-muted); font-size: 11px; line-height: 1.5; }
.hc-terminal__close {
  display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0;
  border: 1px solid transparent; border-radius: 8px;
  color: var(--terminal-muted); background: transparent; cursor: pointer;
}
.hc-terminal__close:hover { color: var(--terminal-ink); border-color: var(--terminal-border); background: #13271b; }
.hc-terminal__body {
  display: flex; flex-direction: column; gap: 20px; min-height: 0;
  padding: 28px; overflow-y: auto; overscroll-behavior: contain;
  background-image: linear-gradient(#6bf58f04 1px, transparent 1px), linear-gradient(90deg, #6bf58f04 1px, transparent 1px), radial-gradient(ellipse at 50% 0, #6bf58f08, transparent 70%);
  background-size: 24px 24px, 24px 24px, auto;
}
.hc-terminal__topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hc-terminal__title { color: var(--terminal-muted); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .1em; }
.hc-terminal__status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--terminal-border); border-radius: 5px;
  color: var(--terminal-green); background: #6bf58f09;
  font-size: 11px; font-weight: 650; line-height: 1.3; letter-spacing: .04em;
}
.hc-terminal__status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.hc-terminal__command { color: var(--terminal-ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.hc-terminal__command > span:first-child { color: var(--terminal-green); }
.hc-terminal__cursor { margin-left: 6px; color: var(--terminal-green); }
.hc-terminal__log {
  min-height: 100px; max-height: clamp(100px, calc(100vh - 420px), 380px);
  max-height: clamp(100px, calc(100dvh - 420px), 380px);
  padding: 16px 18px; overflow-y: auto;
  list-style: none; border: 1px solid #20402c; border-radius: 8px; background: #020b06;
  scrollbar-color: #386247 #06110c; scrollbar-width: thin; overscroll-behavior: contain;
}
.hc-terminal__row { color: var(--terminal-muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.hc-terminal__row + .hc-terminal__row { margin-top: 4px; }
.hc-terminal__row:has(.hc-terminal__stamp) { display: grid; grid-template-columns: 7ch minmax(0, 1fr) 18ch; align-items: baseline; gap: 4px 12px; }
.hc-terminal__stamp { color: #83a68e; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-terminal__event { min-width: 0; }
.hc-terminal__code { color: var(--terminal-green); font-variant-numeric: tabular-nums; }
.hc-terminal__row:has(.hc-terminal__stamp) .hc-terminal__code { grid-column: 3; grid-row: 1; text-align: right; }
.hc-terminal__row[data-state="success"] { color: var(--terminal-green); }
.hc-terminal__row[data-state="error"] { color: #ffb5a8; }
.hc-terminal__result { padding-top: 20px; border-top: 1px solid var(--terminal-border); }
.hc-terminal__result h2 { color: var(--terminal-ink); font-family: inherit; font-size: clamp(1.25rem, 3.2vw, 1.75rem); font-weight: 650; line-height: 1.3; letter-spacing: -.035em; overflow-wrap: break-word; }
.hc-terminal__result p { max-width: 62ch; margin-top: 12px; color: var(--terminal-muted); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.65; }
.hc-terminal[data-state="success"] { border-color: #43875a; }
.hc-terminal[data-state="success"] .hc-terminal__result h2 { color: var(--terminal-green); }
.hc-terminal[data-state="error"] .hc-terminal__status { color: #ffb5a8; border-color: #7d4438; background: #7d443815; }
.hc-terminal[data-state="error"] .hc-terminal__result h2 { color: #ffb5a8; }
.hc-terminal__foot {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; padding: 16px 28px; border-top: 1px solid var(--terminal-border); background: var(--terminal-surface);
}
.hc-terminal__footer-label { color: var(--terminal-muted); font-size: 10px; line-height: 1.6; }
.hc-terminal__footer-label > span { padding-inline: 6px; color: #5c8067; }
.hc-terminal__dismiss {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 136px; padding: 10px 16px;
  border: 1px solid #43875a; border-radius: 7px; color: var(--terminal-ink); background: #163b23;
  font: 600 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; cursor: pointer;
}
.hc-terminal__dismiss:hover { background: #20502f; border-color: var(--terminal-green); }
.hc-terminal :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--terminal-green); outline-offset: 3px; }
@media (max-width: 600px) {
  .hc-terminal__head { padding: 10px 12px 10px 20px; }
  .hc-terminal__route { font-size: 10px; }
  .hc-terminal__body { gap: 16px; padding: 20px; }
  .hc-terminal__log { max-height: clamp(100px, calc(100vh - 460px), 320px); max-height: clamp(100px, calc(100dvh - 460px), 320px); padding: 12px; }
  .hc-terminal__row { font-size: 11px; }
  .hc-terminal__row:has(.hc-terminal__stamp) { grid-template-columns: 7ch minmax(0, 1fr); gap: 4px 8px; }
  .hc-terminal__row:has(.hc-terminal__stamp) .hc-terminal__code { grid-column: 2; grid-row: 2; text-align: left; }
  .hc-terminal__foot { padding: 16px 20px; }
  .hc-terminal__dismiss { width: 100%; }
}
@media (max-width: 380px) {
  .hc-terminal__route { display: none; }
  .hc-terminal__command { font-size: 12px; }
  .hc-terminal__row:has(.hc-terminal__stamp) { grid-template-columns: minmax(0, 1fr); }
  .hc-terminal__row:has(.hc-terminal__stamp) .hc-terminal__code { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-terminal, .hc-terminal * { animation: none; transition: none; }
}
@media (forced-colors: active) {
  .hc-terminal, .hc-terminal__head, .hc-terminal__log, .hc-terminal__result,
  .hc-terminal__foot, .hc-terminal__status, .hc-terminal__dismiss { border-color: CanvasText; }
}
