:root {
  --font-ui: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --font-alev: "Alev1";
  --bg: #09111f;
  --bg-elevated: rgba(12, 20, 36, 0.92);
  --bg-soft: rgba(21, 31, 54, 0.72);
  --text: #eff3ff;
  --text-muted: #a8b4d8;
  --border: rgba(137, 155, 226, 0.16);
  --accent: #89a2ff;
  --accent-soft: rgba(105, 129, 255, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(92, 120, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #0c1325 0%, #060a14 100%);
  color-scheme: dark;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] {
  --bg: #f6f8ff;
  --bg-elevated: rgba(255, 255, 255, 0.94);
  --bg-soft: rgba(227, 234, 255, 0.72);
  --text: #17213a;
  --text-muted: #52607f;
  --border: rgba(100, 121, 188, 0.18);
  --accent: #355fd9;
  --accent-soft: rgba(53, 95, 217, 0.1);
  --shadow: 0 24px 60px rgba(22, 34, 67, 0.12);
  background:
    radial-gradient(circle at top, rgba(53, 95, 217, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  color-scheme: light;
}

@font-face {
  font-family: "Alev1";
  src: url("/assets/alev1.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

code,
pre,
.dictionary-hex,
.binary-pill,
.hex-pill,
.nav-link {
  font-family: var(--font-mono);
}

.docs-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;

  .docs-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    border-right: 1px solid var(--border);
    background: rgba(6, 11, 22, 0.74);
    backdrop-filter: blur(18px);

    .sidebar-inner {
      display: grid;
      gap: 28px;
    }

    .brand {
      display: grid;
      gap: 4px;
    }

    .brand-mark {
      font-size: 1.2rem;
      font-weight: 700;
      letter-spacing: 0.08em;
    }

    .brand-sub {
      color: var(--text-muted);
      font-size: 0.84rem;
    }

    .sidebar-nav {
      display: grid;
      gap: 6px;
    }

    .nav-link {
      padding: 10px 12px;
      border-radius: 12px;
      color: var(--text-muted);
      transition:
        background-color 120ms ease,
        color 120ms ease;

      &:hover,
      &:focus-visible,
      &.is-active {
        color: var(--text);
        background: var(--accent-soft);
      }
    }
  }

  .docs-main {
    min-width: 0;
  }

  .docs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px 12px;
  }
}

html[data-theme="light"] {
  .docs-shell .docs-sidebar {
    background: rgba(242, 246, 255, 0.84);
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.header-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.theme-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}

.docs-content {
  padding: 8px 32px 56px;
}

.docs-article {
  display: grid;
  gap: 20px;

  > * {
    min-width: 0;
  }

  h1,
  h2,
  h3 {
    margin: 0;
    line-height: 1.1;
  }

  li,
  blockquote {
    color: var(--text);
  }

  p,
  ul,
  ol,
  pre,
  blockquote {
    margin: 0;
  }

  h2 {
    margin-top: 12px;
    font-size: 1.4rem;
  }

  h3 {
    margin-top: 6px;
    font-size: 1.06rem;
  }

  code {
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    background: var(--accent-soft);
    font-size: 0.92em;

    &.alev-inline,
    .alev-inline {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }
  }

  pre {
    overflow-x: auto;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);

    code {
      padding: 0;
      background: transparent;
    }
  }

  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  th,
  td {
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
  }

  th {
    color: var(--text-muted);
    background: var(--bg-soft);
    font-weight: 600;
  }
}

.component-shell,
.docs-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.install-video-panel {
  max-width: 700px;
}

.install-video {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.component-shell + h2,
h2 + .component-shell,
h2 + .docs-panel,
.docs-panel + h2 {
  margin-top: 0;
}

.alev-signal-demo {
  padding: 0;
  overflow: hidden;
}

.alev-signal-demo-frame {
  position: relative;
  min-height: 500px;
  padding: 28px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 45%, rgba(74, 132, 255, 0.22), transparent 33%),
    linear-gradient(180deg, rgba(11, 20, 40, 0.96), rgba(5, 10, 22, 0.98));
  isolation: isolate;

  &::before,
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  &::before {
    opacity: 0.32;
    background:
      repeating-linear-gradient(180deg, rgba(130, 226, 255, 0.06) 0 2px, transparent 2px 6px),
      linear-gradient(
        180deg,
        transparent 0%,
        transparent 18%,
        rgba(91, 237, 255, 0.12) 42%,
        rgba(91, 237, 255, 0.18) 50%,
        rgba(91, 237, 255, 0.12) 58%,
        transparent 82%,
        transparent 100%
      );
    mix-blend-mode: screen;
    animation: alev-signal-scan 3.2s ease-in-out infinite alternate;
  }

  &::after {
    opacity: 0.2;
    background:
      radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.16), transparent 12%),
      radial-gradient(circle at 80% 70%, rgba(86, 201, 255, 0.16), transparent 10%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px);
    mix-blend-mode: screen;
    animation: alev-signal-noise 0.28s steps(2) infinite;
  }
}

.alev-signal-demo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px 16px;
  align-content: center;
  min-height: 444px;
}

.alev-signal-demo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.8rem;
  color: rgba(225, 241, 255, 0.82);
  font-family: var(--font-alev), var(--font-ui);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  text-shadow:
    0 0 0.18em rgba(115, 206, 255, 0.55),
    0 0 0.45em rgba(63, 160, 255, 0.28);
  transition:
    transform 120ms ease,
    opacity 120ms ease,
    color 120ms ease,
    text-shadow 120ms ease;
  animation: alev-signal-flicker 2.1s steps(2) infinite;
}

.alev-signal-demo-cell.is-featured {
  color: #ffd96e;
  text-shadow:
    0 0 0.16em rgba(255, 223, 118, 0.82),
    0 0 0.38em rgba(255, 170, 66, 0.32);
}

.alev-signal-demo-cell.is-focus {
  color: #ffffff;
  transform: scale(1.08);
  text-shadow:
    0 0 0.12em rgba(255, 255, 255, 0.9),
    0 0 0.34em rgba(123, 230, 255, 0.7),
    0 0 0.8em rgba(58, 162, 255, 0.36);
}

.alev-signal-demo.is-glitch .alev-signal-demo-grid {
  transform: translate3d(1px, 0, 0);
}

.alev-signal-demo.is-glitch .alev-signal-demo-cell:nth-child(3n) {
  transform: translate3d(-2px, 0, 0);
}

.alev-signal-demo.is-glitch .alev-signal-demo-cell:nth-child(4n) {
  opacity: 0.76;
}

@keyframes alev-signal-scan {
  from {
    transform: translateY(-4%);
  }

  to {
    transform: translateY(4%);
  }
}

@keyframes alev-signal-noise {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0.5%, -0.6%, 0);
  }

  100% {
    transform: translate3d(-0.4%, 0.5%, 0);
  }
}

@keyframes alev-signal-flicker {
  0%,
  100% {
    opacity: 0.96;
  }

  25% {
    opacity: 0.76;
  }

  50% {
    opacity: 1;
  }

  75% {
    opacity: 0.88;
  }
}

.alev-inline,
.glyph-mark,
.glyph-cell,
.dictionary-glyph,
.simple-editor-preview,
.simple-editor-suggestion-glyph,
.simple-editor-preset-glyph,
.markdown-editor-preview .alev-inline {
  font-family: var(--font-alev), var(--font-ui) !important;
  font-feature-settings:
    "liga" 1,
    "clig" 1,
    "calt" 1;
  font-variant-ligatures: common-ligatures;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: none;
}

.alev-inline {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  unicode-bidi: isolate;
}

.markdown-editor {
  display: grid;
  gap: 14px;

  .markdown-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .markdown-editor-pane {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .markdown-editor-label {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
  }

  .markdown-editor-textarea,
  .markdown-editor-preview {
    width: 100%;
    min-height: 28rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(10, 16, 30, 0.86);
    color: var(--text);
  }

  .markdown-editor-textarea {
    padding: 16px 18px;
    resize: vertical;
    font-family: var(--font-mono);
    font-feature-settings: normal;
    font-variant-ligatures: none;
    line-height: 1.6;
  }

  .markdown-editor-preview {
    overflow: auto;
    padding: 18px 20px;
  }

  .markdown-editor-preview-content {
    display: grid;
    gap: 16px;
    min-height: 100%;

    > * {
      min-width: 0;
      margin: 0;
    }

    h1,
    h2,
    h3 {
      margin: 0;
      line-height: 1.12;
    }

    h1 {
      font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    }

    h2 {
      font-size: 1.32rem;
    }

    h3 {
      font-size: 1.08rem;
    }

    li,
    blockquote,
    th,
    td {
      color: var(--text);
    }

    ul,
    ol {
      margin: 0;
      padding-left: 1.4rem;
    }

    blockquote {
      padding: 0.9rem 1rem;
      border-left: 3px solid var(--accent);
      border-radius: 0 12px 12px 0;
      background: var(--bg-soft);
    }

    code {
      padding: 0.15rem 0.35rem;
      border-radius: 8px;
      background: var(--accent-soft);
      font-family: var(--font-mono);
      font-size: 0.92em;

      &.alev-inline,
      .alev-inline {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
      }
    }

    pre {
      overflow-x: auto;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
      margin: 0;

      code {
        padding: 0;
        background: transparent;
      }
    }

    table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
    }

    th,
    td {
      padding: 0.7rem 0.8rem;
      border: 1px solid var(--border);
      text-align: left;
      vertical-align: top;
    }

    th {
      color: var(--text-muted);
      background: var(--bg-soft);
      font-weight: 600;
    }
  }
}

html[data-theme="light"] {
  .markdown-editor {
    .markdown-editor-textarea,
    .markdown-editor-preview {
      background: rgba(255, 255, 255, 0.86);
    }
  }
}

.simple-editor {
  display: grid;
  gap: 12px;
  position: relative;

  .simple-editor-label,
  .simple-editor-caption {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
  }

  .simple-editor-input,
  .simple-editor-preview-frame {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(10, 16, 30, 0.86);
    color: var(--text);
  }

  .simple-editor-input {
    min-height: 144px;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-feature-settings: normal;
    font-variant-ligatures: none;
    font-synthesis: none;
    letter-spacing: 0;
    resize: vertical;
  }

  .simple-editor-controls {
    display: grid;
    gap: 14px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .simple-editor-control {
    min-width: 0;
  }

  .simple-editor-font-control,
  .simple-editor-preset-control {
    display: grid;
    gap: 8px;
  }

  .simple-editor-font-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
  }

  .simple-editor-slider {
    width: 100%;
    min-width: 0;
  }

  .simple-editor-font-value {
    min-width: 4.5rem;
    color: var(--text-muted);
    text-align: right;
    font-family: var(--font-mono);
  }

  .simple-editor-control--preset {
    grid-column: 1 / -1;
  }

  .simple-editor-preset-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    justify-items: start;
  }

  .simple-editor-preset {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: min(100%, 4rem);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 6px;
    cursor: pointer;
    transition:
      border-color 120ms ease,
      box-shadow 120ms ease,
      transform 120ms ease;

    &:hover,
    &:focus-visible {
      border-color: color-mix(in srgb, var(--accent) 54%, var(--border));
      transform: translateY(-1px);
    }

    &.is-active {
      border-color: color-mix(in srgb, var(--accent) 76%, var(--border));
      box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
    }
  }

  .simple-editor-preset-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
    border-radius: 10px;
    padding: 0.45rem;
    overflow: hidden;
    background: var(--simple-editor-preset-background, #fff);
    color: var(--simple-editor-preset-color, #000);
  }

  .simple-editor-preset-glyph {
    display: inline-block;
    color: var(--simple-editor-preset-color, #000);
    filter: var(--simple-editor-preset-shadow, none);
    font-family: var(--font-alev), var(--font-ui) !important;
    font-feature-settings:
      "liga" 1,
      "clig" 1,
      "calt" 1;
    font-variant-ligatures: common-ligatures;
    font-synthesis: none;
    letter-spacing: 0;
    text-transform: none;
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;
  }

  .simple-editor-preview-wrap {
    display: grid;
    gap: 8px;
  }

  .simple-editor-preview-frame {
    padding: 18px;
    overflow: auto;
    background: var(--simple-editor-preview-background, #fff);
    color: var(--simple-editor-preview-color, #000);
  }

  .simple-editor-preview {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: var(--simple-editor-font-size, 96px);
    line-height: 1.45;
    min-height: 1.45em;
    letter-spacing: var(--simple-editor-letter-spacing, 0em);
    filter: var(--simple-editor-drop-shadow, none);
  }
}

/* Keyword suggestions popover — shared between SimpleEditor and MarkdownEditor */
.simple-editor-popover {
  position: fixed;
  inset: auto auto auto 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  min-width: 13rem;
  max-width: min(18rem, calc(100% - 24px));

  &::backdrop {
    background: transparent;
  }
}

.simple-editor-suggestions {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.simple-editor-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  text-align: left;
  cursor: pointer;

  &:hover,
  &:focus-visible,
  &.is-active {
    background: var(--accent-soft);
  }
}

.simple-editor-suggestion-word {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-editor-suggestion-glyph {
  font-family: var(--font-alev), var(--font-ui) !important;
  font-feature-settings:
    "liga" 1,
    "clig" 1,
    "calt" 1;
  font-variant-ligatures: common-ligatures;
  font-synthesis: none;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--text-muted);
}

html[data-theme="light"] {
  .simple-editor {
    .simple-editor-input {
      background: rgba(255, 255, 255, 0.86);
    }
  }

  .simple-editor-popover {
    background: rgba(255, 255, 255, 0.96);
  }
}

.matrix-wrap {
  overflow-x: auto;

  .matrix {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 720px;

    th,
    td {
      width: 3.25rem;
      height: 3.25rem;
      border: 1px solid var(--border);
      text-align: center;
    }

    td {
      transition:
        background-color 120ms ease,
        box-shadow 120ms ease;

      &:has(.matrix-link:hover),
      &:has(.matrix-link:focus-visible) {
        background: var(--accent-soft);
      }
    }

    thead th,
    tbody th {
      color: var(--text-muted);
      font-weight: 600;
      background: var(--bg-soft);
    }

    .matrix-link {
      appearance: none;
      border: 0;
      background: transparent;
      padding: 0;
      margin: 0;
      color: inherit;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      transition:
        color 120ms ease,
        transform 120ms ease;

      &:hover,
      &:focus-visible {
        color: var(--text);
        transform: scale(1.02);
      }

      &.matrix-link--keyword {
        color: #ffd54f;

        &:hover,
        &:focus-visible {
          color: #fff2ba;
        }
      }
    }
  }
}

html[data-theme="light"] {
  .matrix-wrap .matrix .matrix-link.matrix-link--keyword {
    color: #9a6a00;

    &:hover,
    &:focus-visible {
      color: #6f4900;
    }
  }
}

.glyph-mark,
.dictionary-glyph {
  font-size: 1.9rem;
  line-height: 1;
}

.matrix-empty {
  color: var(--text-muted);
}

.glyph-popover {
  position: absolute;
  inset: auto auto auto 0;
  margin: 0;
  max-width: min(24rem, calc(100vw - 24px));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 14px;
  transform: translateX(-50%);

  &::backdrop {
    background: transparent;
  }
}

.glyph-popover-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.glyph-popover-keywords {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.glyph-popover-comment {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.glyph-popover-copy-status {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.glyph-list,
.dictionary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glyph-list {
  display: grid;
  gap: 5px;

  .glyph-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
  }

  .glyph-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 1.9rem;
    background: var(--accent-soft);
  }

  .glyph-detail {
    min-width: 0;
  }

  .glyph-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.92rem;
  }

  .glyph-comment {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

.binary-pill,
.hex-pill,
.keyword-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0 0.72rem;
  border-radius: 999px;
}

.binary-pill,
.hex-pill {
  background: var(--accent-soft);
  color: var(--text);
}

.keyword-pill {
  border: 1px solid rgba(255, 214, 92, 0.22);
  background: rgba(255, 214, 92, 0.12);
  color: #ffdf7a;
}

html[data-theme="light"] .keyword-pill {
  border-color: rgba(176, 128, 0, 0.2);
  background: rgba(227, 183, 39, 0.1);
  color: #8a6200;
}

.glyph-inline-copy,
.glyph-popover-copy {
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;

  &:hover,
  &:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  }
}

.glyph-copy-status {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dictionary-list {
  display: grid;
  gap: 10px;

  .dictionary-row {
    display: grid;
    grid-template-columns: minmax(0, 180px) 70px minmax(0, 220px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
  }

  .dictionary-word {
    font-weight: 600;
  }

  .dictionary-hex {
    color: var(--text-muted);
  }

  .dictionary-synonyms {
    color: var(--text);
  }
}

.muted {
  color: var(--text-muted);
}

@media (min-width: 1180px) {
  .simple-editor {
    .simple-editor-preset-list {
      grid-template-columns: repeat(12, 4rem);
      justify-content: start;
      justify-items: start;
    }
  }
}

@media (max-width: 980px) {
  .docs-shell {
    grid-template-columns: 1fr;

    .docs-sidebar {
      position: static;
      height: auto;
      padding-bottom: 0;
      border-right: 0;
      border-bottom: 1px solid var(--border);
    }

    .sidebar-nav {
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
  }
}

@media (max-width: 720px) {
  .docs-shell {
    .docs-header,
    .docs-content {
      padding-left: 18px;
      padding-right: 18px;
    }

    .docs-header {
      flex-direction: column;
    }
  }

  .glyph-list .glyph-row,
  .dictionary-list .dictionary-row {
    grid-template-columns: 1fr;
  }

  .glyph-list .glyph-cell {
    min-height: 88px;
  }

  .markdown-editor {
    .markdown-editor-grid {
      grid-template-columns: 1fr;
    }

    .markdown-editor-textarea,
    .markdown-editor-preview {
      min-height: 20rem;
    }
  }

  .simple-editor {
    .simple-editor-controls {
      grid-template-columns: 1fr;
    }

    .simple-editor-font-row {
      grid-template-columns: 1fr;
    }

    .simple-editor-font-value {
      min-width: 0;
      text-align: left;
    }

    .simple-editor-preset-list {
      grid-template-columns: repeat(6, minmax(0, 1fr));
      justify-items: center;
    }
  }

  .simple-editor-popover {
    max-width: calc(100% - 24px);
  }

  .alev-signal-demo-frame {
    min-height: 380px;
    padding: 18px;
  }

  .alev-signal-demo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 12px;
    min-height: 340px;
  }
}

@media (max-width: 520px) {
  .simple-editor {
    .simple-editor-preset-list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      justify-items: center;
    }
  }
}
