/* ============================================================
   DocsStation — Design Tokens & Theme Resets
   ============================================================ */
:root {
  --ds-ink: #0f172a;
  --ds-body: #334155;
  --ds-muted: #64748b;
  --ds-subtle: #94a3b8;
  --ds-line: #e2e8f0;
  --ds-line-soft: #f1f5f9;
  --ds-blue: #155eef;
  --ds-blue-hover: #004ee9;
  --ds-blue-soft: #eef4ff;
  --ds-bg: #f8fafc;
  --ds-surface: #ffffff;
  --ds-surface-alt: #f8fafc;
  --ds-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ds-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.045), 0 1px 3px rgba(15, 23, 42, 0.03);
  --ds-shadow-md: 0 12px 32px -6px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.03);
}

body.docsstation-page {
  background: var(--ds-bg);
}

body.docsstation-page #page,
body.docsstation-page .site,
body.docsstation-page .site-content,
body.docsstation-page .content-area,
body.docsstation-page .site-main,
body.docsstation-page .wp-site-blocks,
body.docsstation-page .ast-container,
body.docsstation-page .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

body.docsstation-page .site-content {
  padding-top: 0;
}

.docsstation-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0 0 5rem;
  box-sizing: border-box;
  overflow-x: clip;
  background: var(--ds-bg);
  color: var(--ds-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.docsstation-shell *,
.docsstation-shell *::before,
.docsstation-shell *::after {
  box-sizing: border-box;
}

/* ============================================================
   Reading Progress Bar
   ============================================================ */
.docsstation-reading-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.docsstation-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #155eef 60%, #4f46e5 100%);
  transition: width 0.1s linear;
}

/* ============================================================
   Unified Sticky Topbar
   ============================================================ */
.docsstation-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  width: 100%;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ds-line);
}

.docsstation-topbar-inner {
  max-width: 1480px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.docsstation-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ds-ink) !important;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none !important;
  flex-shrink: 0;
}

.docsstation-brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb 0%, #155eef 100%);
  border-radius: 9px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(21, 94, 239, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.docsstation-brand:hover .docsstation-brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 94, 239, 0.36);
}

.docsstation-topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(440px, 42vw);
  margin-left: auto;
  height: 38px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 0.7rem;
  color: var(--ds-subtle);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.docsstation-topbar-search:hover {
  background: #edf2f7;
  border-color: #cbd5e1;
}

.docsstation-topbar-search:focus-within {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.11);
}

.docsstation-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-subtle);
  flex-shrink: 0;
  line-height: 1;
}

.docsstation-topbar-search:focus-within .docsstation-search-icon {
  color: var(--ds-blue);
}

.docsstation-topbar-search input[type="search"] {
  width: 100%;
  height: 100%;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--ds-ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
  margin: 0;
}

.docsstation-topbar-search input[type="search"]::placeholder {
  color: var(--ds-subtle);
}

.docsstation-topbar-search kbd {
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid var(--ds-line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.12rem 0.42rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--ds-muted);
  line-height: 1.25;
  flex-shrink: 0;
}

.docsstation-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.docsstation-font-controls {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.docsstation-topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 30px;
  padding: 0 0.48rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ds-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.docsstation-topbar-icon-btn:hover,
.docsstation-topbar-icon-btn:focus-visible {
  background: #ffffff;
  color: var(--ds-ink);
  box-shadow: var(--ds-shadow-xs);
  outline: 0;
}

.docsstation-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  height: 36px;
  padding: 0 0.85rem;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ds-ink) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.docsstation-topbar-link:hover,
.docsstation-topbar-link.is-active {
  border-color: #b2ccff;
  background: var(--ds-blue-soft);
  color: var(--ds-blue) !important;
}

/* ============================================================
   Layout Container & Breadcrumbs
   ============================================================ */
.docsstation-container,
.docsstation-archive {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.docsstation-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin: 0;
  padding: 1.1rem 0 1rem;
  font-size: 0.8rem;
  color: var(--ds-muted);
}

.docsstation-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.48rem;
  border-radius: 6px;
  color: var(--ds-muted) !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.14s ease, color 0.14s ease;
}

.docsstation-breadcrumbs a:first-child {
  padding-left: 0.2rem;
}

.docsstation-breadcrumbs a:hover {
  background: #eef4ff;
  color: var(--ds-blue) !important;
}

.docsstation-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
}

.docsstation-breadcrumb-current {
  padding: 0.22rem 0.5rem;
  color: var(--ds-ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(420px, 60vw);
}

/* ============================================================
   Three-Column Documentation Grid
   ============================================================ */
.docsstation-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 248px;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  width: 100%;
  margin: 0 auto;
  align-items: start;
  transition: grid-template-columns 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.docsstation-layout.docsstation-left-hidden {
  grid-template-columns: 0 minmax(0, 1fr) 248px;
}

.docsstation-layout.docsstation-right-hidden {
  grid-template-columns: 272px minmax(0, 1fr) 0;
}

.docsstation-layout.docsstation-left-hidden.docsstation-right-hidden {
  grid-template-columns: 0 minmax(0, 1fr) 0;
}

.docsstation-sidebar {
  font-size: 0.9rem;
  min-width: 0;
  overflow: visible;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.docsstation-sidebar-left,
.docsstation-sidebar-right {
  position: sticky;
  top: calc(64px + 1.25rem);
  align-self: start;
}

.docsstation-left-hidden .docsstation-sidebar-left,
.docsstation-right-hidden .docsstation-sidebar-right {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  height: 0;
}

.docsstation-mobile-toggle {
  display: none;
}

/* ============================================================
   LEFT SIDEBAR — Navigation
   ============================================================ */
.docsstation-nav {
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  padding: 1.05rem 0.8rem 1.2rem;
  box-shadow: var(--ds-shadow-sm);
  max-height: calc(100vh - 64px - 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.docsstation-nav::-webkit-scrollbar,
.docsstation-toc-panel::-webkit-scrollbar {
  width: 5px;
}

.docsstation-nav::-webkit-scrollbar-track,
.docsstation-toc-panel::-webkit-scrollbar-track {
  background: transparent;
}

.docsstation-nav::-webkit-scrollbar-thumb,
.docsstation-toc-panel::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.docsstation-nav:hover::-webkit-scrollbar-thumb,
.docsstation-toc-panel:hover::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.docsstation-nav::-webkit-scrollbar-thumb:hover,
.docsstation-toc-panel::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.docsstation-sidebar-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ds-subtle);
  font-weight: 800;
  margin: 0 0 0.55rem 0.45rem;
}

.docsstation-sidebar-label::before {
  content: "";
  display: block;
  width: 3px;
  height: 10px;
  background: linear-gradient(180deg, #155eef, #60a5fa);
  border-radius: 999px;
  flex-shrink: 0;
}

.docsstation-sidebar-left h2,
.docsstation-nav-group h2 {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--ds-ink);
  margin: 0 0 0.65rem 0.45rem;
  letter-spacing: -0.02em;
}

.docsstation-nav-group + .docsstation-nav-group {
  border-top: 1px solid var(--ds-line-soft);
  margin-top: 1.05rem;
  padding-top: 1.05rem;
}

.docsstation-category-tree,
.docsstation-document-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docsstation-category-item {
  margin: 2px 0;
}

.docsstation-category-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 9px !important;
  border-radius: 9px;
  color: #334155 !important;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none !important;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
  position: relative;
}

.docsstation-category-link strong {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docsstation-category-link:hover {
  background: #f1f5f9 !important;
  color: var(--ds-ink) !important;
}

.docsstation-category-item.is-expanded > .docsstation-category-link {
  color: var(--ds-ink) !important;
  background: #f8fafc !important;
}

.docsstation-category-item.is-expanded > .docsstation-category-link strong {
  font-weight: 700;
}

.docsstation-category-item.is-active > .docsstation-category-link {
  background: linear-gradient(90deg, #eef4ff 0%, #f5f8ff 100%) !important;
  color: var(--ds-blue) !important;
  box-shadow: inset 3px 0 0 var(--ds-blue);
}

.docsstation-category-item.is-active > .docsstation-category-link strong {
  font-weight: 700;
}

.docsstation-category-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.docsstation-category-link:hover .docsstation-category-marker,
.docsstation-category-item.is-expanded > .docsstation-category-link .docsstation-category-marker {
  background: #60a5fa;
  transform: scale(1.15);
}

.docsstation-category-item.is-active > .docsstation-category-link .docsstation-category-marker {
  background: var(--ds-blue);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.18);
  transform: scale(1.2);
}

.docsstation-category-count {
  margin-left: auto;
  color: var(--ds-muted);
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: background 0.14s ease, color 0.14s ease;
}

.docsstation-category-link:hover .docsstation-category-count {
  background: #e2e8f0;
  color: var(--ds-ink);
}

.docsstation-category-item.is-active > .docsstation-category-link .docsstation-category-count,
.docsstation-category-item.is-expanded > .docsstation-category-link .docsstation-category-count {
  background: #dbeafe;
  color: #1e40af;
}

.docsstation-category-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-subtle);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.14s ease;
}

.docsstation-category-item.is-expanded > .docsstation-category-link .docsstation-category-chevron {
  transform: rotate(90deg);
  color: var(--ds-blue);
}

/* Document tree inside expanded category */
.docsstation-document-tree {
  margin: 4px 0 8px 13px !important;
  padding-left: 10px;
  border-left: 1.5px solid #e2e8f0;
  list-style: none;
}

.docsstation-document-tree li {
  margin: 2px 0;
}

.docsstation-document-tree li a {
  display: block;
  color: var(--ds-muted) !important;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 5px 9px;
  border-radius: 7px;
  text-decoration: none !important;
  transition: background 0.13s ease, color 0.13s ease;
  position: relative;
}

.docsstation-document-tree li a:hover {
  color: var(--ds-blue) !important;
  background: #f1f5f9;
}

.docsstation-document-tree li.is-current a {
  background: linear-gradient(90deg, #eef4ff, #f6f9ff) !important;
  color: var(--ds-blue) !important;
  font-weight: 650;
  box-shadow: inset 2.5px 0 0 var(--ds-blue);
  border-radius: 7px;
}

.docsstation-nav-empty {
  font-size: 0.82rem;
  color: var(--ds-subtle);
  padding: 6px 12px;
}

.docsstation-back-to-docs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ds-blue) !important;
  text-decoration: none !important;
  margin-bottom: 0.85rem;
  padding: 0.38rem 0.65rem;
  border-radius: 7px;
  background: var(--ds-blue-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.docsstation-back-to-docs:hover {
  background: #dbe7ff;
  color: #0b4bcc !important;
}

.docsstation-is-isolated .docsstation-nav-group h2 {
  font-size: 0.92rem;
  color: var(--ds-ink);
  font-weight: 750;
}

/* ============================================================
   RIGHT SIDEBAR — Table of Contents
   ============================================================ */
.docsstation-toc-panel {
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  padding: 1.05rem 0.95rem 1.25rem;
  box-shadow: var(--ds-shadow-sm);
  max-height: calc(100vh - 64px - 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.docsstation-sidebar-right .docsstation-sidebar-label {
  margin: 0 0 0.45rem 0.2rem;
}

.docsstation-toc-panel h2 {
  margin: 0 0 0.85rem 0.2rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--ds-ink);
  text-transform: none;
  letter-spacing: -0.02em;
}

.docsstation-toc {
  position: static;
  border-left: 1.5px solid #e2e8f0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 3px;
}

.docsstation-toc a {
  position: relative;
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ds-muted);
  text-decoration: none !important;
  padding: 5px 10px 5px 14px;
  border-radius: 0 7px 7px 0;
  transition: color 0.14s ease, background 0.14s ease;
}

.docsstation-toc a:hover {
  color: var(--ds-blue);
  background: #f4f7fe;
}

.docsstation-toc a.is-active {
  color: var(--ds-blue);
  font-weight: 650;
  background: linear-gradient(90deg, #eef4ff, #f7faff);
}

.docsstation-toc a.is-active::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 4px;
  bottom: 4px;
  width: 2.5px;
  background: var(--ds-blue);
  border-radius: 999px;
}

.docsstation-toc-subitem {
  padding-left: 26px !important;
  font-size: 0.76rem !important;
  color: #7b889c;
}

.docsstation-toc-subitem:hover,
.docsstation-toc-subitem.is-active {
  color: var(--ds-blue);
}

/* ============================================================
   CENTER ARTICLE CARD & INTEGRATED TOOLBAR
   ============================================================ */
.docsstation-shell .docsstation-layout > article.docsstation-article,
.docsstation-shell article.docsstation-article.hentry {
  min-width: 0;
  background: var(--ds-surface);
  background-color: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  padding: 0;
  margin: 0;
  box-shadow: var(--ds-shadow-md);
  overflow: clip;
}

.docsstation-article-body {
  padding: 2rem clamp(1.5rem, 3.5vw, 3.25rem) clamp(2rem, 4vw, 3.25rem);
}

.docsstation-article-actions {
  position: sticky;
  top: 64px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0.78rem clamp(1.5rem, 3.5vw, 3.25rem);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ds-line-soft);
  border-radius: 16px 16px 0 0;
}

.docsstation-reading-tools,
.docsstation-layout-toggles {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.docsstation-reading-tools {
  position: relative;
}

.docsstation-learning-button,
.docsstation-sidebar-toggle,
.docsstation-reading-button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  height: 33px;
  padding: 0 0.78rem;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  background: var(--ds-surface);
  color: var(--ds-body);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.docsstation-learning-button:hover,
.docsstation-learning-button:focus-visible,
.docsstation-sidebar-toggle:hover,
.docsstation-sidebar-toggle:focus-visible,
.docsstation-reading-button:hover {
  border-color: #b2ccff;
  color: var(--ds-blue);
  background: #f5f8ff;
  outline: 0;
}

.docsstation-learning-button.is-active,
.docsstation-sidebar-toggle.is-active,
.docsstation-reading-button[aria-pressed="true"] {
  border-color: #93c5fd;
  color: var(--ds-blue);
  background: var(--ds-blue-soft);
}

.docsstation-learning-button[data-learning-action="completed"].is-active,
.docsstation-personal-button[data-learning-action="completed"].is-active {
  border-color: #6ce9a6 !important;
  color: #027a48 !important;
  background: #ecfdf3 !important;
  font-weight: 650;
}

.docsstation-learning-button[data-learning-action="completed"].is-active:hover,
.docsstation-personal-button[data-learning-action="completed"].is-active:hover {
  border-color: #32d583 !important;
  background: #d1fadf !important;
}

.docsstation-learning-error {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  color: #b42318;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* ============================================================
   Article Header, Kicker Pills & Meta Row
   ============================================================ */
.docsstation-article-header {
  border-bottom: 1px solid var(--ds-line);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
}

.docsstation-article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.docsstation-article-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background: var(--ds-blue-soft);
  border: 1px solid #dbe7ff;
  color: var(--ds-blue) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.docsstation-article-kicker:hover {
  background: #dbe7ff;
  border-color: #b2ccff;
  transform: translateY(-1px);
}

.docsstation-shell .docsstation-article-header h1 {
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  color: var(--ds-ink);
}

.docsstation-description {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ds-muted);
  margin: 0 0 1.25rem;
  max-width: 66ch;
}

.docsstation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.15rem;
  font-size: 0.82rem;
  color: var(--ds-muted);
  margin: 0;
}

.docsstation-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.docsstation-meta-item svg {
  color: var(--ds-subtle);
  flex-shrink: 0;
}

.docsstation-meta-pill {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--ds-line-soft);
  color: var(--ds-body);
  font-weight: 600;
  font-size: 0.76rem;
}

/* ============================================================
   Editorial Prose Typography
   ============================================================ */
.docsstation-entry-content {
  --docsstation-font-scale: 1;
  font-size: calc(1.02rem * var(--docsstation-font-scale));
  line-height: 1.78;
  color: var(--ds-body);
  scroll-behavior: smooth;
}

.docsstation-entry-content > *:first-child {
  margin-top: 0;
}

.docsstation-entry-content p {
  margin: 0 0 1.25rem;
}

.docsstation-entry-content strong {
  color: var(--ds-ink);
  font-weight: 650;
}

.docsstation-entry-content h2 {
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--ds-ink);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ds-line-soft);
  letter-spacing: -0.025em;
  scroll-margin-top: 7.5rem;
}

.docsstation-entry-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ds-ink);
  margin: 2rem 0 0.7rem;
  letter-spacing: -0.015em;
  scroll-margin-top: 7.5rem;
}

.docsstation-entry-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ds-ink);
  margin: 1.5rem 0 0.5rem;
  scroll-margin-top: 7.5rem;
}

.docsstation-entry-content ul,
.docsstation-entry-content ol {
  margin: 0 0 1.35rem;
  padding-left: 1.45rem;
}

.docsstation-entry-content li {
  margin-bottom: 0.45rem;
}

.docsstation-entry-content li::marker {
  color: var(--ds-blue);
  font-weight: 600;
}

.docsstation-entry-content a {
  color: var(--ds-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(21, 94, 239, 0.35);
  transition: text-decoration-color 0.14s ease, color 0.14s ease;
}

.docsstation-entry-content a:hover {
  text-decoration-color: var(--ds-blue);
}

.docsstation-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--ds-line);
  margin: 1.25rem 0;
}

.docsstation-entry-content blockquote {
  margin: 1.65rem 0;
  padding: 1rem 1.25rem;
  border-left: 3.5px solid var(--ds-blue);
  border-radius: 0 10px 10px 0;
  background: #f5f8ff;
  color: var(--ds-body);
}

.docsstation-entry-content blockquote > *:last-child {
  margin-bottom: 0;
}

.docsstation-entry-content hr {
  margin: 2.25rem 0;
  border: 0;
  border-top: 1px solid var(--ds-line);
}

.docsstation-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
  border: 1px solid var(--ds-line);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.docsstation-entry-content th {
  text-align: left;
  padding: 0.72rem 0.95rem;
  background: #f8fafc;
  color: var(--ds-ink);
  font-weight: 700;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--ds-line);
}

.docsstation-entry-content td {
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--ds-line-soft);
  vertical-align: top;
}

.docsstation-entry-content tr:last-child td {
  border-bottom: 0;
}

.docsstation-entry-content tbody tr:hover td {
  background: #fafbfd;
}

.docsstation-entry-content pre:not(.docsstation-code-snippet pre) {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.6rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #172033;
  font: 0.88rem/1.7 "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre;
  tab-size: 4;
  -moz-tab-size: 4;
}

.docsstation-entry-content pre:not(.docsstation-code-snippet pre) code {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: inherit;
  word-break: normal;
}

.docsstation-entry-content pre code[class*="language-"] {
  white-space: inherit;
}

.docsstation-entry-content pre .token.comment,
.docsstation-entry-content pre .token.prolog,
.docsstation-entry-content pre .token.doctype,
.docsstation-entry-content pre .token.cdata { color: #667085; }
.docsstation-entry-content pre .token.keyword,
.docsstation-entry-content pre .token.selector,
.docsstation-entry-content pre .token.tag { color: #7f56d9; }
.docsstation-entry-content pre .token.string,
.docsstation-entry-content pre .token.attr-value { color: #067647; }
.docsstation-entry-content pre .token.number,
.docsstation-entry-content pre .token.boolean { color: #b54708; }

.docsstation-entry-content code:not(pre code) {
  padding: 0.14em 0.38em;
  border-radius: 5px;
  background: #eef4ff;
  color: #1e3a8a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}

.docsstation-entry-content kbd {
  padding: 0.15em 0.42em;
  border: 1px solid var(--ds-line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f8fafc;
  font-size: 0.82em;
  font-weight: 600;
}

/* ============================================================
   Audio Player (Listen to Document)
   ============================================================ */
.docsstation-audio-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.4rem 0 0;
  padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  background: #ffffff;
  border: 1px solid var(--ds-line);
  border-radius: 50px;
  box-shadow: var(--ds-shadow-xs);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.docsstation-audio-bar:hover {
  border-color: #cbd5e1;
  box-shadow: var(--ds-shadow-sm);
}

.docsstation-audio-bar.is-playing {
  background: #fbfdff;
  border-color: #b2ccff;
  box-shadow: 0 4px 16px -2px rgba(21, 94, 239, 0.12);
}

.docsstation-audio-bar.is-paused {
  background: #fffdf8;
  border-color: #fedf89;
  box-shadow: 0 2px 8px -2px rgba(247, 144, 9, 0.1);
}

.docsstation-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: linear-gradient(135deg, #155eef 0%, #004ee9 100%);
  color: #ffffff;
  border-radius: 50px;
  padding: 0.48rem 1.05rem 0.48rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(21, 94, 239, 0.22);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.docsstation-audio-toggle:hover,
.docsstation-audio-toggle:focus-visible {
  background: linear-gradient(135deg, #004ee9 0%, #0b4bcc 100%);
  box-shadow: 0 4px 10px rgba(21, 94, 239, 0.32);
  transform: translateY(-1px);
  outline: 0;
}

.docsstation-audio-toggle:active {
  transform: translateY(0);
}

.docsstation-audio-bar.is-paused .docsstation-audio-toggle {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.docsstation-audio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 1;
}

.docsstation-icon-play,
.docsstation-icon-pause {
  display: block;
}

.docsstation-icon-pause,
.docsstation-audio-bar.is-playing .docsstation-icon-play {
  display: none;
}

.docsstation-audio-bar.is-playing .docsstation-icon-pause {
  display: block;
}

.docsstation-audio-waves {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  margin-left: -0.15rem;
}

.docsstation-audio-bar.is-playing .docsstation-audio-waves {
  display: inline-flex;
}

.docsstation-audio-waves span {
  display: block;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: docsstation-wave 0.9s ease-in-out infinite alternate;
}

.docsstation-audio-waves span:nth-child(1) { height: 4px; animation-delay: 0s; }
.docsstation-audio-waves span:nth-child(2) { height: 11px; animation-delay: 0.25s; }
.docsstation-audio-waves span:nth-child(3) { height: 7px; animation-delay: 0.5s; }
@keyframes docsstation-wave { 0% { height: 3px; } 100% { height: 11px; } }

.docsstation-audio-progress-wrap {
  flex: 1;
  height: 6px;
  background: #eaecf0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.docsstation-audio-progress-wrap:hover {
  height: 8px;
}

.docsstation-audio-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #53b1fd 0%, #155eef 100%);
  border-radius: 999px;
  transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.docsstation-audio-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.docsstation-audio-time {
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--ds-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding: 0 0.25rem;
  min-width: 48px;
  text-align: right;
}

.docsstation-audio-bar.is-playing .docsstation-audio-time {
  color: var(--ds-blue);
  font-weight: 650;
}

.docsstation-audio-bar.is-paused .docsstation-audio-time {
  color: #d97706;
}

.docsstation-audio-speed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 0.55rem;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: #344054 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--ds-shadow-xs);
}

.docsstation-audio-speed:hover,
.docsstation-audio-speed:focus-visible {
  background: #f8fafc;
  border-color: var(--ds-blue);
  color: var(--ds-blue) !important;
  transform: translateY(-1px);
  outline: 0;
}

/* ============================================================
   Live Search Suggestions Dropdown
   ============================================================ */
.docsstation-topbar-search,
.docsstation-search {
  position: relative;
}

.docsstation-search-suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.docsstation-search-suggestions[hidden] {
  display: none !important;
}

.docsstation-search-suggestions li a {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--ds-ink);
  text-decoration: none;
  transition: background 0.12s ease;
}

.docsstation-search-suggestions li a:hover,
.docsstation-search-suggestions li a:focus-visible {
  background: #f1f5f9;
  outline: 0;
}

.docsstation-search-suggestions strong {
  font-size: 0.86rem;
  font-weight: 650;
}

.docsstation-search-suggestions span,
.docsstation-search-suggestions small {
  color: var(--ds-muted);
  font-size: 0.74rem;
  line-height: 1.38;
}

.docsstation-search-suggestions mark {
  padding: 0 2px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 3px;
}

/* ============================================================
   Feedback, Personal Tools, Highlights & Prev/Next
   ============================================================ */
.docsstation-highlight {
  background: #fef08a;
  color: inherit;
  padding: 0.06em 0.14em;
  border-radius: 3px;
  cursor: pointer;
}

.docsstation-feedback,
.docsstation-personal-tools {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfcfe 0%, #f5f8fc 100%);
  box-shadow: var(--ds-shadow-sm);
}

.docsstation-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.75rem;
  margin-top: 3rem;
  padding: 1.45rem 1.65rem;
}

.docsstation-feedback h2 {
  margin: 0 0 0.3rem;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ds-ink);
  letter-spacing: -0.015em;
}

.docsstation-feedback__message {
  margin: 0;
  color: var(--ds-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.docsstation-feedback__comment {
  display: block;
  width: 100%;
  min-height: 70px;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: var(--ds-surface);
  color: var(--ds-ink);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.48;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docsstation-feedback__comment::placeholder,
.docsstation-note-editor textarea::placeholder {
  color: var(--ds-subtle);
}

.docsstation-feedback__comment:focus,
.docsstation-note-editor textarea:focus {
  border-color: #60a5fa;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.docsstation-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.docsstation-feedback__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ds-line);
  border-radius: 9px;
  background: var(--ds-surface);
  color: var(--ds-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.docsstation-feedback__button:hover,
.docsstation-feedback__button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.docsstation-feedback__button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.docsstation-feedback__button[data-feedback-rating="helpful"]:hover,
.docsstation-feedback__button[data-feedback-rating="helpful"]:focus-visible {
  border-color: #6ce9a6;
  background: #ecfdf3;
  color: #067647;
}

.docsstation-feedback__button[data-feedback-rating="not_helpful"]:hover,
.docsstation-feedback__button[data-feedback-rating="not_helpful"]:focus-visible {
  border-color: #fdb022;
  background: #fffaeb;
  color: #b54708;
}

.docsstation-feedback__button[data-feedback-rating="outdated"]:hover,
.docsstation-feedback__button[data-feedback-rating="outdated"]:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--ds-blue);
}

.docsstation-feedback.is-submitted {
  border-color: #6ce9a6;
  background: linear-gradient(135deg, #f3fef8 0%, #ecfdf3 100%);
}

.docsstation-personal-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  margin: 1.25rem 0 2.5rem;
  padding: 1.45rem 1.65rem;
}

.docsstation-note-editor {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docsstation-note-editor label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ds-ink);
  letter-spacing: -0.01em;
}

.docsstation-note-editor label svg {
  color: var(--ds-blue);
}

.docsstation-note-editor textarea {
  width: 100%;
  min-height: 108px;
  padding: 0.85rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  resize: vertical;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ds-ink);
  background: var(--ds-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docsstation-note-status {
  min-height: 1em;
  font-size: 0.74rem;
  color: var(--ds-muted);
}

.docsstation-personal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-start;
  padding-top: 1.85rem;
}

.docsstation-personal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ds-line);
  border-radius: 9px;
  background: var(--ds-surface);
  color: var(--ds-body);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.docsstation-personal-button:hover,
.docsstation-personal-button:focus-visible {
  border-color: #b2ccff;
  background: #f5f8ff;
  color: var(--ds-blue);
  transform: translateY(-1px);
  outline: 0;
}

.docsstation-personal-button.is-active {
  border-color: #84adff;
  background: var(--ds-blue-soft);
  color: var(--ds-blue);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.08);
}

.docsstation-highlight-help {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--ds-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.docsstation-highlight-help svg {
  color: var(--ds-subtle);
  flex-shrink: 0;
}

/* Prev/Next Document Cards */
.docsstation-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--ds-line);
  margin-top: 2.75rem;
  padding-top: 1.75rem;
}

.docsstation-prev-next-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  background: var(--ds-surface);
  text-decoration: none !important;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.docsstation-prev-next-card:hover {
  border-color: #93c5fd;
  background: #f8fbff;
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-sm);
}

.docsstation-prev-next-card.next {
  text-align: right;
  align-items: flex-end;
}

.docsstation-prev-next-dir {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ds-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docsstation-prev-next-card:hover .docsstation-prev-next-dir {
  color: var(--ds-blue);
}

.docsstation-prev-next-card strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ds-ink);
  line-height: 1.35;
}

/* ============================================================
   Learning Dashboard Shortcode Styles
   ============================================================ */
.docsstation-dashboard{max-width:1140px;margin:2.5rem auto 4rem;padding:0 1.5rem;color:var(--ds-ink);box-sizing:border-box}
.docsstation-dashboard *{box-sizing:border-box}
.docsstation-dashboard-hero{background:linear-gradient(135deg,#f8faff 0%,#f0f4ff 100%);border:1px solid #dbe4f0;border-radius:14px;padding:2.2rem 2.5rem;display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap;margin-bottom:2rem;box-shadow:0 4px 20px -2px rgba(16,24,40,.04)}
.docsstation-dashboard-hero-content{flex:1;min-width:280px}
.docsstation-dashboard-tag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#155eef;background:#e0eaff;padding:.3rem .75rem;border-radius:20px;margin-bottom:.75rem}
.docsstation-dashboard-hero h1{font-size:clamp(1.6rem,2.8vw,2.2rem);font-weight:800;color:#0f172a;margin:0 0 .5rem;letter-spacing:-.03em;line-height:1.2}
.docsstation-dashboard-hero p{color:#475467;font-size:.95rem;margin:0;line-height:1.5;max-width:580px}
.docsstation-dashboard-actions{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap}
.docsstation-dashboard-btn-primary,.docsstation-dashboard-btn-secondary{display:inline-flex;align-items:center;gap:.55rem;font-size:.88rem;font-weight:600;padding:.75rem 1.25rem;border-radius:8px;text-decoration:none!important;transition:all .18s ease;line-height:1.25}
.docsstation-dashboard-btn-primary{background:#155eef;color:#fff!important;border:1px solid #155eef;box-shadow:0 2px 6px rgba(21,94,239,.25)}
.docsstation-dashboard-btn-primary:hover{background:#1048b6;border-color:#1048b6;transform:translateY(-1px);box-shadow:0 4px 12px rgba(21,94,239,.35);color:#fff!important}
.docsstation-dashboard-btn-secondary{background:#fff;color:#344054!important;border:1px solid #d0d5dd;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.docsstation-dashboard-btn-secondary:hover{background:#f8fafc;border-color:#98a2b3;color:#101828!important;transform:translateY(-1px)}
.docsstation-dashboard-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin-bottom:2.2rem}
.docsstation-stat-card{background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:1.35rem 1.4rem;display:flex;align-items:flex-start;gap:1.1rem;box-shadow:0 2px 8px rgba(16,24,40,.04);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;position:relative;overflow:hidden}
.docsstation-stat-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(16,24,40,.08);border-color:#d0d5dd}
.docsstation-stat-icon-wrap{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .2s ease}
.docsstation-stat-card:hover .docsstation-stat-icon-wrap svg{transform:scale(1.1)}
.docsstation-stat-bookmarks .docsstation-stat-icon-wrap{background:#eff8ff;color:#175cd3;border:1px solid #b2ddff}
.docsstation-stat-completed .docsstation-stat-icon-wrap{background:#ecfdf3;color:#027a48;border:1px solid #a6f4c5}
.docsstation-stat-notes .docsstation-stat-icon-wrap{background:#f9f5ff;color:#6941c6;border:1px solid #e9d7fe}
.docsstation-stat-important .docsstation-stat-icon-wrap{background:#fffaeb;color:#b54708;border:1px solid #fedf89}
.docsstation-stat-info{display:flex;flex-direction:column;gap:.15rem;min-width:0}
.docsstation-stat-label{font-size:.78rem;font-weight:650;color:#667085;text-transform:uppercase;letter-spacing:.04em}
.docsstation-stat-value{font-size:2rem;font-weight:800;color:#101828;line-height:1.1;margin:.15rem 0}
.docsstation-stat-subtext{font-size:.76rem;color:#98a2b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.docsstation-dashboard-content-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
.docsstation-dashboard-col{display:flex;flex-direction:column;gap:1.5rem}
.docsstation-dashboard-panel{background:#fff;border:1px solid #eaecf0;border-radius:14px;padding:1.5rem;box-shadow:0 2px 10px rgba(16,24,40,.03);display:flex;flex-direction:column}
.docsstation-panel-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-bottom:1.1rem;margin-bottom:1.1rem;border-bottom:1px solid #f2f4f7}
.docsstation-panel-title-wrap{display:flex;align-items:center;gap:.65rem}
.docsstation-panel-icon{width:28px;height:28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.docsstation-panel-icon-blue{background:#eff8ff;color:#175cd3}
.docsstation-panel-icon-green{background:#ecfdf3;color:#027a48}
.docsstation-panel-icon-purple{background:#f9f5ff;color:#6941c6}
.docsstation-panel-icon-amber{background:#fffaeb;color:#b54708}
.docsstation-panel-header h2{font-size:1.05rem;font-weight:700;color:#101828;margin:0;letter-spacing:-.01em}
.docsstation-panel-count{font-size:.75rem;font-weight:700;color:#475467;background:#f2f4f7;padding:.2rem .6rem;border-radius:12px;min-width:20px;text-align:center}
.docsstation-card-list{display:flex;flex-direction:column;gap:.75rem}
.docsstation-item-card{display:flex;align-items:center;justify-content:space-between;gap:.85rem;padding:.85rem 1.1rem;background:#fafbfc;border:1px solid #eaecf0;border-radius:10px;transition:all .15s ease}
.docsstation-item-card:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 14px rgba(16,24,40,.05)}
.docsstation-item-link{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex:1;min-width:0;text-decoration:none!important;color:inherit}
.docsstation-item-text{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.docsstation-item-cat{font-size:.72rem;font-weight:650;color:#155eef;text-transform:uppercase;letter-spacing:.04em}
.docsstation-item-badge{display:inline-block;width:fit-content;font-size:.7rem;font-weight:650;padding:.15rem .5rem;border-radius:4px;line-height:1.25}
.docsstation-badge-complete{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
.docsstation-badge-important{background:#fffaeb;color:#b54708;border:1px solid #fedf89}
.docsstation-item-title{font-size:.92rem;font-weight:650;color:#1e293b;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;transition:color .15s ease}
.docsstation-item-card:hover .docsstation-item-title{color:#155eef}
.docsstation-item-arrow{color:#94a3b8;font-size:1.1rem;flex-shrink:0;transition:transform .15s ease,color .15s ease;margin-left:.3rem}
.docsstation-item-card:hover .docsstation-item-arrow{transform:translateX(3px);color:#155eef}
.docsstation-item-remove{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;background:#fff!important;border:1px solid #fecdca!important;color:#d92d20!important;font-size:.75rem!important;font-weight:650!important;padding:.38rem .7rem!important;border-radius:6px!important;cursor:pointer;transition:all .15s ease;line-height:1.2}
.docsstation-item-remove:hover{background:#fee4e2!important;border-color:#fda29b!important;color:#b42318!important;transform:translateY(-.5px)}
.docsstation-item-remove:disabled{opacity:.6;cursor:wait}
.docsstation-note-card{display:flex;flex-direction:column;gap:.6rem;align-items:stretch;background:#fbfbfe;border-left:3px solid #7f56d9;padding:.95rem 1.1rem}
.docsstation-note-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.docsstation-note-doc-title{font-size:.92rem;font-weight:700;color:#101828;text-decoration:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s ease}
.docsstation-note-doc-title:hover{color:#7f56d9!important;text-decoration:underline!important}
.docsstation-note-body{background:#fff;border:1px solid #f2f4f7;border-radius:6px;padding:.7rem .85rem}
.docsstation-note-body p{margin:0;font-size:.85rem;line-height:1.5;color:#475467;word-break:break-word}
.docsstation-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2.2rem 1.5rem;background:#fafbfc;border:1px dashed #d0d5dd;border-radius:10px;margin:.4rem 0}
.docsstation-empty-icon{font-size:1.8rem;margin-bottom:.5rem;line-height:1}
.docsstation-empty-state p{margin:0;font-size:.9rem;color:#101828}
.docsstation-empty-desc{font-size:.8rem;color:#667085;max-width:320px;margin-top:.35rem!important;line-height:1.45}
.docsstation-dashboard-login{background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:2rem;text-align:center;max-width:500px;margin:3rem auto;box-shadow:0 4px 16px rgba(16,24,40,.06)}
.docsstation-dashboard-login a{color:#155eef;font-weight:600;text-decoration:underline}

/* ============================================================
   Archive, Category & Search Pages
   ============================================================ */
.docsstation-archive {
  max-width: 1220px;
  padding-bottom: 4rem;
}

.docsstation-archive-header {
  position: relative;
  margin: 0.5rem 0 2rem;
  padding: 2.25rem 2.5rem;
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(21, 94, 239, 0.06), transparent 55%), linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  box-shadow: var(--ds-shadow-md);
}

.docsstation-archive-header-top {
  margin-bottom: 0.75rem;
}

.docsstation-archive-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--ds-blue-soft);
  border: 1px solid #dbe7ff;
  color: var(--ds-blue);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docsstation-archive-header h1 {
  max-width: 900px;
  margin: 0 0 1.15rem;
  color: var(--ds-ink);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.docsstation-archive-desc {
  max-width: 68ch;
  margin: -0.35rem 0 1.35rem;
  color: var(--ds-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.docsstation-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  gap: 0.65rem;
  max-width: 820px;
  margin: 0;
}

.docsstation-search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 46px;
  padding-left: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docsstation-search-field:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.docsstation-search-field input[type="search"] {
  flex: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0 !important;
  padding: 0 0.75rem !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--ds-ink);
  font: inherit;
  font-size: 0.92rem;
}

.docsstation-search select,
.docsstation-search .docsstation-category-filter {
  width: 220px;
  height: 46px;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: var(--ds-surface);
  color: var(--ds-ink);
  font: inherit;
  font-size: 0.88rem;
  box-shadow: var(--ds-shadow-xs);
}

.docsstation-search button {
  height: 46px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #155eef 100%);
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21, 94, 239, 0.25);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.docsstation-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 94, 239, 0.34);
}

.docsstation-results-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: -0.5rem 0 1.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  color: var(--ds-muted);
  font-size: 0.82rem;
}

.docsstation-results-summary strong {
  color: var(--ds-ink);
  font-weight: 750;
}

.docsstation-recently-viewed {
  margin: 0 0 2rem;
}

.docsstation-recently-viewed h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ds-ink);
  letter-spacing: -0.01em;
}

.docsstation-recently-viewed h2 svg {
  color: var(--ds-blue);
}

.docsstation-recently-viewed__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.docsstation-recently-viewed__list a {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--ds-line);
  border-radius: 10px;
  background: var(--ds-surface);
  color: var(--ds-ink) !important;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  box-shadow: var(--ds-shadow-xs);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.docsstation-recently-viewed__list a:hover {
  border-color: #93c5fd;
  color: var(--ds-blue) !important;
  transform: translateY(-1px);
}

.docsstation-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.docsstation-shell .docsstation-card-grid > article.docsstation-card,
.docsstation-shell article.docsstation-card.hentry {
  min-width: 0;
  background: var(--ds-surface);
  background-color: var(--ds-surface);
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--ds-shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.docsstation-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--ds-shadow-md);
  transform: translateY(-3px);
}

.docsstation-card-title {
  height: 100%;
  min-height: 186px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 1.25rem;
  color: var(--ds-ink) !important;
  text-decoration: none !important;
}

.docsstation-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.docsstation-card-category {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  background: var(--ds-blue-soft);
  color: var(--ds-blue);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docsstation-card-time {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ds-subtle);
  white-space: nowrap;
}

.docsstation-card-name {
  display: block;
  color: var(--ds-ink);
  font-size: 1.04rem;
  font-weight: 750;
  line-height: 1.38;
  letter-spacing: -0.015em;
  transition: color 0.14s ease;
}

.docsstation-card:hover .docsstation-card-name {
  color: var(--ds-blue);
}

.docsstation-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ds-muted);
  font-size: 0.82rem;
  font-weight: 450;
  line-height: 1.52;
}

.docsstation-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--ds-line-soft);
  color: var(--ds-blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.docsstation-card-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease;
}

.docsstation-card:hover .docsstation-card-arrow {
  transform: translateX(3px);
}

.docsstation-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  background: var(--ds-surface);
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: var(--ds-muted);
  text-align: center;
}

.docsstation-empty p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.docsstation-archive .pagination {
  margin: 2.5rem 0 0;
}

.docsstation-archive .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.docsstation-archive .nav-links > a,
.docsstation-archive .nav-links > span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ds-line);
  border-radius: 9px;
  background: var(--ds-surface);
  color: var(--ds-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.docsstation-archive .nav-links > a:hover {
  border-color: #93c5fd;
  color: var(--ds-blue);
}

.docsstation-archive .nav-links .current {
  border-color: var(--ds-blue);
  background: var(--ds-blue);
  color: #ffffff;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 1080px) {
  .docsstation-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .docsstation-sidebar-right {
    display: none;
  }

  .docsstation-sidebar-toggle[data-sidebar="right"] {
    display: none;
  }

  .docsstation-layout.docsstation-right-hidden {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .docsstation-layout.docsstation-left-hidden,
  .docsstation-layout.docsstation-left-hidden.docsstation-right-hidden {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 950px) {
  .docsstation-dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .docsstation-dashboard-content-grid { grid-template-columns: 1fr; }
  .docsstation-recently-viewed__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docsstation-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .docsstation-shell {
    padding: 0 0 3rem;
  }

  .docsstation-topbar {
    height: 60px;
  }

  .docsstation-topbar-inner {
    gap: 0.65rem;
  }

  .docsstation-brand-text {
    display: none;
  }

  .docsstation-topbar-search {
    width: auto;
    flex: 1;
    margin-left: 0;
  }

  .docsstation-topbar-search kbd,
  .docsstation-font-controls {
    display: none;
  }

  .docsstation-topbar-link span {
    display: none;
  }

  .docsstation-topbar-link {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .docsstation-layout,
  .docsstation-layout.docsstation-left-hidden,
  .docsstation-layout.docsstation-right-hidden,
  .docsstation-layout.docsstation-left-hidden.docsstation-right-hidden {
    display: block;
  }

  .docsstation-left-hidden .docsstation-sidebar-left,
  .docsstation-sidebar-toggle[data-sidebar="left"] {
    display: none;
  }

  .docsstation-sidebar-left {
    position: static;
    margin-bottom: 1rem;
  }

  .docsstation-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    color: var(--ds-ink);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--ds-shadow-xs);
  }

  .docsstation-nav {
    margin-top: 0.65rem;
    max-height: 65vh;
  }

  .docsstation-nav[hidden] {
    display: none;
  }

  .docsstation-shell .docsstation-layout > article.docsstation-article,
  .docsstation-shell article.docsstation-article.hentry {
    padding: 0;
    border-radius: 12px;
  }

  .docsstation-article-body {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .docsstation-article-actions {
    top: 60px;
    margin: 0;
    padding: 0.65rem 1.25rem;
    border-radius: 12px 12px 0 0;
  }

  .docsstation-feedback {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.25rem;
  }

  .docsstation-feedback__actions {
    justify-content: flex-start;
  }

  .docsstation-personal-tools {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .docsstation-personal-actions {
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .docsstation-prev-next {
    grid-template-columns: 1fr;
  }

  .docsstation-prev-next-card.next {
    text-align: left;
    align-items: flex-start;
  }

  .docsstation-archive-header {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

  .docsstation-search {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .docsstation-search select,
  .docsstation-search .docsstation-category-filter,
  .docsstation-search button {
    width: 100%;
  }

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

@media (max-width: 600px) {
  .docsstation-audio-bar {
    border-radius: 14px;
    padding: 0.75rem;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .docsstation-audio-progress-wrap {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    margin-top: 0.15rem;
  }

  .docsstation-recently-viewed__list {
    display: flex !important;
    overflow: auto;
  }

  .docsstation-recently-viewed__list a {
    flex: 0 0 220px;
  }

  .docsstation-dashboard { margin: 1.5rem auto; padding: 0 .85rem; }
  .docsstation-dashboard-hero { padding: 1.6rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .docsstation-dashboard-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .docsstation-dashboard-btn-primary, .docsstation-dashboard-btn-secondary { justify-content: center; width: 100%; }
  .docsstation-dashboard-stats-grid { grid-template-columns: 1fr; gap: .85rem; }
  .docsstation-dashboard-panel { padding: 1.15rem; }
  .docsstation-item-card { flex-direction: column; align-items: stretch; gap: .75rem; }
  .docsstation-item-remove { width: 100% !important; justify-content: center; }
}
