/* ── Design tokens and theme variables ───────────────────────────────────────── */
/* ── WRETAN v2.0 — Design Tokens ──────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg: #f8f9fb;
  --bg2: #f1f3f7;
  --bg3: #e8ecf2;
  --surface: #ffffff;
  --surface2: #f4f6fa;

  /* Borders */
  --border: #e2e6ef;
  --border2: #cdd3e0;

  /* Text */
  --text: #0f1117;
  --text2: #4a5168;
  --text3: #96a0b5;

  /* Accent */
  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --alpha-bg: 0.08;
  --alpha-bd: 0.22;
  --accent-bg: rgba(var(--accent-rgb), var(--alpha-bg));
  --accent-bd: rgba(var(--accent-rgb), var(--alpha-bd));

  /* Semantic */
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.08);
  --success-bd: rgba(22, 163, 74, 0.25);
  --warn: #d97706;
  --warn-bg: rgba(217, 119, 6, 0.08);
  --warn-bd: rgba(217, 119, 6, 0.25);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --danger-bd: rgba(220, 38, 38, 0.25);

  /* Typography */
  --mono: "DM Mono", "Fira Code", monospace;
  --sans: "DM Sans", system-ui, sans-serif;

  /* Geometry */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  /* Elevation */
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Layout dimensions */
  --sidebar-w: 232px;
  --topbar-h: 48px;
  --bottomnav-h: 60px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #080c12;
  --bg2: #0d1219;
  --bg3: #131b28;
  --surface: #0e141d;
  --surface2: #111827;

  --border: #192130;
  --border2: #2a3952;

  --text: #e8ecf2;
  --text2: #94a3b8;
  --text3: #64748b;

  --alpha-bg: 0.12;
  --alpha-bd: 0.28;

  --accent-bg: rgba(var(--accent-rgb), var(--alpha-bg));
  --accent-bd: rgba(var(--accent-rgb), var(--alpha-bd));

  --success-bg: rgba(22, 163, 74, 0.1);
  --success-bd: rgba(22, 163, 74, 0.28);
  --warn-bg: rgba(217, 119, 6, 0.1);
  --warn-bd: rgba(217, 119, 6, 0.28);
  --danger-bg: rgba(220, 38, 38, 0.1);
  --danger-bd: rgba(220, 38, 38, 0.28);

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ── Base reset, document defaults, and accessibility ───────────────────────────────────────── */
/* ── WRETAN v2.0 — Base Reset & Globals ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: row;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

body::after {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--accent-rgb), 0.18) 0%,
    transparent 75%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  will-change: filter;
}

@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text3);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Selection */
::selection {
  background: rgba(var(--accent-rgb, 37, 99, 235), 0.18);
  color: var(--text);
}

/* Links */
a {
  color: inherit;
}

/* SVG icon sprite */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}

/* ── Application shell, navigation, and page layout ───────────────────────────────────────── */
/* ── WRETAN v2.0 — Layout ────────────────────────────────────────────────── */

#nav-root {
  display: contents;
}

/* ── Sidebar Overlay ─────────────────────────────────────────────────────── */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: overlayIn 0.15s var(--ease);
}

.sidebar-overlay.visible {
  display: block;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-x: hidden;
  overflow-y: visible;
  transition:
    width 0.28s var(--ease),
    min-width 0.28s var(--ease);
  position: relative;
  z-index: 10;
  border-right: 1px solid var(--border);
}

body.sb-collapsed .sidebar {
  width: 0;
  min-width: 0;
}

body.sb-collapsed .icon-sidebar-open {
  display: none;
}

body.sb-collapsed .icon-sidebar-close {
  display: block;
}

.sidebar-header {
  height: var(--topbar-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
}

.brand-link:hover .wordmark em {
  filter: brightness(1.2);
}

.brand-link:hover .brand-icon {
  filter: brightness(1.2);
}

.brand-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--accent);
}

.wordmark {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 550;
  letter-spacing: 0.07em;
  color: var(--accent);
  white-space: nowrap;
}

.wordmark em {
  color: var(--accent);
  font-style: normal;
}

.version-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.6rem;
  background: var(--bg2);
  color: var(--text3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* ── Nav body ────────────────────────────────────────────────────────────── */

.nav-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 12px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1px;
}

.nav-group-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 6px 6px;
}

.nav-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.nav-group-rule {
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  transform: scaleX(0.92);
  transform-origin: left;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background 0.25s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text2);
  text-decoration: none;
  position: relative;
  min-width: 0;
  transition:
    background 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transform: scaleY(0.4);
  transition:
    opacity 0.15s ease,
    transform 0.18s ease;
}

.nav-link:hover {
  background: var(--accent-bg);
  transform: translateX(2px);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
  background: var(--accent-bg);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18) inset;
  transform: translateX(2px);
}

.nav-link.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
  background: var(--accent-bg);
}

.nav-link:active {
  transform: translateX(1px) scale(0.99);
}

.nav-link .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  opacity: 0.85;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    color 0.15s ease;
}

.nav-link:hover .icon {
  transform: scale(1.1);
}

/* ── Main Area ────────────────────────────────────────────────────────────── */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── Topbar ─────────────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  padding: 0 22px;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.topbar-toggle,
.breadcrumb-item {
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.breadcrumb-item .icon,
.topbar-toggle .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.topbar-toggle:hover,
.breadcrumb-item:hover {
  opacity: 1;
}

.topbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.topbar-toggle svg {
  display: block;
}

.topbar-toggle .icon-sidebar-close {
  display: none;
}

body.sb-collapsed .topbar-toggle .icon-sidebar-open {
  display: none;
}

body.sb-collapsed .topbar-toggle .icon-sidebar-close {
  display: block;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  min-width: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.breadcrumb-home {
  flex-shrink: 0;
}

.breadcrumb-sep {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--mono);
  opacity: 0.85;
  user-select: none;
  flex-shrink: 0;
}

.breadcrumb-sep .icon {
  position: relative;
  top: -1px;
}

.breadcrumb-page {
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
}

.breadcrumb-page span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

#live-clock {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 1;
  letter-spacing: 0.04em;
}

/* ── Content Area ─────────────────────────────────────────────────────────── */

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 32px;
}

.content > * {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ── View header ─────────────────────────────────────────────────────────── */

.view-header {
  margin-bottom: 24px;
}

.view-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}

.view-sub {
  font-size: 0.76rem;
  color: var(--text3);
  margin-top: 5px;
  line-height: 1.5;
}

/* ── Layout utilities ─────────────────────────────────────────────────────── */

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.cols-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Hero/Dashboard ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 0px;
}

/* ── Logo + Title ───────────────────────────────────────────────────── */

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.1s both;
}

.hero-logo-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-top: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.05);
}

.hero-logo-icon svg {
  width: 46px;
  height: 46px;
}

.hero-title {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.2);
  animation: fadeSlideUp 0.6s var(--ease-out) 0.2s both;
}

/* ── Description ───────────────────────────────────────────────────── */

.hero-desc {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 540px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.3s both;
}

/* ── Homepage sections ───────────────────────────────────────────────────── */

.home-section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header::before,
.section-header .section-rule {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent);
}

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--accent);
}

/* ── Hero Search ───────────────────────────────────────────────────── */

.hero-search {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 12px auto;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.4s both;
  transition: transform 0.2s var(--ease);
}

.hero-search:focus-within {
  transform: scale(1.01);
}

/* ── Feature cards grid ──────────────────────────────────────────────── */

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.5s both;
}

.feature-card {
  padding: 10px 30px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  flex: 1 1 210px;
  max-width: 210px;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
}

.feature-card-desc {
  font-size: 0.73rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Tool cards grid ─────────────────────────────────────────────────────── */

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.6s both;
}

.tool-card {
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    transform 0.15s var(--ease);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 210px;
  max-width: 210px;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.05) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.18s;
}

.tool-card:hover {
  border-color: var(--accent-bd);
  box-shadow:
    0 4px 20px rgba(var(--accent-rgb), 0.12),
    0 1px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.tool-card:hover .tool-card-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tool-card-body {
  min-width: 0;
}

.tool-card-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s;
}

.tool-card:hover .tool-card-name {
  color: var(--accent);
}

.tool-card-desc {
  font-size: 0.69rem;
  color: var(--text3);
  line-height: 1.55;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

/* ── Bottom Nav (mobile) ────────────────────────────────────────────── */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottomnav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--bottomnav-h);
  padding: 0 70px;
}

.bottom-nav-inner > .bottom-nav-btn:first-child {
  justify-self: start;
}

.bottom-nav-inner > :last-child {
  justify-self: end;
}

.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  opacity: 0.8;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.active {
  color: var(--accent);
  opacity: 1;
}

.bottom-nav-btn svg {
  display: block;
}

.bottom-nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-logo-ring {
  width: 38px;
  height: 38px;
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-bd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    box-shadow 0.15s;
  color: var(--accent);
}

.bottom-nav-logo:active .bottom-nav-logo-ring {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}

.bottom-nav-logo-label {
  font-size: 0.6rem;
  color: var(--text3);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* ── Bottom Sheet ────────────────────────────────────────────────────────── */

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--border);
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bs-handle-wrap {
  padding: 10px 0 4px;
  display: flex;
  justify-content: center;
  cursor: grab;
  flex-shrink: 0;
}

.bs-handle {
  width: 36px;
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
}

.bs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 10px;
  flex-shrink: 0;
}

.bs-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.bs-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition:
    background 0.12s,
    color 0.12s;
  display: flex;
}

.bs-body {
  overflow-y: auto;
  padding: 10px 10px 10px;
  flex: 1;
}

.bs-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1px;
}

.bs-group-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 6px 6px;
}

.bs-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.bs-group-rule {
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  transform: scaleX(0.92);
  transform-origin: left;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background 0.25s ease;
}

.bs-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text2);
  text-decoration: none;
  position: relative;
  min-width: 0;
  transition:
    background 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.bs-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transform: scaleY(0.4);
  transition:
    opacity 0.15s ease,
    transform 0.18s ease;
}

.bs-link.active {
  background: var(--accent-bg);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18) inset;
  transform: translateX(2px);
}

.bs-link.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.bs-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
  background: var(--accent-bg);
}

.bs-link:active {
  transform: translateX(1px) scale(0.99);
}

.bs-link .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  opacity: 0.85;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Reusable components, utilities, cards, and tool-specific patterns ───────────────────────────────────────── */
/* ── WRETAN v2.0 — Components ────────────────────────────────────────────── */

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.card:hover,
.stat-card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-md);
}

.stat-card:hover {
  transform: translateY(-2px);
}

.card-label,
.card-header-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-val {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
  line-height: 1.15;
}

.stat-key {
  font-size: 0.6rem;
  color: var(--text3);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ── KV Rows ─────────────────────────────────────────────────────────────── */

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  font-size: 0.8rem;
  transition: background 0.1s;
  border-radius: 4px;
}

.kv-row:hover {
  background: var(--accent-bg);
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-key {
  color: var(--text3);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 400;
}

.kv-val {
  color: var(--text);
  text-align: right;
  font-family: var(--mono);
  word-break: break-all;
  font-size: 0.78rem;
}

.kv-val.accent {
  color: var(--accent);
}

.kv-val.success {
  color: var(--success);
}

.kv-val.warn {
  color: var(--warn);
}

.kv-val.danger {
  color: var(--danger);
}

/* Shared semantic text utilities used by spans and stat values. */
.accent {
  color: var(--accent);
}

.success {
  color: var(--success);
}

.warn {
  color: var(--warn);
}

.danger {
  color: var(--danger);
}

/* ── Search ───────────────────────────────────────────────────── */

.search {
  width: 100%;
  margin-bottom: 16px;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-top: 1px solid var(--accent-bd);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
  position: relative;
}

.search-input-group::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 12px var(--accent);
  transition: all 0.3s var(--ease);
}

.search-input-group:focus-within {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--surface);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(var(--accent-rgb), 0.1) inset;
}

.search-input-group:focus-within::after {
  left: 0;
  right: 0;
  opacity: 1;
}

.search-icon {
  color: var(--text3);
  margin-right: 12px;
  flex-shrink: 0;
  transition: color 0.2s var(--ease);
}

.search-input-group:focus-within .search-icon {
  color: var(--accent);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  outline: none;
  padding: 10px 0;
  min-width: 0;
}

.search-select {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  outline: none;
  cursor: pointer;
  flex: 0 1 140px;
  padding: 8px;
  border-left: 1px solid var(--border);
  margin-left: 8px;
  transition: color 0.2s;
}

.search-select:hover {
  color: var(--accent);
}

.search-select option {
  background: var(--surface, #1e293b);
  color: var(--text);
}

.search-input.is-count {
  flex: 0 0 55px;
  box-sizing: border-box;
  text-align: center;
  border-left: 1px solid var(--border);
  margin-left: 8px;
  padding: 10px 4px;
}

.search-input.is-cidr {
  flex: 0 0 85px;
  box-sizing: border-box;
  text-align: center;
  border-left: 1px solid var(--border);
  margin-left: 8px;
  padding: 10px 4px;
}

.search-input.is-count::-webkit-outer-spin-button,
.search-input.is-count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.search-input::placeholder {
  color: var(--text3);
  opacity: 0.7;
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-bd);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}

.search-submit:hover {
  background: var(--accent);
  color: #fff;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  height: 38px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.1s,
    transform 0.1s;
  letter-spacing: 0.01em;
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border2);
}

.btn-ghost:hover {
  background: var(--bg2);
  opacity: 1;
}

.btn-danger-ghost {
  background: var(--surface);
  color: var(--danger);
  border: 1px solid var(--danger-bd);
}

.btn-danger-ghost:hover {
  background: var(--danger-bg);
  opacity: 1;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 0.72rem;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid;
}

.badge-ok {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-bd);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-bd);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-bd);
}

.badge-info {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-bd);
}

.badge-neutral {
  background: var(--bg2);
  color: var(--text2);
  border-color: var(--border);
}

/* ── Alerts ──────────────────────────────────────────────────────────────── */

.alert {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-bottom: 16px;
  border: 1px solid;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.alert-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-bd);
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-bd);
}

.alert-info {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-bd);
}

.alert-ok {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-bd);
}

/* ── Code blocks ─────────────────────────────────────────────────────────── */

.code-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text2);
  overflow: auto;
  max-height: 280px;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.7;
  position: relative;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--sans);
}

/* ── Tables ──────────────────────────────────────────────────────────────── */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
}

.tbl th {
  text-align: left;
  padding: 9px 14px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--mono);
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tr:hover td {
  background: var(--bg2);
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tab-item {
  padding: 9px 16px;
  font-size: 0.76rem;
  cursor: pointer;
  color: var(--text3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s;
  user-select: none;
}

.tab-item:hover {
  color: var(--text);
}

.tab-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

/* ── Gauge ───────────────────────────────────────────────────────────────── */

.gauge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
}

.gauge-label {
  font-size: 0.73rem;
  color: var(--text3);
  width: 120px;
  flex-shrink: 0;
}

.gauge-track {
  flex: 1;
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;
}

.gauge-val {
  font-size: 0.7rem;
  font-family: var(--mono);
  color: var(--text2);
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text3);
  font-size: 0.76rem;
  padding: 12px 0;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 56px 0;
  color: var(--text3);
  font-size: 0.79rem;
  line-height: 1.6;
}

.empty-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  opacity: 0.2;
}

.empty-icon .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

/* ── Status dot ──────────────────────────────────────────────────────────── */

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.status-dot.warn {
  background: var(--warn);
}

.status-dot.danger {
  background: var(--danger);
}

.status-dot.idle {
  background: var(--text3);
}

/* ── Settings-specific ───────────────────────────────────────────────────── */

.theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--text2);
  transition:
    border-color 0.12s,
    background 0.12s;
  font-family: var(--sans);
  min-width: 80px;
}

.theme-btn:hover {
  border-color: var(--border2);
  background: var(--bg2);
}

.theme-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.theme-preview {
  width: 80px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.color-picker-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.color-picker-input {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  cursor: pointer;
  padding: 3px;
  background: var(--surface);
  transition: border-color 0.15s;
}

.color-picker-input:hover {
  border-color: var(--border2);
}

.color-picker-input:focus {
  border-color: var(--accent);
  outline: none;
}

.color-picker-hex {
  flex: 1;
  max-width: 140px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.color-picker-preview {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.15s;
}

.color-preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.color-preset {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s,
    border-color 0.12s;
  outline: none;
}

.color-preset:hover {
  transform: scale(1.2);
}

.color-preset.active {
  border-color: var(--text);
}

/* ── Scan / Log lines ────────────────────────────────────────────────────── */

.log-line {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.log-line:last-child {
  border-bottom: none;
}

.log-num {
  color: var(--text3);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.log-time {
  color: var(--text3);
  flex-shrink: 0;
}

.log-msg-info {
  color: var(--accent);
}

.log-msg-success {
  color: var(--success);
}

.log-msg-warn {
  color: var(--danger);
}

.log-msg-muted {
  color: var(--text3);
}

/* ── References page (WRETAN v2.0) ───────────────────────────────────────── */
/* ── 1. Shared Utilities (Horizontal Scroll & Card Bases) ── */
.ref-tabs,
.ref-filters {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.ref-tabs::-webkit-scrollbar,
.ref-filters::-webkit-scrollbar {
  display: none;
}

.ref-table-wrap,
.port-card,
.dns-card,
.ref-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.port-card,
.dns-card {
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

/* ── 2. Tabs & Navigation ── */
.ref-tabs {
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.ref-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.12s,
    border-color 0.12s;
}

.ref-tab:hover {
  color: var(--text2);
}
.ref-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.ref-tab svg {
  flex-shrink: 0;
}

.ref-panel {
  display: none;
}
.ref-panel.active {
  display: block;
}

/* ── 3. Stats Grid (Using the 1px gap border trick) ── */
.ref-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; /* Creates the internal borders */
  background: var(--border); /* Border color */
  border: 1px solid var(--border); /* Outer border */
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ref-stat {
  background: var(--surface); /* Covers the background, exposing the 1px gap */
  padding: 12px 14px;
  text-align: center;
}

.ref-stat-val {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}

.ref-stat-key {
  font-size: 0.57rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── 4. Controls (Search & Filters) ── */
.ref-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ref-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.ref-search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}

.ref-search {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}

.ref-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.ref-search::placeholder {
  color: var(--text3);
}

.ref-filters {
  gap: 5px;
  padding-bottom: 1px;
}

.ref-chip {
  height: 30px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    background 0.1s,
    color 0.1s,
    border-color 0.1s;
}

.ref-chip:hover {
  background: var(--bg2);
  color: var(--text);
}
.ref-chip.active {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-bd);
}

.ref-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text3);
  white-space: nowrap;
  margin-left: auto;
}

/* ── 5. Data Tables (Desktop) ── */
.ref-table-wrap {
  box-shadow: var(--shadow);
  overflow: hidden;
  display: block;
}

.ref-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
}

.ref-tbl th {
  text-align: left;
  padding: 9px 14px;
  font-size: 0.59rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  white-space: nowrap;
}

.ref-tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.76rem;
  vertical-align: middle;
}

.ref-tbl tr:last-child td {
  border-bottom: none;
}
.ref-tbl tbody tr:hover {
  background: var(--bg2);
}

/* Table Text Colors */
.ref-tbl td.c-port {
  color: var(--text);
  font-weight: 600;
}
.ref-tbl td.c-proto,
.ref-tbl td.c-ip2 {
  color: var(--text3);
}
.ref-tbl td.c-service,
.ref-tbl td.c-ip {
  color: var(--accent);
}
.ref-tbl td.c-desc {
  color: var(--text2);
}
.ref-tbl td.c-name {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.ref-tbl td.c-ip,
.ref-tbl td.c-ip2 {
  white-space: nowrap;
}

.feat-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

/* ── 6. Mobile Cards ── */
.ref-cards {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 8px;
}

/* Port Cards */
.port-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
}

.port-card-num {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.port-card-top {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.port-card-service {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}
.port-card-proto {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text3);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.port-card-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.72rem;
  color: var(--text3);
  line-height: 1.4;
}

.port-card-risk {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
}

/* DNS Cards */
.dns-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.dns-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.dns-card-badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.dns-card-ips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.dns-card-ip {
  font-family: var(--mono);
  font-size: 0.75rem;
}
.dns-card-ip.primary {
  color: var(--accent);
}
.dns-card-ip.secondary {
  color: var(--text3);
}
.dns-card-ip-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-right: 3px;
}

.dns-card-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Empty State */
.ref-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text3);
  font-size: 0.8rem;
}


/* ── Score bar ──────────────────────────────────────────────────── */

.score-bar-track {
  height: 6px;
  background: var(--surface2, #1e1e2e);
  border-radius: 3px;
  overflow: hidden;
  margin: .5rem 0 1rem;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease;
}

.score-bar-success { background: var(--success,  #22c55e); }
.score-bar-warn    { background: var(--warn, #f59e0b); }
.score-bar-error   { background: var(--danger,    #ef4444); }

/* ── Header badge grid ───────────────────────────────────────────── */

.header-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .25rem;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .55rem;
  border-radius: 4px;
  font-size: .72em;
  font-family: var(--mono);
  border: 1px solid transparent;
  text-transform: lowercase;
}

.header-badge-success {
  background: var(--success-bg);
  border-color: var(--success-bd);
  color: var(--success, #22c55e);
}

.header-badge-muted {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text3, #888);
  opacity: .6;
}

.header-badge-icon {
  font-size: .85em;
  font-style: normal;
}

.header-badge-name {
  letter-spacing: .01em;
}

/* ── CSP block ───────────────────────────────────────────────────── */

.csp-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .25rem;
}

.csp-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.csp-group-label {
  font-size: .68em;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3, #888);
  font-weight: 600;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--border, #333);
  margin-bottom: .15rem;
}

.csp-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .2rem 0;
}

.csp-directive {
  font-family: var(--mono);
  font-size: .75em;
  color: var(--accent, #60a5fa);
  min-width: 170px;
  flex-shrink: 0;
  padding-top: .15rem;
}

.csp-sources {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  flex: 1;
}

/* Source tokens */
.csp-source {
  font-family: var(--mono);
  font-size: .72em;
  padding: .15rem .4rem;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.csp-source-success {
  background: var(--success-bg);
  border-color: var(--success-bd);
  color: var(--success, #22c55e);
}

.csp-source-warn {
  background: var(--warn-bg);
  border-color: var(--warn-bd);
  color: var(--warn, #f59e0b);
}

.csp-source-danger {
  background: var(--danger-bg);
  border-color: var(--danger-bd);
  color: var(--danger, #ef4444);
}

.csp-source-domain {
  background: var(--surface2, #1e1e2e);
  border-color: var(--border, #333);
  color: var(--text2, #aaa);
}

/* Risk notes */
.dns-note-danger {
  color: var(--danger, #ef4444);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .csp-row {
    flex-direction: column;
    gap: .3rem;
  }
  .csp-directive {
    min-width: unset;
  }
}

/* ── Responsive overrides ───────────────────────────────────────── */
/* ── WRETAN v2.0 — Responsive ─────────────────────────────────────────────── */

/* ── Desktop tweaks (> 1100px) ──────────────────────────────────────────── */
@media (min-width: 1100px) {
  .content {
    padding: 28px 32px;
  }
}

/* ── Tablet / narrow desktop (721px–900px) ──────────────────────────────── */
@media (max-width: 900px) and (min-width: 721px) {
  :root {
    --sidebar-w: 196px;
  }

  .tool-card {
    flex: 1 1 170px;
  }

  .feature-card {
    flex: 1 1 180px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stat {
    padding: 16px 20px;
    min-width: 120px;
  }
}

/* ── Mobile breakpoint (≤ 720px) ────────────────────────────────────────── */
@media (max-width: 720px) {

  body {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  }

  /* Hide desktop sidebar */
  .sidebar {
    display: none;
  }

  .topbar-toggle {
    display: none;
  }

  /* Main fills viewport width — never overflows */
  .main {
    width: 100%;
    max-width: 100vw;
    flex: 1;
    overflow-x: hidden;
    overflow-y: visible;
    min-width: 0;
  }

  /* Topbar */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: var(--topbar-h);
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-sizing: border-box;
    z-index: 100;
  }

  .topbar-right {
    gap: 6px;
  }

  .breadcrumb-page span {
    font-size: 0.75rem;
  }

  /* Content */
  .content {
    padding: calc(var(--topbar-h) + 22px) 16px 20px 16px;
    overflow-x: hidden;
    overflow-y: visible;
    max-width: 100%;
    box-sizing: border-box;
    min-height: calc(100dvh - var(--bottomnav-h));
  }

  /* Show bottom nav */
  .bottom-nav {
    display: flex;
  }

  /* Grid collapses */
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .feature-card {
    flex: 1 1 calc(50% - 5px);
    max-width: none;
  }

  .hero-stats {
    width: 100%;
  }

  .hero-stat {
    flex: 1;
    padding: 8px 0 8px;
  }

  /* Cards: allow horizontal scroll for wide content */
  .card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tbl {
    min-width: 380px;
  }

  /* Gauge label */
  .gauge-label {
    width: 80px;
    font-size: 0.68rem;
  }

  /* Speedtest display */
  #speed-num {
    font-size: 2.2rem;
  }

  /* Hero */
  .hero {
    padding: 0px 0 0px;
  }

  .hero-logo {
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  /* Input groups wrap */
  .input-group {
    flex-wrap: wrap;
  }

  /* View header */
  .view-header {
    margin-bottom: 16px;
  }

  .view-title {
    font-size: 1rem;
  }

  /* References Page */
  .ref-table-wrap {
    display: none;
  }
  .ref-cards {
    display: flex;
  }

  /* Grid Gap trick automatically handles the borders here! */
  .ref-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .ref-search-wrap {
    min-width: 0;
  }
  .ref-count {
    margin-left: 0;
  }

  /* Pull BOTH tabs and filters out to screen edge for native swipe feel */
  .ref-tabs,
  .ref-filters {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
    /* Force the container to respect horizontal scrolling */
    width: auto;
    max-width: 100vw;
  }
}

@media (max-width: 480px) {
  .tool-card,
  .feature-card {
    flex: 1 1 100%;
  }

  .content {
    padding: calc(var(--topbar-h) + 22px) 12px 12px 12px;
  }

  .card {
    padding: 12px 14px;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-stat {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 12px 8px;
    border-right: 1px solid var(--border);
  }

  /* Tighten up typography on very small screens */
  .view-title {
    font-size: 0.95rem;
  }

  .view-sub {
    font-size: 0.7rem;
  }
}

/* ── Inline-style replacements and shared utilities ───────────────────────── */
.is-hidden { display: none; }
.is-scroll-locked { overflow: hidden; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text3); }
.text-secondary { color: var(--text2); }
.text-main { color: var(--text); }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fs-062 { font-size: 0.62rem; }
.fs-065 { font-size: 0.65rem; }
.fs-068 { font-size: 0.68rem; }
.fs-072 { font-size: 0.72rem; }
.fs-075 { font-size: 0.75rem; }
.fs-078 { font-size: 0.78rem; }
.fs-08 { font-size: 0.8rem; }
.fs-085 { font-size: 0.85em; }
.fs-09 { font-size: 0.9rem; }
.font-mono { font-family: var(--mono); }
.line-loose { line-height: 2; }
.line-xloose { line-height: 2.2; }
.pre-wrap { white-space: pre-wrap; }
.break-all { overflow-wrap: break-word; word-break: break-all; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.relative { position: relative; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.auto-right { margin-left: auto; }
.table-wide { width: 100%; min-width: 600px; }
.col-num { width: 40px; }
.empty-table-cell { padding: 32px; text-align: center; color: var(--text3); font-size: 0.78rem; }
.empty-table-cell-sm { padding: 16px; text-align: center; color: var(--text3); }
.table-note-row { padding: 16px; text-align: center; background: var(--bg2); }
.card-spaced { margin-bottom: 16px; }
.card-top { margin-top: 16px; }
.card-scroll { overflow-x: auto; }
.copy-label { display: flex; justify-content: space-between; align-items: center; }
.kv-stack { display: flex; flex-direction: column; gap: 4px; }
.kv-stack-break { display: flex; flex-direction: column; gap: 4px; overflow-wrap: break-word; word-break: break-all; }
.prefix-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.prefix-chip { background: rgba(150, 150, 150, 0.1); border: 1px solid rgba(150, 150, 150, 0.2); padding: 2px 8px; border-radius: 4px; font-family: var(--mono); font-size: 0.75rem; white-space: nowrap; }
.status-inline { color: var(--text3); font-style: italic; }
.dns-stack { display: flex; flex-direction: column; gap: 0.25rem; }
.dns-muted-sm { font-size: 0.75em; }
.dns-notes-spaced { margin-bottom: 0.75rem; }
.pill-inline { margin-left: 0.5rem; }
.header-summary { display: flex; align-items: center; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.header-score { font-family: var(--mono); font-size: 2.2rem; font-weight: 500; }
.header-grade { font-size: 0.72rem; font-weight: 600; }
.header-message { font-size: 0.68rem; color: var(--text3); margin-top: 2px; }
.header-meta { margin-left: auto; text-align: right; font-size: 0.7rem; color: var(--text3); }
.header-url { max-width: 200px; }
.header-value-short { font-size: 0.65rem; color: var(--text3); font-family: var(--mono); }
.header-empty { color: var(--text3); font-size: 0.68rem; }
.header-name-cell { color: var(--text); white-space: nowrap; }
.score-success { color: var(--success); }
.score-warn { color: var(--warn); }
.score-danger { color: var(--danger); }
.setting-help { margin-top: 8px; font-size: 0.68rem; color: var(--text3); }
.setting-reset-copy { font-size: 0.75rem; color: var(--text3); margin-bottom: 12px; }
.theme-row { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-preview-light { background: #f8f9fb; border: 1.5px solid #e2e6ef; }
.theme-preview-dark { background: #080c12; border: 1.5px solid #1a2235; }
.theme-preview-system { background: linear-gradient(135deg, #f8f9fb 50%, #080c12 50%); border: 1.5px solid #cdd3e0; }
.theme-preview-pane { width: 30%; height: 100%; border-right: 1px solid #cdd3e0; }
.theme-preview-light .theme-preview-pane { background: #fff; border-right-color: #e2e6ef; }
.theme-preview-dark .theme-preview-pane { background: #0e131d; border-right-color: #1a2235; }
.theme-preview-system .theme-preview-pane { background: linear-gradient(180deg, #fff 50%, #0e131d 50%); }
.accent-preview-default { background: #2563eb; }
.preset-blue { background: #2563eb; }
.preset-purple { background: #7c3aed; }
.preset-pink { background: #db2777; }
.preset-red { background: #dc2626; }
.preset-amber { background: #d97706; }
.preset-green { background: #16a34a; }
.preset-cyan { background: #0891b2; }
.preset-slate { background: #64748b; }
.speed-panel { text-align: center; padding: 40px 32px; margin-bottom: 16px; }
.speed-gauge { position: relative; display: inline-block; width: 200px; height: 200px; }
.speed-gauge-svg { overflow: visible; display: block; }
.speed-arc { transition: stroke-dasharray 0.25s ease; }
.speed-readout { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%); text-align: center; pointer-events: none; }
.speed-num { font-family: var(--mono); font-size: 2.5rem; font-weight: 500; color: var(--text); line-height: 1; }
.speed-unit { font-size: 0.65rem; color: var(--text3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.speed-phase { margin-top: 10px; font-size: 0.72rem; color: var(--text3); font-family: var(--mono); min-height: 1.2em; }
.progress-fill { width: 0%; transition: width 0.35s ease; }
.fill-accent { background: var(--accent); }
.fill-success { background: var(--success); }
.fill-warn { background: var(--warn); }
.fp-progress { width: 0%; background: var(--accent); }
.fp-small-copy { font-size: 0.9rem; color: var(--text2); }
.fp-chip-text { margin-right: 10px; color: var(--text2); }
.inline-gap { margin-right: 12px; }
.ad-bait { position: absolute; left: -9999px; height: 1px; }
.network-extra { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; }

/* Unified card system proposal: use .ui-card as the base and add modifiers. */
.ui-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease); }
.ui-card:hover { transform: translateY(-1px); border-color: var(--accent-bd); box-shadow: var(--shadow-md); }
.ui-card--compact { padding: 12px 14px; gap: 8px; }
.ui-card--interactive { cursor: pointer; text-decoration: none; }
.ui-card--metric { align-items: flex-start; }
.ui-card--result { position: relative; }
.ui-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-card__title { font-size: 0.72rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.08em; }
.ui-card__body { min-width: 0; color: var(--text); }
.ui-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* Solid fallbacks are declared before color-mix rules in the component section above. */
.header-badge-success { background: var(--success-bg); border-color: var(--success-bd); }
.header-badge-muted { background: var(--surface2); border-color: var(--border); }
.csp-source-success { background: var(--success-bg); border-color: var(--success-bd); }
.csp-source-warn { background: var(--warn-bg); border-color: var(--warn-bd); }
.csp-source-danger { background: var(--danger-bg); border-color: var(--danger-bd); }

@supports (background: color-mix(in srgb, white 50%, transparent)) {
  .header-badge-success { background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
  .header-badge-muted { background: color-mix(in srgb, var(--text3) 8%, transparent); border-color: color-mix(in srgb, var(--text3) 20%, transparent); }
  .csp-source-success { background: color-mix(in srgb, var(--success) 10%, transparent); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
  .csp-source-warn { background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
  .csp-source-danger { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
}

@supports (overflow: clip) {
  @media (max-width: 600px) {
    body, .main, .content { overflow-x: clip; }
  }
}
.mt-4 { margin-top: 4px; }
.scroll-y-sm { max-height: 140px; overflow-y: auto; }
.mt-20 { margin-top: 20px; }
.toast { position: fixed; bottom: calc(var(--bottomnav-h, 60px) + 16px); left: 50%; transform: translateX(-50%) translateY(8px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 16px; font-size: 0.76rem; font-family: var(--sans); color: var(--text2); box-shadow: var(--shadow-md); z-index: 9999; pointer-events: none; transition: opacity 0.2s, transform 0.2s; opacity: 0; white-space: nowrap; }
.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-ok { color: var(--success); }
.toast-warn { color: var(--warn); }
.toast-info { color: var(--accent); }
.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }

.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }
.fs-067 { font-size: 0.67rem; }
.py-xs { padding: 0.25rem 0; }
.no-underline { text-decoration: none; }
