:root {
  --bg: #0b1020;
  --bg-soft: #111933;
  --bg-panel: rgba(13, 19, 36, 0.9);
  --bg-panel-strong: rgba(16, 23, 42, 0.96);
  --bg-elevated: rgba(20, 29, 52, 0.92);
  --text: #edf2ff;
  --muted: #9cacd4;
  --line: rgba(165, 185, 255, 0.14);
  --line-strong: rgba(165, 185, 255, 0.22);
  --accent: #6dd3ff;
  --accent-strong: #8be48b;
  --accent-warm: #ffc56a;
  --danger: #ff8e93;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --code-bg: rgba(109, 211, 255, 0.12);
  --input-bg: rgba(8, 13, 26, 0.86);
  --chip-bg: rgba(109, 211, 255, 0.12);
}

body[data-theme="light"] {
  --bg: #f4efe2;
  --bg-soft: #fff7eb;
  --bg-panel: rgba(255, 252, 245, 0.9);
  --bg-panel-strong: rgba(255, 248, 234, 0.95);
  --bg-elevated: rgba(255, 251, 241, 0.9);
  --text: #1d1c1a;
  --muted: #675c4b;
  --line: rgba(29, 28, 26, 0.12);
  --line-strong: rgba(29, 28, 26, 0.18);
  --accent: #1f728c;
  --accent-strong: #2d6546;
  --accent-warm: #b07b22;
  --danger: #9d3c43;
  --shadow: 0 22px 65px rgba(79, 55, 12, 0.14);
  --code-bg: rgba(31, 114, 140, 0.1);
  --input-bg: rgba(255, 255, 255, 0.82);
  --chip-bg: rgba(31, 114, 140, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(109, 211, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 228, 139, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 55%, #050814 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.7;
}

body::before {
  top: -8rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(109, 211, 255, 0.16);
}

body::after {
  bottom: -9rem;
  left: -5rem;
  width: 19rem;
  height: 19rem;
  background: rgba(139, 228, 139, 0.12);
}

.page-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.masthead,
.panel,
.table-card,
.stat-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.masthead {
  position: relative;
  overflow: hidden;
  padding: 2.75rem;
  border-radius: 30px;
  background:
    linear-gradient(140deg, rgba(15, 24, 46, 0.92), rgba(11, 17, 32, 0.85)),
    var(--bg-panel);
  animation: rise-in 640ms ease-out both;
}

body[data-theme="light"] .masthead {
  background:
    linear-gradient(140deg, rgba(255, 249, 237, 0.94), rgba(248, 238, 214, 0.84)),
    var(--bg-panel);
}

.masthead::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 211, 255, 0.18), rgba(109, 211, 255, 0));
}

h1 {
  margin: 0;
  font-family: "Rockwell", "Georgia", serif;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-copy {
  max-width: none;
}

.lede {
  margin: 1rem 0 0;
  max-width: none;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.status-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(7, 13, 27, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

body[data-theme="light"] .status-card {
  background: rgba(255, 252, 245, 0.72);
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-label,
.table-badge {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
}

.status-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: var(--accent-warm);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.9rem 0 0.8rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 197, 106, 0.12);
  color: var(--accent-warm);
  font-weight: 700;
  font-size: 0.92rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.panel {
  padding: 1.35rem;
  border-radius: 24px;
  background: var(--bg-panel-strong);
  animation: rise-in 680ms ease-out both;
}

.panel:nth-of-type(2),
.table-card:nth-of-type(2) {
  animation-delay: 90ms;
}

.panel h2,
.table-card h3,
.stat-card strong {
  font-family: "Rockwell", "Georgia", serif;
}

.panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.reservation-form,
.search-form {
  display: grid;
  gap: 0.9rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.input.is-live-invalid {
  border-color: rgba(255, 197, 106, 0.66);
  background: rgba(255, 197, 106, 0.08);
}

.input.is-live-invalid:focus {
  border-color: rgba(255, 197, 106, 0.82);
  box-shadow: 0 0 0 4px rgba(255, 197, 106, 0.14);
}

.input.is-live-valid {
  border-color: rgba(109, 211, 255, 0.28);
}

.input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(109, 211, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(109, 211, 255, 0.14);
  transform: translateY(-1px);
}

textarea {
  min-height: 5rem;
  resize: vertical;
}

.inline-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.26);
}

button:disabled {
  cursor: default;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.primary-button {
  color: #04111b;
  background: linear-gradient(135deg, var(--accent), #90ffd0);
}

.primary-button:disabled {
  color: rgba(237, 242, 255, 0.72);
  background: linear-gradient(135deg, rgba(93, 109, 145, 0.48), rgba(54, 68, 101, 0.68));
  border: 1px solid rgba(165, 185, 255, 0.12);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 197, 106, 0.12);
  border: 1px solid rgba(255, 197, 106, 0.2);
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.validation-hint {
  min-height: 1.3rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 180ms ease;
}

.validation-hint.is-invalid {
  color: var(--accent-warm);
}

.validation-hint.is-valid {
  color: rgba(237, 242, 255, 0.82);
}

.search-shell {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.search-shell .input {
  flex: 1;
}

.search-result {
  min-height: 1.4rem;
  color: var(--danger);
  font-size: 0.93rem;
  font-weight: 700;
}

.search-result.is-success,
.status-success {
  color: var(--accent-strong);
}

.microcopy.status-warning,
.search-result.status-warning {
  color: var(--accent-warm);
}

.microcopy.status-error,
.search-result.status-error {
  color: var(--danger);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  animation: rise-in 720ms ease-out both;
}

.tab-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-panel-strong);
  box-shadow: var(--shadow);
  animation: rise-in 700ms ease-out both;
  position: sticky;
  top: 0.75rem;
  z-index: 30;
  backdrop-filter: blur(16px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-button {
  min-width: 8.5rem;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.tab-button:hover {
  box-shadow: none;
}

.tab-button.is-active {
  background: linear-gradient(135deg, var(--accent), #90ffd0);
  color: #04111b;
}

.tab-panels {
  margin-top: 1.5rem;
}

.tab-panel {
  animation: rise-in 320ms ease-out both;
}

.faq-question {
  margin: 0;
  color: var(--text);
  font-family: "Rockwell", "Georgia", serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1;
}

.hook-card {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-panel-strong);
  box-shadow: var(--shadow);
  animation: rise-in 740ms ease-out both;
}

.terminal-shell {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid rgba(130, 146, 186, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 24, 40, 0.98), rgba(7, 11, 20, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="light"] .terminal-shell {
  background:
    linear-gradient(180deg, rgba(27, 34, 52, 0.98), rgba(15, 20, 31, 0.98));
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(130, 146, 186, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.terminal-dot-danger {
  background: #ff6f7d;
}

.terminal-dot-warn {
  background: #ffc05a;
}

.terminal-dot-safe {
  background: #68d391;
}

.terminal-title {
  margin-left: 0.35rem;
  color: rgba(237, 242, 255, 0.72);
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
  font-size: 0.82rem;
}

.terminal-body {
  min-height: 14rem;
  padding: 1rem 1.05rem 1.15rem;
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
  font-size: 0.94rem;
  line-height: 1.7;
}

.terminal-body-compact {
  min-height: 7.5rem;
}

.terminal-line {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-line-command {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28rem;
  white-space: normal;
}

.terminal-line + .terminal-line {
  margin-top: 0.32rem;
}

.terminal-prefix {
  display: inline-flex;
  align-items: baseline;
  gap: 0.02rem;
  white-space: nowrap;
}

.terminal-prompt {
  color: #77e2b8;
}

.terminal-separator,
.terminal-path {
  color: rgba(237, 242, 255, 0.72);
}

.terminal-command {
  color: #edf2ff;
}

.terminal-input {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.terminal-output {
  margin-top: 0.42rem;
  color: rgba(237, 242, 255, 0.92);
  font-size: 0.94rem;
  line-height: 1.55;
}

.terminal-status-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.18rem 0 0;
  color: rgba(237, 242, 255, 0.86);
}

.terminal-status-label {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

.terminal-status-dots {
  flex: 1 1 auto;
  min-width: 0;
}

.terminal-status-dots::before {
  content: ".........................................................";
  color: rgba(237, 242, 255, 0.72);
}

.terminal-failed-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.42rem;
  border-radius: 0.32rem;
  background: #c93b22;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.terminal-failed-badge[hidden] {
  display: none !important;
}

.hook-card .terminal-meta-line {
  margin: 0.18rem 0 0;
  color: rgba(237, 242, 255, 0.74);
  white-space: normal;
}

.hook-card .terminal-meta-line-error {
  margin-top: 1.2rem;
  color: #ff8e93;
}

.hook-card .terminal-meta-line-warning {
  color: var(--accent-warm);
}

.hook-card .terminal-meta-line-success {
  color: var(--accent-strong);
}

.terminal-caret {
  display: inline-block;
  width: 0.62rem;
  height: 1.05em;
  margin-left: 0.08rem;
  vertical-align: -0.15em;
  background: #8be48b;
  animation: terminal-caret-blink 1s step-end infinite;
}

.terminal-caret[hidden] {
  display: none !important;
}

.hook-card h2 {
  margin: 0 0 0.55rem;
  font-family: "Rockwell", "Georgia", serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.hook-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hook-card p code {
  padding: 0.08rem 0.35rem;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--accent);
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
  font-size: 0.92em;
}

.hook-instructions,
.alias-instructions {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.hook-instructions h3,
.alias-instructions h3,
.alias-placeholder h2 {
  margin: 0 0 0.75rem;
  font-family: "Rockwell", "Georgia", serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.hook-instructions p,
.alias-instructions p,
.alias-placeholder p {
  margin: 0;
}

.alias-placeholder {
  padding: 0;
  border: 0;
  background: transparent;
}

.hook-steps {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.hook-steps li + li {
  margin-top: 0.45rem;
}

.hook-steps code {
  padding: 0.08rem 0.35rem;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--accent);
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
  font-size: 0.92em;
}

.code-panel-stack {
  display: grid;
  gap: 1rem;
}

.code-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(6, 10, 22, 0.92);
}

body[data-theme="light"] .code-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.92);
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 3.6rem 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(109, 211, 255, 0.06);
}

.code-panel-title {
  color: var(--text);
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.copy-button {
  position: absolute;
  top: 0.62rem;
  right: 0.72rem;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(109, 211, 255, 0.14);
  background: rgba(109, 211, 255, 0.08);
  color: var(--accent);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.code-panel:hover .copy-button,
.code-panel:focus-within .copy-button {
  opacity: 1;
  pointer-events: auto;
}

.copy-button:hover,
.copy-button:focus-visible {
  box-shadow: none;
  background: rgba(109, 211, 255, 0.14);
  border-color: rgba(109, 211, 255, 0.22);
}

.copy-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border: 1.6px solid currentColor;
  border-radius: 0.2rem;
}

.copy-icon::before {
  top: 0.18rem;
  left: 0.08rem;
  opacity: 0.82;
}

.copy-icon::after {
  top: 0;
  left: 0.28rem;
  background: transparent;
}

.code-block {
  margin: 0;
  width: 100%;
  padding: 1rem 1.1rem 1.15rem;
  background: transparent;
  color: #d7e5ff;
  overflow-x: auto;
  white-space: pre;
  word-break: normal;
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.code-block code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
}

body[data-theme="light"] .code-block {
  color: #1b2234;
}

.token-comment {
  color: #7f92ba;
  font-style: italic;
}

.token-keyword {
  color: #82cfff;
}

.token-name {
  color: #b9c8ff;
}

.token-string,
.token-fstring {
  color: #8fe7a7;
}

.token-number {
  color: #ffc56a;
}

.token-operator {
  color: #f2a6c8;
}

.token-constant {
  color: #ffdc8a;
}

body[data-theme="light"] .token-keyword {
  color: #00597a;
}

body[data-theme="light"] .token-name {
  color: #3049a3;
}

body[data-theme="light"] .token-string,
body[data-theme="light"] .token-fstring {
  color: #1f6a3c;
}

body[data-theme="light"] .token-number {
  color: #a66300;
}

body[data-theme="light"] .token-operator {
  color: #98456a;
}

body[data-theme="light"] .token-constant {
  color: #8d5f00;
}

body[data-theme="light"] .token-comment {
  color: #66708c;
}

.stat-card {
  padding: 1.25rem 1.15rem;
  border-radius: 22px;
  background: var(--bg-elevated);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--accent);
  letter-spacing: -0.03em;
}

.table-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-panel-strong);
  animation: rise-in 760ms ease-out both;
}

.table-card-wide {
  width: 100%;
}

.search-results-card {
  margin-top: 1rem;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.2rem 1.1rem;
  border-top: 1px solid var(--line);
  background: rgba(109, 211, 255, 0.03);
}

.pagination-status {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.pagination-button {
  min-width: 8.5rem;
}

.table-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(109, 211, 255, 0.08), rgba(109, 211, 255, 0));
}

.table-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.table-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.table-badge {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(109, 211, 255, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  white-space: nowrap;
}

.table-wrap {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  padding: 0.82rem 0.72rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(109, 211, 255, 0.05);
}

th:first-child,
td:first-child {
  width: 6.25rem;
}

th:nth-child(2),
td:nth-child(2) {
  width: 28rem;
}

th:nth-child(3),
td:nth-child(3) {
  width: 9.5rem;
}

tbody tr {
  transition: background-color 180ms ease;
}

tbody tr:hover {
  background: rgba(109, 211, 255, 0.05);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-empty-state {
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  padding-block: 1.1rem;
}

.hash-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.34rem 0.55rem;
  border-radius: 14px;
  background: var(--chip-bg);
  color: var(--accent);
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
}

.reserved-by {
  display: block;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

.subtle {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.upvote-pill {
  display: inline-grid;
  gap: 0.35rem;
  justify-items: start;
}

.vote-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.85rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 197, 106, 0.12);
  color: var(--accent-warm);
  font-weight: 800;
}

.upvote-button {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 197, 106, 0.28);
  background: rgba(255, 197, 106, 0.08);
  color: var(--accent-warm);
  box-shadow: none;
}

.upvote-button:hover:not(:disabled) {
  box-shadow: none;
}

.upvote-button:disabled {
  cursor: default;
  opacity: 0.78;
}

.upvote-button.is-locked {
  background: rgba(139, 228, 139, 0.1);
  border-color: rgba(139, 228, 139, 0.18);
  color: var(--accent-strong);
}

.footer-note {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-note a {
  color: var(--accent);
  text-decoration: none;
}

.footer-note a:hover,
.footer-note a:focus-visible {
  text-decoration: underline;
}

.jump-to-top-button {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(16, 23, 42, 0.92);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.7rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  z-index: 35;
}

.jump-to-top-button:hover,
.jump-to-top-button:focus-visible {
  background: rgba(24, 34, 61, 0.96);
  border-color: rgba(109, 211, 255, 0.26);
}

.jump-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.jump-to-top-button[hidden] {
  display: inline-flex;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminal-caret-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .hero-copy,
  .actions-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .tab-bar {
    display: flex;
    width: calc(100% + 0.25rem);
    margin-inline: -0.125rem;
    padding-inline: 0.6rem;
    scroll-snap-type: x proximity;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1rem, 1280px);
    padding-top: 0.75rem;
  }

  .masthead {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .tab-bar {
    width: calc(100% + 0.5rem);
    margin-inline: -0.25rem;
    border-radius: 22px;
  }

  .tab-button {
    min-width: max-content;
  }

  .search-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-row {
    flex-direction: column;
  }

  .code-panel-header {
    padding-right: 3.3rem;
  }

  th,
  td {
    padding-inline: 0.66rem;
  }

  .hash-chip {
    font-size: 0.75rem;
  }

  .jump-to-top-button {
    right: 0.75rem;
    bottom: 0.85rem;
    padding: 0.72rem 0.88rem;
  }
}
