*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #14161A;
  --bg-panel: #1E232B;
  --bg-purple: #2A1B38;
  --bg-orange: #3A2311;
  --bg-green: #123B2A;
  --yellow: #FFE64D;
  --blue: #1F7AFF;
  --coral: #FF6F61;
  --neon: #8CFF00;
  --bright-yellow: #FFFF00;
  --status-red: #FF3B3B;
  --status-green: #00E08A;
  --status-blue: #3DA5FF;
  --text-main: #F2F2F2;
  --text-secondary: #B0B0B0;
  --line: #3D3D3D;
  --font-display: 'Noto Sans SC','Heiti SC','Microsoft YaHei',sans-serif;
  --font-body: 'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  --font-mono: 'JetBrains Mono','Roboto Mono',monospace;
  --header-pad-y: 16px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--bright-yellow);
  outline-offset: 2px;
}

::selection {
  background: var(--yellow);
  color: var(--bg-deep);
}

#main-content {
  min-height: 70vh;
  position: relative;
}

#main-content:focus {
  outline: none;
}

/* ---------- Skip Link ---------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 8px 18px;
  background: var(--bright-yellow);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-250%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: visible;
}

.header-zone {
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: block;
}

.header-zone--purple {
  background: var(--bg-purple);
}

.header-zone--orange {
  background: var(--bg-orange);
}

.header-zone--green {
  background: var(--bg-green);
}

.header-zone--blue {
  background: var(--blue);
}

.site-header__edge {
  height: 4px;
  background: var(--neon);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--header-pad-y) 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  flex-wrap: wrap;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__decor {
  position: absolute;
  bottom: 10px;
  right: 28px;
  display: flex;
  gap: 3px;
  z-index: 1;
  pointer-events: none;
}

.site-header__decor-bar {
  width: 4px;
  height: 16px;
  display: block;
}

.site-header__decor-bar--neon {
  background: var(--neon);
}

.site-header__decor-bar--yellow {
  background: var(--yellow);
}

.site-header__decor-bar--coral {
  background: var(--coral);
}

/* ---------- Site Brand ---------- */

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-brand__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--yellow);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.site-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.site-brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---------- Floating Nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #171A1F;
  border: 1px solid #33373D;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.site-nav__link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bright-yellow);
}

.site-nav__link[aria-current="page"] {
  background: var(--bright-yellow);
  color: var(--bg-deep);
  font-weight: 700;
}

/* ---------- Header Tools ---------- */

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-search:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.header-search__icon {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.header-search__icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  bottom: -3px;
  right: -4px;
  border-radius: 1px;
}

.header-search__text {
  line-height: 1;
}

/* ---------- Nav Toggle ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: #171A1F;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--yellow);
  color: var(--bright-yellow);
}

.nav-toggle__burger {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__line {
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Mobile Quickbar ---------- */

.mobile-quickbar {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: 64px;
  background-color: #111317;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid #24262C;
  overflow: hidden;
}

.site-footer::before {
  content: 'INDEX';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 180px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.site-footer__beam {
  display: flex;
  gap: 28px;
  padding: 8px 24px;
  background: var(--yellow);
  color: var(--bg-deep);
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-footer__beam-item {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.site-footer__beam-item::before {
  content: '▶ ';
  margin-right: 4px;
  opacity: 0.55;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.site-footer__brand {
  flex: 1 1 240px;
  max-width: 300px;
}

.site-footer__cols {
  flex: 2 1 420px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer__col {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__info {
  flex: 1 1 220px;
  max-width: 280px;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.site-footer__heading::before {
  content: '/// ';
  color: var(--neon);
}

.site-footer__link {
  font-size: 14px;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--bright-yellow);
}

.site-footer__copyright {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  font-family: var(--font-mono);
}

.site-footer__info-line {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.site-footer__icp {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.site-footer__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__legal {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-footer__legal:hover {
  color: var(--bright-yellow);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--bright-yellow);
}

.breadcrumb__sep {
  color: var(--line);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--yellow);
  color: var(--bg-deep);
  border-color: var(--yellow);
}

.btn--primary:hover {
  background: var(--bright-yellow);
  border-color: var(--bright-yellow);
}

.btn--ghost {
  background: transparent;
  color: var(--text-main);
}

.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- Section Heading ---------- */

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 44px 0 18px;
}

.section-heading__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon);
  letter-spacing: 0.12em;
}

.section-heading__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
}

/* ---------- Prose ---------- */

.prose-block {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.9;
}

.prose-block p {
  margin-bottom: 1em;
}

.prose-block h2 {
  font-size: 24px;
  margin: 1.6em 0 0.5em;
}

.prose-block h3 {
  font-size: 18px;
  margin: 1.4em 0 0.4em;
}

/* ---------- Tile Matrix ---------- */

.tile-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tile-item {
  position: relative;
  min-height: 96px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.tile-item::after {
  content: '';
  position: absolute;
  right: -10px;
  top: -10px;
  width: 24px;
  height: 24px;
  background: currentColor;
  opacity: 0.14;
  transform: rotate(45deg);
}

.tile-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.tile-item--yellow {
  background: var(--yellow);
  color: var(--bg-deep);
}

.tile-item--blue {
  background: var(--blue);
  color: #fff;
}

.tile-item--coral {
  background: var(--coral);
  color: var(--bg-deep);
}

.tile-item--purple {
  background: var(--bg-purple);
  color: #fff;
}

.tile-item--orange {
  background: var(--bg-orange);
  color: #fff;
}

.tile-item--green {
  background: var(--bg-green);
  color: #fff;
}

.tile-item--neon {
  background: var(--neon);
  color: var(--bg-deep);
}

.tile-item__label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.25;
}

.tile-item__count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.75;
}

/* ---------- Card Grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card-item {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card-item:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  background: #222832;
}

.card-item__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.3;
  padding-right: 16px;
}

.card-item__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.card-item__status {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* ---------- Entry List ---------- */

.entry-list {
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: 2fr 1fr 120px 100px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.entry-row:hover {
  background: rgba(255, 230, 77, 0.06);
}

.entry-row__name {
  font-weight: 700;
}

.entry-row__zone {
  font-size: 13px;
  color: var(--text-secondary);
}

.entry-row__batch {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon);
}

.entry-row__status {
  text-align: right;
}

/* ---------- Tag Cloud ---------- */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-block;
  padding: 2px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-chip:hover {
  background: var(--yellow);
  color: var(--bg-deep);
  border-color: var(--yellow);
}

/* ---------- Status Chip ---------- */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-chip--new {
  background: var(--status-red);
  color: #fff;
}

.status-chip--hot {
  background: var(--bright-yellow);
  color: var(--bg-deep);
}

.status-chip--fav {
  background: var(--status-blue);
  color: #fff;
}

.status-chip--done {
  background: var(--status-green);
  color: var(--bg-deep);
}

.status-chip--archived {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--line);
}

/* ---------- Seq Number ---------- */

.seq-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-secondary);
  opacity: 0.45;
}

/* ---------- Meter Bar ---------- */

.meter-track {
  display: block;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.meter-fill--green {
  background: var(--status-green);
}

.meter-fill--blue {
  background: var(--status-blue);
}

.meter-fill--red {
  background: var(--status-red);
}

/* ---------- Index Strip ---------- */

.index-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.index-strip__link {
  display: inline-block;
  min-width: 32px;
  padding: 3px 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.index-strip__link:hover {
  color: var(--bg-deep);
  background: var(--bright-yellow);
}

.index-strip__link--current {
  color: var(--bg-deep);
  background: var(--yellow);
}

/* ---------- Rail ---------- */

.rail-wrap {
  overflow: hidden;
}

.rail-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.rail-track> * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---------- Matrix Table ---------- */

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.matrix-table th,
.matrix-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.matrix-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--bg-panel);
}

.matrix-table tr:hover td {
  background: rgba(255, 230, 77, 0.05);
}

/* ---------- Panel Block ---------- */

.panel-block {
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.panel-block+ .panel-block {
  margin-top: 10px;
}

.panel-block summary {
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-block summary::-webkit-details-marker {
  display: none;
}

.panel-block summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--neon);
  line-height: 1;
  transition: transform 0.2s ease;
}

.panel-block[open] summary::after {
  content: '–';
}

.panel-block__content {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- Reveal Motion ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (min-width: 1025px) {
  .site-header {
    padding-bottom: 40px;
  }

  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    margin-bottom: -28px;
    margin-top: 8px;
  }
}

@media (max-width: 1024px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 12px 0 0;
    border-radius: 999px;
  }

  .site-header__decor {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-pad-y: 12px;
  }

  .site-header__inner {
    padding: 12px 16px;
  }

  .site-brand__name {
    font-size: 14px;
  }

  .site-brand__sub {
    display: none;
  }

  .site-brand__box {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .site-header__tools {
    gap: 8px;
  }

  .header-search {
    padding: 5px 10px;
  }

  .header-search__text {
    display: none;
  }

  .header-search__icon {
    width: 10px;
    height: 10px;
  }

  .header-zone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    order: 0;
    justify-content: stretch;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    border-radius: 10px;
    border-color: #3A3D42;
    background: #13161B;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
    display: none;
    padding: 8px;
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav__link {
    border-radius: 6px;
    text-align: left;
    padding: 10px 16px;
  }

  .site-nav__link[aria-current="page"] {
    background: var(--bright-yellow);
    color: var(--bg-deep);
  }

  .mobile-quickbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0D0F12;
    border-top: 1px solid var(--line);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-quickbar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
  }

  .mobile-quickbar__link:hover,
  .mobile-quickbar__link:focus-visible {
    color: var(--bright-yellow);
  }

  .mobile-quickbar__sq {
    width: 8px;
    height: 8px;
    display: block;
  }

  .mobile-quickbar__sq--yellow {
    background: var(--yellow);
  }

  .mobile-quickbar__sq--blue {
    background: var(--blue);
  }

  .mobile-quickbar__sq--green {
    background: var(--neon);
  }

  .mobile-quickbar__sq--coral {
    background: var(--coral);
  }

  #main-content {
    padding-bottom: 72px;
  }

  .site-footer__inner {
    padding: 28px 16px 24px;
    gap: 24px;
  }

  .site-footer__brand {
    max-width: none;
    flex-basis: 100%;
  }

  .site-footer__cols {
    flex-basis: 100%;
  }

  .site-footer__col {
    flex-basis: 40%;
  }

  .site-footer__info {
    flex-basis: 100%;
    max-width: none;
  }

  .site-footer__beam {
    padding: 7px 16px;
    gap: 18px;
  }

  .site-footer__bottom-inner {
    padding: 0 16px;
    gap: 16px;
  }

  .tile-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-row {
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
    padding: 10px 12px;
  }

  .entry-row__zone,
  .entry-row__batch {
    grid-column: 1;
  }

  .entry-row__status {
    grid-column: 2;
    grid-row: 1 / span 2;
    text-align: right;
  }

  .section-heading {
    margin: 32px 0 14px;
  }

  .section-heading__title {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .site-brand__name {
    font-size: 13px;
  }

  .site-brand__box {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .site-header__tools {
    gap: 6px;
  }

  .nav-toggle {
    padding: 6px 12px;
    font-size: 13px;
  }

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

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .skip-link {
    transition: none;
  }
}
