/* pages.css — page-specific compositions */

/* ——— Home hero (CSS fallback + optional slide media) ——— */
:root {
  --theme-transition-duration: 1800ms;
  --theme-transition-easing: cubic-bezier(0.65, 0, 0.35, 1);
}

.home-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0c1a33;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.home-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgb(72 118 196 / 0.35), transparent 58%),
    linear-gradient(165deg, #1a3568 0%, #0c1a33 42%, #08152b 100%);
  transition:
    background var(--theme-transition-duration) var(--theme-transition-easing),
    filter var(--theme-transition-duration) var(--theme-transition-easing);
}

.home-hero.is-night .home-hero__scene {
  background:
    radial-gradient(ellipse 100% 70% at 50% 110%, rgb(28 52 108 / 0.45), transparent 55%),
    linear-gradient(165deg, #050b18 0%, #08122a 45%, #030712 100%);
  filter: saturate(0.88);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgb(255 255 255 / 0.12), transparent 42%),
    linear-gradient(135deg, #1a3568, #08152b);
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--hero-slide-duration, 1200ms) var(--theme-transition-easing);
  pointer-events: none;
}

.home-hero__slide.is-active {
  opacity: 1;
}

.home-hero__slide picture,
.home-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.home-hero.has-media .home-hero__scene {
  opacity: 0.42;
}

.home-hero.has-media.is-night .home-hero__scene {
  opacity: 0.55;
}

.home-hero__controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.home-hero__dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.38);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}

.home-hero__dot[aria-selected="true"] {
  background: #fff;
  transform: scale(1.15);
}

.home-hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgb(0 0 0 / 0.05) 0%,
      rgb(0 0 0 / 0) 45%,
      rgb(0 0 0 / 0.28) 100%
    );
  transition:
    background var(--theme-transition-duration)
    var(--theme-transition-easing);
}

.home-hero.is-night::after {
  background:
    linear-gradient(
      180deg,
      rgb(0 8 28 / 0.08) 0%,
      rgb(0 8 28 / 0.05) 45%,
      rgb(0 4 18 / 0.38) 100%
    );
}

.home-hero__content {
  position: relative;
  z-index: 4;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: calc(var(--header-h) + 56px) 0 140px;
}

.home-hero__eyebrow {
  margin: 0 0 var(--space-5);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition:
    color var(--theme-transition-duration) var(--theme-transition-easing),
    text-shadow var(--theme-transition-duration) var(--theme-transition-easing);
}

.home-hero h1 {
  margin: 0 0 var(--space-5);
  font-family: var(--lim-font-sans);
  font-size: var(--text-5xl);
  font-weight: var(--lim-font-weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-hero);
  color: #fff;
  max-width: 16ch;
  transition:
    color var(--theme-transition-duration) var(--theme-transition-easing),
    text-shadow var(--theme-transition-duration) var(--theme-transition-easing);
}

.home-hero.is-night .home-hero__eyebrow,
.home-hero.is-night h1,
.home-hero.is-night .home-hero__desc {
  text-shadow: 0 4px 32px rgb(0 0 0 / 0.45);
}

.home-hero__lock {
  white-space: nowrap;
}

.home-hero__desc {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: var(--lim-font-weight-regular);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  transition:
    color var(--theme-transition-duration) var(--theme-transition-easing),
    text-shadow var(--theme-transition-duration) var(--theme-transition-easing);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.home-hero__actions .btn--primary {
  background: #fff;
  color: #0b0d14;
}

.home-hero__actions .btn--primary:hover {
  background: #f0f2f6;
  color: #0b0d14;
}

.home-hero__actions .btn--ghost {
  border-color: rgba(247, 248, 252, 0.2);
  color: #fff;
}

.home-hero__actions .btn--ghost:hover {
  background: rgba(247, 248, 252, 0.08);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --theme-transition-duration: 1ms;
  }

  .home-hero::after,
  .home-hero__slide,
  .home-hero__eyebrow,
  .home-hero h1,
  .home-hero__desc {
    transition-duration: 1ms !important;
  }
}

.home-hero__footer {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.home-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  min-height: 44px;
}

.home-hero__scroll:hover { color: #fff; }

.home-hero__scroll-line {
  width: 1px;
  height: 22px;
  background: currentColor;
  opacity: 0.45;
  transform-origin: top;
}

.home-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: 60;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-header .brand.lim-logo,
.home-header .brand.lim-logo:hover {
  color: var(--logo-color);
}

.home-header .icon-btn {
  border-color: rgba(247, 248, 252, 0.2);
  color: var(--hero-text);
}

.home-header .icon-btn:hover {
  background: rgba(247, 248, 252, 0.08);
  color: var(--hero-text);
}

.home-header.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-header.is-scrolled .brand.lim-logo,
.home-header.is-scrolled .brand.lim-logo:hover {
  color: var(--logo-color);
}

.home-header.is-scrolled .icon-btn {
  border-color: var(--border);
  color: var(--text-primary);
}

.home-header.is-scrolled .icon-btn:hover {
  background: var(--surface);
}

/* ——— Home body ——— */
.home-section {
  padding: var(--space-9) 0;
}

.home-section__intro {
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.home-section__intro h2 {
  margin-top: 0;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.chapter-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 200px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
}

.chapter-card:hover {
  color: inherit;
  border-color: var(--border-strong);
}

.chapter-card__num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.chapter-card h3 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--lim-font-weight-semibold);
  letter-spacing: var(--tracking-section);
}

.chapter-card p {
  margin: 0;
  flex: 1;
  font-size: var(--text-sm);
}

.chapter-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  background: var(--accent);
  pointer-events: none;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 960px) {
  .chapter-grid,
  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .chapter-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .home-hero__lock {
    white-space: normal;
  }

  .home-hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Playground */
.playground-stage {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-6);
  min-height: 280px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
}

.playground-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.field label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.field select,
.field input[type="text"] {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  padding: 0 12px;
  font: inherit;
}

@media (max-width: 700px) {
  .playground-controls {
    grid-template-columns: 1fr;
  }
}

/* ——— Documentation index ——— */
.docs-main--index .page-hero {
  max-width: 42rem;
}

.docs-main--index .section {
  max-width: none;
}

.doc-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.doc-card {
  text-decoration: none;
  color: inherit;
  min-height: 240px;
}

.doc-card:hover {
  color: inherit;
}

.doc-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.doc-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--duration-slow) var(--ease-emphasized);
}

.doc-card__status svg {
  width: 12px;
  height: 12px;
}

.doc-card__status--ready {
  color: var(--success);
}

.principle-preview--accent .doc-card__status--ready,
.principle-preview--accent .doc-card__status--progress {
  color: rgba(255, 255, 255, 0.78);
}

.doc-card__status--progress {
  color: var(--warning);
}

.doc-card__icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  color: var(--text-tertiary);
  margin: var(--space-2) 0 auto;
  transition: color var(--duration-slow) var(--ease-emphasized);
}

.doc-card__icon svg {
  width: 100%;
  height: 100%;
}

.doc-card__body {
  position: relative;
  z-index: 1;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.roadmap-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 180px;
}

.roadmap-card__version {
  font-family: var(--lim-font-sans);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
}

.roadmap-card__meta {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.roadmap-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.roadmap-card--current {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.principles-diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-6);
}

.principles-diagram svg {
  width: 100%;
  height: auto;
  max-width: 720px;
  margin-inline: auto;
}

.site-footer--index .site-footer__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.site-footer__block span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.site-footer__block a,
.site-footer__block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.site-footer__block a:hover {
  color: var(--accent);
}

@media (max-width: 960px) {
  .doc-index-grid,
  .roadmap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer--index .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .doc-index-grid,
  .roadmap-grid,
  .site-footer--index .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ——— Interface Library ——— */
.lib-page {
  width: min(var(--shell-max), calc(100% - 40px));
  margin-inline: auto;
  padding-bottom: var(--space-9);
}

.lib-hero {
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-6);
}

.lib-hero__inner {
  max-width: 40rem;
}

.lib-hero h1 {
  margin-bottom: var(--space-4);
}

.lib-hero__lead {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 32rem;
}

.lib-hero__count {
  margin: 0;
  font-family: var(--lim-font-sans);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.lib-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  padding: var(--space-4) 0;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}

.lib-toolbar__inner {
  display: grid;
  gap: var(--space-4);
}

.lib-search {
  position: relative;
  display: block;
}

.lib-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.lib-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px 0 46px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--text-md);
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.lib-search input::placeholder {
  color: var(--text-tertiary);
}

.lib-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.lib-filter {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.lib-filter:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.lib-filter.is-active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.lib-stats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.lib-stat {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.lib-stat strong {
  display: block;
  font-family: var(--lim-font-sans);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.lib-stat span {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.lib-results__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.lib-results__bar strong {
  color: var(--text-primary);
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.lib-card {
  text-decoration: none;
  color: inherit;
  min-height: 280px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lib-card:hover {
  color: inherit;
}

.lib-card[hidden],
.library-card[hidden] {
  display: none !important;
}

.lib-card__preview {
  position: relative;
  z-index: 1;
  height: 112px;
  margin: 0;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
  display: grid;
  place-items: center;
  transition:
    background-color var(--duration-slow) var(--ease-emphasized),
    border-color var(--duration-slow) var(--ease-emphasized);
}

.principle-preview--accent .lib-card__preview {
  background: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.lib-card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}

.lib-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.lib-card__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--duration-slow) var(--ease-emphasized);
}

/* Wireframe preview primitives */
.pv {
  width: 100%;
  max-width: 168px;
  color: var(--text-tertiary);
}

.principle-preview--accent .pv {
  color: rgba(255, 255, 255, 0.7);
}

.pv i,
.pv b,
.pv label,
.pv aside,
.pv main,
.pv span {
  display: block;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.28;
}

.principle-preview--accent .pv i,
.principle-preview--accent .pv b,
.principle-preview--accent .pv label,
.principle-preview--accent .pv aside,
.principle-preview--accent .pv main,
.principle-preview--accent .pv span {
  opacity: 0.45;
}

.pv .on { opacity: 0.55; }
.pv .hi { opacity: 0.6; }
.pv .r { margin-left: auto; }

.pv--header { display: flex; align-items: center; gap: 6px; }
.pv--header i:first-child { width: 18px; height: 18px; border-radius: 50%; opacity: 0.4; }
.pv--header i { height: 6px; flex: 1; }
.pv--header i:last-child { width: 28px; flex: 0 0 auto; height: 10px; border-radius: 999px; opacity: 0.45; }

.pv--mega b { height: 8px; margin-bottom: 8px; width: 40%; }
.pv--mega span { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pv--mega span i { height: 28px; }

.pv--sidebar { display: grid; grid-template-columns: 28px 1fr; gap: 8px; height: 52px; }
.pv--sidebar aside { height: 100%; opacity: 0.35; }
.pv--sidebar main { display: grid; gap: 6px; align-content: start; background: transparent; opacity: 1; }
.pv--sidebar main i { height: 8px; }

.pv--crumbs { display: flex; align-items: center; gap: 6px; }
.pv--crumbs i { width: 28px; height: 6px; }
.pv--crumbs em { font-style: normal; opacity: 0.35; font-size: 10px; color: currentColor; }

.pv--pages { display: flex; gap: 6px; justify-content: center; }
.pv--pages i { width: 16px; height: 16px; }

.pv--tabs { display: grid; gap: 8px; }
.pv--tabs { grid-template-columns: repeat(3, 1fr); }
.pv--tabs i { height: 10px; }
.pv--tabs b { grid-column: 1 / -1; height: 28px; }

.pv--hero i:first-child { height: 10px; width: 70%; margin-bottom: 6px; }
.pv--hero i:nth-child(2) { height: 6px; width: 90%; margin-bottom: 10px; }
.pv--hero b { height: 12px; width: 36%; border-radius: 999px; opacity: 0.45; }

.pv--pricing { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pv--pricing i { height: 48px; }

.pv--product b { height: 34px; margin-bottom: 6px; }
.pv--product i { height: 6px; margin-bottom: 4px; width: 70%; }

.pv--cart i { height: 10px; margin-bottom: 6px; }
.pv--cart b { height: 12px; width: 40%; border-radius: 999px; margin-top: 8px; opacity: 0.45; }

.pv--field label { height: 5px; width: 30%; margin-bottom: 6px; opacity: 0.35; }
.pv--field i { height: 16px; }

.pv--modal { display: grid; place-items: center; }
.pv--modal b { width: 78%; padding: 10px; background: transparent; opacity: 1; border: 1px solid currentColor; border-radius: 8px; opacity: 0.35; display: grid; gap: 6px; }
.pv--modal b i { height: 6px; }
.pv--modal b span { height: 10px; width: 40%; border-radius: 999px; margin-top: 4px; }

.pv--toast { display: flex; justify-content: flex-end; }
.pv--toast i { width: 48%; height: 16px; border-radius: 8px; }

.pv--acc i { height: 12px; margin-bottom: 6px; }

.pv--table b { height: 8px; margin-bottom: 6px; opacity: 0.4; }
.pv--table i { height: 7px; margin-bottom: 4px; }

.pv--search i { height: 18px; border-radius: 999px; }

.pv--cmd i { height: 16px; border-radius: 8px; margin-bottom: 8px; }
.pv--cmd b { height: 8px; margin-bottom: 5px; }

.pv--footer { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; }
.pv--footer i { height: 28px; }

.pv--kpi { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pv--kpi i { height: 36px; }

.pv--kanban { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pv--kanban span { display: grid; gap: 4px; background: transparent; opacity: 1; }
.pv--kanban span i { height: 14px; }

.pv--chat { display: grid; gap: 6px; }
.pv--chat i { height: 12px; width: 62%; }
.pv--chat i.r { width: 48%; }

.pv--cookie { display: flex; align-items: center; gap: 8px; }
.pv--cookie i { flex: 1; height: 18px; }
.pv--cookie span { width: 28px; height: 12px; border-radius: 999px; opacity: 0.45; }

.pv--nav { display: grid; gap: 6px; }
.pv--nav i { height: 8px; }
.pv--nav i:nth-child(2) { width: 70%; }
.pv--nav i:nth-child(3) { width: 55%; }

.pv--mkt b { height: 20px; margin-bottom: 8px; width: 55%; }
.pv--mkt i { height: 6px; margin-bottom: 4px; }

.pv--shop b { height: 30px; margin-bottom: 6px; }
.pv--shop i { height: 6px; margin-bottom: 4px; width: 65%; }

.pv--content i { height: 6px; margin-bottom: 5px; }
.pv--content i:first-child { width: 40%; height: 8px; margin-bottom: 8px; opacity: 0.4; }

.pv--dash { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pv--dash i { height: 22px; }
.pv--dash b { grid-column: 1 / -1; height: 18px; }

.pv--forms i { height: 14px; margin-bottom: 6px; }
.pv--forms span { height: 12px; width: 34%; border-radius: 999px; opacity: 0.45; }

.pv--fb { display: flex; justify-content: center; }
.pv--fb i { width: 70%; height: 22px; border-radius: 10px; }

.pv--util { display: grid; gap: 6px; }
.pv--util i { height: 10px; }

.lib-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--duration-slow) var(--ease-emphasized);
}

.lib-status svg {
  width: 12px;
  height: 12px;
}

.lib-status--ready { color: var(--success); }
.lib-status--preview { color: var(--accent); }
.lib-status--planned { color: var(--warning); }
.lib-status--future { color: var(--text-tertiary); }

.principle-preview--accent .lib-status {
  color: rgba(255, 255, 255, 0.78);
}

.principle-preview--accent .lib-card__meta {
  color: rgba(255, 255, 255, 0.55);
}

.lib-empty {
  margin-top: var(--space-7);
  text-align: center;
  color: var(--text-secondary);
}

.lib-stub {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-8);
}

.lib-stub__inner {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 1100px) {
  .lib-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .lib-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .lib-grid,
  .lib-stats {
    grid-template-columns: 1fr;
  }

  .lib-hero {
    padding-top: calc(var(--header-h) + var(--space-6));
  }
}
