@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plex-sans-700.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-mono-600.woff2") format("woff2");
}

:root {
  --hd-ink: #d7e0ea;
  --hd-ink-soft: #8fa0b3;
  --hd-paper: #0b1118;
  --hd-panel: rgba(16, 24, 34, 0.92);
  --hd-panel-solid: #101822;
  --hd-accent: #2ee6a6;
  --hd-accent-deep: #1bbf86;
  --hd-warn: #f0b429;
  --hd-danger: #ff6b6b;
  --hd-info: #4db6ff;
  --hd-line: rgba(146, 170, 196, 0.22);
  --hd-header: #070b10;
  --hd-mark: #2ee6a6;
  --hd-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --hd-sans: "IBM Plex Sans", Bahnschrift, "Segoe UI", sans-serif;
  --hd-radius: 0.55rem;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--hd-ink);
  font-family: var(--hd-sans);
  background-color: var(--hd-paper);
  background-image:
    linear-gradient(rgba(46, 230, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 166, 0.03) 1px, transparent 1px),
    radial-gradient(900px 500px at 12% -10%, rgba(46, 230, 166, 0.12), transparent 60%),
    radial-gradient(800px 420px at 100% 0%, rgba(77, 182, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #0a1017 0%, #0b1118 55%, #0d141c 100%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  animation: hd-grid-drift 48s linear infinite;
}

@keyframes hd-grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px, 0 0, 0 0, 0 0; }
}

.hd-header {
  background: linear-gradient(180deg, rgba(7, 11, 16, 0.96), rgba(10, 16, 24, 0.9));
  border-bottom: 1px solid var(--hd-line);
  backdrop-filter: blur(10px);
}

.hd-header .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.hd-header .nav-link {
  color: rgba(215, 224, 234, 0.78) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hd-header .nav-link:hover,
.hd-header .nav-link:focus {
  color: var(--hd-accent) !important;
}

.hd-header .dropdown-menu {
  background: #0e1620;
  border: 1px solid var(--hd-line);
  min-width: 12rem;
}

.hd-header .dropdown-item {
  color: var(--hd-ink);
}

.hd-header .dropdown-item:hover,
.hd-header .dropdown-item:focus {
  background: rgba(46, 230, 166, 0.12);
  color: var(--hd-accent);
}

.hd-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none !important;
}

.hd-brand-mark {
  font-family: var(--hd-mono);
  color: var(--hd-mark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.2rem;
}

.hd-kbd {
  font-family: var(--hd-mono);
  font-size: 0.72rem;
  border: 1px solid var(--hd-line);
  color: var(--hd-ink-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
}

.hd-shell {
  flex: 1 0 auto;
}

.hd-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--hd-line);
  background: rgba(7, 11, 16, 0.85);
  padding: 1rem 0;
  color: var(--hd-ink-soft);
  font-family: var(--hd-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.hd-panel {
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 1.35rem;
  animation: hd-rise 0.45s ease both;
}

@keyframes hd-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hd-page-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  color: #f2f6fa;
}

.hd-page-sub {
  color: var(--hd-ink-soft);
  margin-bottom: 1.25rem;
}

.btn-primary {
  --bs-btn-bg: #149e6d;
  --bs-btn-border-color: #149e6d;
  --bs-btn-hover-bg: var(--hd-accent-deep);
  --bs-btn-hover-border-color: var(--hd-accent-deep);
  --bs-btn-active-bg: var(--hd-accent-deep);
  --bs-btn-active-border-color: var(--hd-accent-deep);
  --bs-btn-color: #04130d;
  --bs-btn-hover-color: #04130d;
  font-weight: 700;
}

.btn-outline-secondary,
.btn-outline-light {
  --bs-btn-color: var(--hd-ink);
  --bs-btn-border-color: var(--hd-line);
  --bs-btn-hover-bg: rgba(46, 230, 166, 0.12);
  --bs-btn-hover-border-color: var(--hd-accent);
  --bs-btn-hover-color: var(--hd-accent);
}

.form-control,
.form-select {
  background: #0a121b;
  border-color: var(--hd-line);
  color: var(--hd-ink);
  color-scheme: dark;
}

.form-select option {
  background: #0a121b;
  color: var(--hd-ink);
}

.form-control:focus,
.form-select:focus {
  background: #0a121b;
  border-color: var(--hd-accent);
  color: var(--hd-ink);
  box-shadow: 0 0 0 0.2rem rgba(46, 230, 166, 0.15);
}

.form-control::placeholder {
  color: #627384;
}

.form-label,
.form-check-label,
.form-text {
  color: var(--hd-ink-soft);
}

.table {
  --bs-table-color: var(--hd-ink);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--hd-line);
  --bs-table-hover-bg: rgba(46, 230, 166, 0.06);
  --bs-table-hover-color: var(--hd-ink);
  --bs-table-active-color: #f2f6fa;
  --bs-table-active-bg: rgba(46, 230, 166, 0.14);
  color: var(--hd-ink);
}

.table > :not(caption) > * > * {
  background-color: transparent;
}

.table thead th,
.table-light {
  --bs-table-bg: rgba(255, 255, 255, 0.03) !important;
  --bs-table-color: var(--hd-ink-soft) !important;
  color: var(--hd-ink-soft) !important;
  font-family: var(--hd-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alert-success {
  background: rgba(46, 230, 166, 0.12);
  border-color: rgba(46, 230, 166, 0.35);
  color: #b7ffe3;
}

.text-muted,
.text-danger {
  color: var(--hd-ink-soft) !important;
}

.text-danger {
  color: #ff8f8f !important;
}

a {
  color: var(--hd-accent);
  text-decoration: none;
}

a:hover {
  color: #7dffc9;
}

.badge {
  border-radius: 0.3rem;
  font-family: var(--hd-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-status-new { background: #1f6feb; }
.badge-status-inprogress { background: #9a6700; }
.badge-status-resolved { background: #1a7f4b; }
.badge-status-closed { background: #3d4a57; }

.comment-block {
  border-left: 3px solid var(--hd-accent);
  background: rgba(46, 230, 166, 0.05);
  padding: 0.85rem 1rem;
  border-radius: 0 0.4rem 0.4rem 0;
  margin-bottom: 0.75rem;
}

.gate {
  min-height: calc(100vh - 8.5rem);
  display: grid;
  place-items: center;
  padding: 1.5rem 0 2.5rem;
}

.gate-card {
  width: min(100%, 26rem);
  padding: 2rem 1.75rem 1.6rem;
  position: relative;
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--hd-radius) + 1px);
  background: linear-gradient(160deg, rgba(46, 230, 166, 0.55), transparent 42%, rgba(77, 182, 255, 0.35));
  z-index: -1;
  opacity: 0.7;
}

.gate-card .hd-brand-mark {
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.gate-card .hd-page-title {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.gate-lead {
  color: var(--hd-ink-soft);
  margin-bottom: 1.5rem;
}

.gate-card .form-control {
  padding: 0.65rem 0.75rem;
}

.hd-stat {
  display: block;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 1.1rem 1.15rem;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: hd-rise 0.5s ease both;
}

.hd-stat:nth-child(1) { animation-delay: 0.05s; }
.hd-stat:nth-child(2) { animation-delay: 0.1s; }
.hd-stat:nth-child(3) { animation-delay: 0.15s; }
.hd-stat:nth-child(4) { animation-delay: 0.2s; }

.hd-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 230, 166, 0.55);
  color: inherit;
}

.hd-stat-value {
  font-family: var(--hd-mono);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--hd-accent);
}

.hd-stat-label {
  color: var(--hd-ink-soft);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--hd-mono);
}

.hd-recent-list li:last-child,
.hd-activity li:last-child {
  border-bottom: 0 !important;
}

.border-bottom {
  border-color: var(--hd-line) !important;
}

.hd-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 767.98px) {
  .hd-service-grid {
    grid-template-columns: 1fr;
  }
}

.hd-health {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--hd-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.hd-health-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: hd-pulse 2.2s ease-out infinite;
}

@keyframes hd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(46, 230, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); }
}

.hd-health-operational { color: var(--hd-accent); }
.hd-health-degraded { color: var(--hd-warn); }
.hd-health-outage { color: var(--hd-danger); }
.hd-health-maintenance { color: var(--hd-info); }

.hd-banner {
  border: 1px solid rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.08);
  color: #ffe3a1;
  border-radius: var(--hd-radius);
  padding: 0.75rem 1rem;
  font-family: var(--hd-mono);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hd-ticket-id {
  font-family: var(--hd-mono);
  color: var(--hd-accent);
}

.hd-copy-btn {
  font-family: var(--hd-mono);
  font-size: 0.75rem;
}

#cmdk-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 10, 0.72);
  z-index: 1050;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

#cmdk-backdrop.open {
  display: flex;
}

#cmdk {
  width: min(560px, 92vw);
  background: #0e1620;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  overflow: hidden;
  animation: hd-rise 0.2s ease both;
}

#cmdk-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hd-line);
  background: transparent;
  color: var(--hd-ink);
  font-family: var(--hd-mono);
  font-size: 1rem;
  padding: 1rem 1.1rem;
  outline: none;
}

#cmdk-list {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
}

#cmdk-list li button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--hd-ink);
  font-family: var(--hd-sans);
  padding: 0.65rem 0.75rem;
  border-radius: 0.35rem;
}

#cmdk-list li button:hover,
#cmdk-list li button.active {
  background: rgba(46, 230, 166, 0.12);
  color: var(--hd-accent);
}

#cmdk-list .hint {
  float: right;
  color: var(--hd-ink-soft);
  font-family: var(--hd-mono);
  font-size: 0.72rem;
}

.navbar-dark .navbar-toggler {
  border-color: var(--hd-line);
}

.hd-user-chip {
  font-family: var(--hd-mono);
  font-size: 0.78rem;
  color: var(--hd-ink-soft) !important;
}

.hd-meter {
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  height: 100%;
}

.hd-meter-label {
  font-family: var(--hd-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hd-ink-soft);
  margin-bottom: 0.35rem;
}

.hd-meter-value {
  font-family: var(--hd-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hd-accent);
  margin-bottom: 0.45rem;
}

.hd-meter-bar {
  height: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.hd-meter-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hd-accent-deep), var(--hd-accent));
  width: 0;
  transition: width 0.45s ease;
}

.hd-meter-bar-flat > span {
  background: linear-gradient(90deg, #1f6feb, var(--hd-info));
}

.hd-meter-sub {
  margin-top: 0.4rem;
  font-family: var(--hd-mono);
  font-size: 0.72rem;
  color: var(--hd-ink-soft);
}

.hd-drive .hd-meter-bar {
  margin-top: 0.35rem;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: #0e1620;
  color: var(--hd-ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
  border: 1px solid var(--hd-line);
}

.skip-link:focus {
  top: 0.75rem;
}

.btn-outline-primary,
.btn-outline-danger {
  --bs-btn-color: var(--hd-ink);
  --bs-btn-border-color: var(--hd-line);
  --bs-btn-hover-bg: rgba(46, 230, 166, 0.12);
  --bs-btn-hover-border-color: var(--hd-accent);
  --bs-btn-hover-color: var(--hd-accent);
  --bs-btn-active-bg: rgba(46, 230, 166, 0.18);
  --bs-btn-active-border-color: var(--hd-accent);
  --bs-btn-active-color: var(--hd-accent);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  --bs-btn-hover-bg: rgba(255, 107, 107, 0.12);
  --bs-btn-hover-border-color: var(--hd-danger);
  --bs-btn-hover-color: #ffb4b4;
  --bs-btn-color: #ffb4b4;
  --bs-btn-border-color: rgba(255, 107, 107, 0.45);
}

.btn-link {
  color: var(--hd-accent);
  text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
  color: #7dffc9;
}

.alert-danger {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ffd0d0;
}

.form-check-input {
  background-color: #0a121b;
  border-color: var(--hd-line);
}

.form-check-input:checked {
  background-color: var(--hd-accent-deep);
  border-color: var(--hd-accent);
}

.search-bar {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr auto;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.filter-links {
  margin-bottom: 1rem;
  font-family: var(--hd-mono);
  font-size: 0.82rem;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.print-card {
  display: flex;
  flex-direction: column;
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  animation: hd-rise 0.45s ease both;
}

.print-card:hover,
.print-card:focus {
  color: inherit;
  border-color: rgba(46, 230, 166, 0.55);
  transform: translateY(-3px);
}

.print-card-stage {
  position: relative;
  min-height: 168px;
  background:
    linear-gradient(rgba(46, 230, 166, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 166, 0.05) 1px, transparent 1px),
    #070b10;
  background-size: 24px 24px, 24px 24px, auto;
}

.print-card-photo,
.print-card-preview {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #070b10;
}

.format-badge {
  position: absolute;
  z-index: 1;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--hd-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--hd-accent);
  border: 1px solid rgba(46, 230, 166, 0.4);
  border-radius: 0.3rem;
  padding: 0.12rem 0.45rem;
  background: rgba(7, 11, 16, 0.8);
}

.print-gallery-feature {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--hd-line);
  background: #070b10;
  margin-bottom: 0.7rem;
}

.print-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin-bottom: 0.9rem;
}

.print-thumb-wrap {
  flex: 0 0 auto;
  width: 4.4rem;
}

.print-thumb {
  display: block;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  overflow: hidden;
  border-radius: 0.3rem;
  border: 1px solid var(--hd-line);
  background: #070b10;
}

.print-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.print-thumb.is-selected {
  border-color: var(--hd-accent);
}

.gcode-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gcode-card {
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.gcode-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.printer-tag {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.12rem 0.5rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(46, 230, 166, 0.45);
  color: var(--hd-accent);
  font-family: var(--hd-mono);
  font-size: 0.78rem;
}

.gcode-card .detail-facts {
  margin-bottom: 0.4rem;
}

.gcode-form .btn {
  margin-top: 0.35rem;
}

.print-card-body {
  padding: 0.9rem 1rem 1rem;
}

.print-card-body h2 {
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
  color: #f2f6fa;
}

.byline,
.card-meta,
.tag-line,
.rating-line {
  margin: 0.15rem 0;
  color: var(--hd-ink-soft);
}

.tag-line a {
  display: inline-block;
  margin: 0.2rem 0.35rem 0 0;
  padding: 0.05rem 0.45rem;
  border-radius: 0.3rem;
  border: 1px solid var(--hd-line);
  font-family: var(--hd-mono);
  font-size: 0.75rem;
  text-decoration: none;
}

.stars {
  position: relative;
  display: inline-block;
  color: #3c4b5c;
  letter-spacing: 0.08em;
  margin-right: 0.35rem;
}

.stars::before,
.stars::after {
  content: "★★★★★";
}

.stars::after {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--score, 0) * 100%);
  overflow: hidden;
  color: var(--hd-accent);
  white-space: nowrap;
}

.page-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
  font-family: var(--hd-mono);
  font-size: 0.82rem;
}

.empty-shelf {
  border: 1px dashed var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 2rem 1.25rem;
  color: var(--hd-ink-soft);
}

#viewer {
  background: var(--hd-panel);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  overflow: hidden;
}

.viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--hd-line);
  font-family: var(--hd-mono);
  font-size: 0.78rem;
}

.viewer-toolbar button,
.viewer-toolbar a {
  border: 1px solid var(--hd-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--hd-ink);
  border-radius: 0.3rem;
  padding: 0.28rem 0.65rem;
  text-decoration: none;
}

.viewer-toolbar button[aria-pressed="true"] {
  border-color: rgba(46, 230, 166, 0.55);
  color: var(--hd-accent);
}

.viewer-color {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--hd-ink-soft);
}

#viewer-stage {
  position: relative;
  height: 520px;
  background: #070b10;
}

#viewer-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#viewer-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--hd-ink);
  font-family: var(--hd-mono);
  pointer-events: none;
}

#viewer-status[hidden] {
  display: none;
}

.viewer-hint {
  margin: 0;
  padding: 0.7rem 0.9rem 0.9rem;
  color: var(--hd-ink-soft);
  font-family: var(--hd-mono);
  font-size: 0.78rem;
}

.detail-facts {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
}

.detail-facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
}

.detail-facts dt {
  color: var(--hd-ink-soft);
  font-family: var(--hd-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
}

.description {
  white-space: pre-wrap;
}

.privacy-help {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--hd-ink-soft);
}

.timeline,
.comment-list,
.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  border-left: 2px solid rgba(46, 230, 166, 0.45);
  padding: 0 0 0.9rem 0.8rem;
}

.timeline time,
.comment-meta time {
  display: block;
  color: var(--hd-ink-soft);
  font-family: var(--hd-mono);
  font-size: 0.75rem;
}

.comment-list li,
.people-list li {
  border-top: 1px solid var(--hd-line);
  padding: 0.8rem 0;
}

.comment-list p {
  white-space: pre-wrap;
  margin: 0.35rem 0;
}

.comment-meta,
.people-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.people-list li {
  align-items: center;
}

.rate-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: center;
}

.rate-form legend {
  font-size: 0.95rem;
  padding: 0;
  margin-right: 0.4rem;
}

.table-active {
  --bs-table-bg: rgba(46, 230, 166, 0.08) !important;
  --bs-table-color: var(--hd-ink) !important;
}

@media (max-width: 800px) {
  .search-bar {
    grid-template-columns: 1fr;
  }

  #viewer-stage {
    height: 360px;
  }

  .detail-facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
