/* Defines the receiver console color and measurement system. */
:root {
  color-scheme: light;
  --canvas: #fafaf7;
  --canvas-deep: #f1f1ea;
  --ink: #1c2b24;
  --muted: #57685f;
  --faint: #84948b;
  --green: #1e5c3a;
  --green-soft: rgba(30, 92, 58, 0.10);
  --leaf: #2e7d4f;
  --blue: #33648f;
  --danger: #b3372f;
  --card: #ffffff;
  --card-strong: #ffffff;
  --line: rgba(30, 92, 58, 0.15);
  --line-strong: rgba(30, 92, 58, 0.34);
  --shadow: 0 14px 44px rgba(18, 53, 36, 0.10);
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

/* Applies the warm paper background of the receiver console. */
* {
  box-sizing: border-box;
}

/* Keeps anchors, buttons and fields aligned with the application typeface. */
button,
input,
select {
  font: inherit;
}

/* Establishes the fixed paper background and comfortable text rendering. */
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: radial-gradient(circle at 78% 2%, rgba(30, 92, 58, 0.05), transparent 30rem), radial-gradient(circle at 8% 46%, rgba(51, 100, 143, 0.04), transparent 24rem), linear-gradient(160deg, var(--canvas) 0%, var(--canvas-deep) 100%);
}

/* Keeps selection legible against the paper canvas. */
::selection {
  color: #ffffff;
  background: var(--green);
}

/* Styles the scrollbar as part of the receiver palette. */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Styles the scrollbar track with a recessed surface. */
::-webkit-scrollbar-track {
  background: rgba(30, 92, 58, 0.06);
}

/* Styles the scrollbar thumb with a quiet signal color. */
::-webkit-scrollbar-thumb {
  border: 2px solid rgba(30, 92, 58, 0.06);
  border-radius: 99px;
  background: rgba(30, 92, 58, 0.32);
}

/* Supplies an accessibility-only label pattern. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Places a diffuse tinted wash behind the interface. */
.ambient {
  position: fixed;
  z-index: -2;
  width: 29rem;
  height: 29rem;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

/* Colors the primary top-right ambient wash. */
.ambient-one {
  top: -14rem;
  right: -10rem;
  background: rgba(30, 92, 58, 0.10);
}

/* Colors the secondary lower-left ambient wash. */
.ambient-two {
  bottom: -16rem;
  left: -12rem;
  background: rgba(51, 100, 143, 0.07);
  animation-delay: -9s;
}

/* Adds a subtle canopy tint to the receiver environment. */
.grid-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background: radial-gradient(ellipse at center, rgba(30, 92, 58, 0.04), transparent 65%);
}

/* Limits the page width while preserving a generous desktop rhythm. */
.shell {
  width: min(100% - 40px, 1400px);
  margin: 0 auto;
  padding: 24px 0 52px;
}

/* Aligns the brand and machine state at the top of the console. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
}

/* Styles the compact receiver mark. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
}

/* Gives the wordmark a signal-like emblem. */
.wordmark-mark {
  color: var(--green);
  font-size: 1.45rem;
  line-height: 0;
}

/* Displays compact receiver health information. */
.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Creates the live status indicator. */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 5px rgba(46, 125, 79, 0.12);
  animation: pulse 2.8s ease-in-out infinite;
}

/* Softens the informational separator. */
.status-divider {
  color: var(--faint);
}

/* Creates the asymmetric first-view layout. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  min-height: 390px;
  gap: 48px;
  padding: 64px 5.8vw 48px;
}

/* Limits narrative text width for scanability. */
.hero-copy {
  max-width: 760px;
}

/* Establishes uppercase microcopy. */
.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Separates the protocol version without using a badge component. */
.eyebrow span {
  margin-left: 12px;
  color: var(--blue);
}

/* Defines the receiver-console headline. */
h1,
h2,
p {
  margin-top: 0;
}

/* Shapes the primary hierarchy. */
h1 {
  max-width: 700px;
  margin: 14px 0 18px;
  font-size: clamp(2.55rem, 5vw, 5.5rem);
  font-weight: 720;
  letter-spacing: -0.072em;
  line-height: 0.98;
}

/* Gives the critical destination language a restrained evergreen accent. */
h1 em {
  color: var(--green);
  font-style: normal;
}

/* Sets readable explanatory text. */
.intro,
.docs-intro > p {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

/* Adds an engineering-style caption below the hero copy. */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* Provides a controlled visual focal point without external image assets. */
.hero-signal {
  position: relative;
  justify-self: center;
  width: min(30vw, 315px);
  aspect-ratio: 1;
  border: 1px solid rgba(30, 92, 58, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 92, 58, 0.10) 0, rgba(250, 250, 247, 0.4) 41%, transparent 68%);
  box-shadow: inset 0 0 70px rgba(30, 92, 58, 0.06), 0 0 44px rgba(30, 92, 58, 0.06);
  transition: transform 180ms ease-out;
}

/* Anchors the visual signal node. */
.signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21%;
  height: 21%;
  border: 1px solid rgba(30, 92, 58, 0.55);
  border-radius: 50%;
  background: rgba(30, 92, 58, 0.16);
  box-shadow: 0 0 0 16px rgba(30, 92, 58, 0.06), 0 0 40px rgba(30, 92, 58, 0.22);
  transform: translate(-50%, -50%);
}

/* Draws the first data orbit. */
.signal-orbit {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(30, 92, 58, 0.38);
  border-radius: 50%;
}

/* Rotates a vertically stretched orbit. */
.signal-orbit-one {
  transform: rotateX(65deg) rotateZ(22deg);
  animation: orbit 13s linear infinite;
}

/* Rotates a diagonally stretched orbit. */
.signal-orbit-two {
  inset: 25%;
  border-color: rgba(51, 100, 143, 0.45);
  transform: rotateY(65deg) rotateZ(-36deg);
  animation: orbit 10s linear infinite reverse;
}

/* Positions upper signal telemetry. */
.signal-label {
  position: absolute;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* Anchors the top telemetry. */
.signal-label-top {
  top: 12%;
  left: 12%;
}

/* Anchors the lower telemetry. */
.signal-label-bottom {
  right: 8%;
  bottom: 16%;
  color: var(--blue);
}

/* Defines the reusable functional card material. */
.glass-panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* Adds a restrained top-edge accent line that reinforces the card material. */
.glass-panel::before {
  position: absolute;
  inset: 0 15% auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(30, 92, 58, 0.30), transparent);
  opacity: 0.6;
  pointer-events: none;
}

/* Sets consistent internal spacing for the access surface. */
.access-panel,
.records-panel {
  padding: clamp(24px, 3vw, 38px);
}

/* Arranges heading text and contextual labels. */
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

/* Styles section titles. */
h2 {
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  letter-spacing: -0.04em;
}

/* Creates a reserved right-aligned context note. */
.panel-note {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* Splits secret entry from the primary receiver action. */
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

/* Aligns the primary action with the token input rather than its help text. */
.access-grid > .primary-button {
  min-width: 158px;
  margin-top: 29px;
  white-space: nowrap;
}

/* Gives fields a compact operational label. */
.field-label,
.retention-title {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}

/* Combines the secret field and reveal control. */
.token-row {
  display: flex;
  gap: 8px;
}

/* Keeps the visibility control wide enough for one-line Chinese text. */
.token-row .ghost-button {
  min-width: 68px;
  white-space: nowrap;
}

/* Establishes receiver field material. */
input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(30, 92, 58, 0.28);
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

/* Pads text-oriented fields. */
input {
  padding: 0 13px;
}

/* Adds visible keyboard focus. */
input:focus,
select:focus,
button:focus-visible,
summary:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 92, 58, 0.14);
}

/* Uses subdued copy for field-level guidance. */
.field-help,
.retention-help {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* Supplies shared control behavior. */
button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

/* Provides a clear primary call to action. */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 46px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 9px 26px rgba(30, 92, 58, 0.22);
}

/* Makes primary control movement feel responsive. */
.button-arrow {
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

/* Lifts interactive elements minimally. */
button:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* Moves the directional glyph independently. */
.primary-button:hover:not(:disabled) .button-arrow {
  transform: translate(2px, -2px);
}

/* Provides low-emphasis bordered controls. */
.ghost-button {
  color: var(--green);
  border-color: var(--line);
  background: rgba(30, 92, 58, 0.04);
}

/* Clarifies available secondary action. */
.ghost-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(30, 92, 58, 0.09);
}

/* Marks irreversible actions with a limited red treatment. */
.danger-button {
  color: var(--danger);
  border-color: rgba(179, 55, 47, 0.32);
  background: rgba(179, 55, 47, 0.06);
}

/* Clarifies disabled action state. */
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

/* Gives asynchronous feedback a stable reserved line. */
.status {
  min-height: 21px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Colors success feedback. */
.status[data-state="success"] {
  color: var(--leaf);
}

/* Colors failure feedback. */
.status[data-state="error"] {
  color: var(--danger);
}

/* Creates a line-led statistics band. */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Separates statistics without card repetition. */
.metric {
  min-width: 0;
  padding: 21px 22px;
  border-right: 1px solid var(--line);
}

/* Removes the trailing partition. */
.metric:last-child {
  border-right: 0;
}

/* Styles metric descriptors. */
.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
}

/* Styles metric values. */
.metric strong {
  display: block;
  overflow: hidden;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Allows the records heading tools to wrap at constrained widths. */
.records-heading {
  align-items: flex-end;
}

/* Aligns list utility controls. */
.records-tools,
.retention-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Creates a compact filter control. */
.search-field {
  position: relative;
  min-width: min(100%, 250px);
}

/* Reserves space for the search glyph. */
.search-field input {
  min-height: 42px;
  padding-right: 36px;
}

/* Positions the decorative search glyph. */
.search-field > span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--faint);
  transform: translateY(-50%);
}

/* Clarifies selection and result scope. */
.selection-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 0.76rem;
}

/* Creates a horizontal overflow boundary for the data table. */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

/* Keeps data columns stable. */
table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

/* Defines table header visual hierarchy. */
th {
  padding: 12px 13px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
  background: rgba(30, 92, 58, 0.06);
}

/* Defines table cell rhythm. */
td {
  padding: 13px;
  color: var(--ink);
  border-top: 1px solid rgba(30, 92, 58, 0.09);
  vertical-align: middle;
}

/* Narrows checkbox cells. */
.check-column {
  width: 38px;
}

/* Restores natural checkbox dimensions. */
input[type="checkbox"] {
  width: 15px;
  min-height: auto;
  height: 15px;
  accent-color: var(--green);
}

/* Gives normal records a calm hover response. */
.batch-file-row {
  transition: background 150ms ease;
}

/* Makes the hovered record easier to scan. */
.batch-file-row:hover {
  background: rgba(30, 92, 58, 0.05);
}

/* Creates the per-batch control rail. */
.batch-divider-cell {
  display: table-cell;
  padding: 11px 13px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  background: rgba(30, 92, 58, 0.07);
}

/* Keeps the batch identity and actions on one full-width control rail. */
.batch-divider-cell > span:first-child {
  display: inline-block;
  max-width: calc(100% - 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

/* Places batch actions at the far edge while preserving the colspan width. */
.batch-divider-cell > .batch-actions {
  float: right;
  white-space: nowrap;
}

/* Aligns batch-level actions. */
.batch-actions,
.file-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Makes table actions compact. */
.batch-divider-cell button,
.file-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.74rem;
}

/* Colors a divider for visual batch continuity. */
.batch-tone--mint .batch-divider-cell {
  color: var(--leaf);
  background: rgba(46, 125, 79, 0.09);
}

/* Colors a divider for visual batch continuity. */
.batch-tone--violet .batch-divider-cell {
  color: var(--blue);
  background: rgba(51, 100, 143, 0.09);
}

/* Colors a divider for visual batch continuity. */
.batch-tone--amber .batch-divider-cell {
  color: #8a6116;
  background: rgba(196, 148, 58, 0.13);
}

/* Colors a divider for visual batch continuity. */
.batch-tone--rose .batch-divider-cell {
  color: #93394c;
  background: rgba(179, 55, 77, 0.09);
}

/* Defines the explicit no-record state. */
.empty-state {
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

/* Separates lifecycle controls from storage records. */
.retention-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 21px;
}

/* Keeps compact select controls practical. */
.retention-actions select {
  width: 145px;
  min-height: 40px;
  padding: 0 10px;
}

/* Builds the documentation composition. */
.docs-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(30px, 6vw, 90px);
  margin-top: 82px;
  padding: 48px 5.8vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Sticks document orientation on large screens. */
.docs-intro {
  align-self: start;
}

/* Styles the supporting contract link. */
.inline-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

/* Keeps documentation accordions separated by utility lines. */
.docs-list {
  border-top: 1px solid var(--line);
}

/* Creates a disclosure row. */
details {
  border-bottom: 1px solid var(--line);
}

/* Defines the interactive accordion trigger. */
summary {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
}

/* Hides browser-specific disclosure decoration. */
summary::-webkit-details-marker {
  display: none;
}

/* Styles documentation serial numbers. */
summary > span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.73rem;
}

/* Styles documentation labels. */
summary strong {
  font-size: 1rem;
}

/* Rotates the disclosure mark on open. */
summary i {
  color: var(--green);
  font-size: 1.3rem;
  font-style: normal;
  transition: transform 180ms ease;
}

/* Turns the plus glyph into a close glyph. */
details[open] summary i {
  transform: rotate(45deg);
}

/* Provides comfortable reading room inside accordions. */
.details-body {
  padding: 0 0 22px 45px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* Separates consecutive explanation paragraphs. */
.details-body p + p {
  margin-top: 14px;
}

/* Styles inline protocol identifiers. */
code {
  color: #17442c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(30, 92, 58, 0.07);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Gives copyable protocol samples a robust evergreen surface. */
pre {
  margin: 13px 0 18px;
  padding: 15px;
  overflow: auto;
  border: 1px solid rgba(18, 53, 36, 0.6);
  border-radius: 7px;
  color: #e8f2ec;
  background: #123524;
  box-shadow: inset 0 0 0 1px rgba(232, 242, 236, 0.05), 0 12px 30px rgba(18, 53, 36, 0.14);
  line-height: 1.72;
}

/* Colors language keywords in the embedded implementation examples. */
.tok-keyword { color: #9fe8b8; }

/* Colors variable and parameter identifiers in the examples. */
.tok-variable { color: #8fd3e8; }

/* Colors strings and endpoint literals in the examples. */
.tok-string { color: #d7e89a; }

/* Colors comments and explanatory fragments in the examples. */
.tok-comment { color: #86a896; }

/* Colors command names and function calls in the examples. */
.tok-function { color: #f0b183; }

/* Colors numeric constants in the examples. */
.tok-number { color: #e8c98f; }

/* Preserves source code wrapping where possible. */
pre code {
  white-space: pre;
  background: transparent;
  padding: 0;
}

/* Defines header-like rows in the header contract table. */
.doc-table {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 92, 58, 0.18);
  border-radius: 7px;
}

/* Creates an aligned three-column header table. */
.doc-table > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) 80px minmax(0, 1.9fr);
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid rgba(30, 92, 58, 0.10);
}

/* Removes the first row separator. */
.doc-table > div:first-child {
  border-top: 0;
  color: var(--muted);
  font-size: 0.76rem;
  background: rgba(30, 92, 58, 0.06);
}

/* Styles semantic requirement tags. */
.tag {
  width: fit-content;
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 0.67rem;
  line-height: 1.55;
}

/* Identifies required protocol fields. */
.required {
  color: #ffffff;
  background: var(--leaf);
}

/* Identifies optional protocol fields. */
.optional {
  color: #ffffff;
  background: var(--blue);
}

/* Creates compact recovery guidance. */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

/* Styles an individual response behavior. */
.status-grid > div {
  padding: 11px 12px;
  border-left: 2px solid var(--green);
  background: rgba(30, 92, 58, 0.05);
}

/* Adds status code hierarchy. */
.status-grid b {
  display: block;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

/* Styles response guidance. */
.status-grid span {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

/* Provides final page grounding. */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 0;
  color: var(--faint);
  font-size: 0.74rem;
  line-height: 1.6;
}

/* Keeps every receiver section readable before scripting is available. */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Preserves the final reveal state after viewport observation. */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Defines the ambient motion path. */
@keyframes drift {
  from { transform: translate3d(-2vw, -1vh, 0) scale(0.94); }
  to { transform: translate3d(3vw, 3vh, 0) scale(1.08); }
}

/* Defines the live receiver status motion. */
@keyframes pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

/* Defines orbit motion around the receiver node. */
@keyframes orbit {
  to { rotate: 1turn; }
}

/* Reflows the page at tablet widths. */
@media (max-width: 900px) {
  .hero,
  .docs-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-right: 0;
    padding-left: 0;
  }

  .hero-signal {
    display: none;
  }

  .docs-section {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Reflows controls and metrics on narrow screens. */
@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1400px);
    padding-top: 14px;
  }

  .system-status span:not(.status-dot) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .access-grid,
  .metrics-strip,
  .status-grid {
    grid-template-columns: 1fr;
  }

  /* Removes the desktop alignment offset after the access grid stacks. */
  .access-grid > .primary-button {
    margin-top: 8px;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .records-heading,
  .records-tools,
  .retention-bar,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .records-tools,
  .retention-actions {
    flex-wrap: wrap;
  }

  .search-field {
    width: 100%;
  }

  .selection-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .details-body {
    padding-left: 0;
  }

  .doc-table {
    overflow-x: auto;
  }

  .doc-table > div {
    min-width: 520px;
  }
}

/* Respects users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
