:root {
  color-scheme: dark;
  --app-bg: #0b0d12;
  --surface-1: #11151c;
  --surface-2: #171c25;
  --surface-3: #202734;
  --border: rgba(255, 255, 255, 0.09);
  --text-main: #f4f6f9;
  --text-muted: #99a3b3;
  --accent: #efb229;
  --accent-soft: rgba(239, 178, 41, 0.13);
  --header-height: 4.25rem;
  --search-toolbar-height: 4.5rem;
  --sidebar-width: 18rem;
  --content-max-width: 90rem;
  --transition-speed: 240ms;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(239, 178, 41, 0.07), transparent 24rem),
    var(--app-bg);
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: fixed;
  z-index: 1040;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(1rem);
  transition: left var(--transition-speed) ease;
}

.menu-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0.8rem 0 0;
  padding: 0.68rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  place-content: center;
  gap: 0.29rem;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.menu-toggle:hover {
  border-color: var(--border);
  background: var(--surface-2);
}

.menu-toggle:focus-visible,
.sidebar-backdrop:focus-visible,
.sidebar-link:focus-visible,
.app-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle__line {
  display: block;
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
}

.app-brand {
  display: inline-flex;
  align-items: baseline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  cursor: pointer;
}

.app-brand__accent {
  color: var(--accent);
}

.app-sidebar {
  position: fixed;
  z-index: 1030;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  padding-top: var(--header-height);
  border-right: 1px solid var(--border);
  background: #10141b;
  box-shadow: 1.25rem 0 3rem rgba(0, 0, 0, 0.18);
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition:
    transform var(--transition-speed) ease,
    visibility 0s linear var(--transition-speed);
}

.app-shell[data-sidebar-state="open"] .app-sidebar,
html[data-initial-sidebar-state="open"] .app-sidebar {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--transition-speed) ease, visibility 0s linear 0s;
}

.sidebar-nav {
  display: grid;
  padding: 0.75rem;
  gap: 0.3rem;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.9rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  gap: 0.75rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: var(--accent-soft);
  color: var(--text-main);
}

.sidebar-link__marker {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.sidebar-link__meta {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.35rem;
}

.sidebar-link__modified-count {
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(239, 178, 41, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #f7cc6c;
  font-size: 0.64rem;
  font-weight: 750;
  white-space: nowrap;
}

.sidebar-link.is-active .sidebar-link__marker {
  background: var(--accent);
  box-shadow: 0 0 0.7rem rgba(239, 178, 41, 0.5);
}

.sidebar-link__count {
  min-width: 1.7rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 0.68rem;
  text-align: center;
}

.sidebar-link.is-active .sidebar-link__count {
  background: rgba(239, 178, 41, 0.17);
  color: #f7cc6c;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.25rem 1.35rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
}

.sidebar-backdrop {
  position: fixed;
  z-index: 1020;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  cursor: default;
  transition:
    opacity var(--transition-speed) ease,
    visibility 0s linear var(--transition-speed);
}

.app-content {
  min-height: 100vh;
  padding-top: var(--header-height);
  transition: margin-left var(--transition-speed) ease;
}

.content-container {
  width: min(100%, var(--content-max-width));
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 4rem);
}

.hero-panel {
  padding: clamp(1.4rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(239, 178, 41, 0.1), transparent 40%),
    var(--surface-1);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-panel h1 {
  max-width: 45rem;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-panel p {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
}

.hero-features {
  display: grid;
  margin: 1.5rem 0 0;
  padding: 0;
  color: #c0c7d2;
  font-size: 0.78rem;
  font-weight: 650;
  list-style: none;
  justify-items: start;
  gap: 0.7rem;
}

.hero-features li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  gap: 0.45rem;
}

.hero-features li::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.55rem rgba(239, 178, 41, 0.38);
  content: "";
  flex: 0 0 auto;
}

.sandbox-code-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-1);
  scroll-margin-top: calc(var(--header-height) + 1rem);
  gap: 2rem;
}

.sandbox-code-copy .eyebrow {
  margin-bottom: 0.35rem;
}

.sandbox-code-copy h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.sandbox-code-copy p {
  max-width: 15rem;
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.sandbox-code-controls {
  min-width: min(100%, 28rem);
}

.sandbox-code-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.code-action,
.dialog-button {
  min-height: 2.75rem;
  padding: 0.6rem 0.95rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface-2);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.code-action:hover,
.dialog-button:hover {
  border-color: rgba(239, 178, 41, 0.35);
  background: var(--surface-3);
}

.code-action--primary,
.dialog-button--primary {
  border-color: rgba(239, 178, 41, 0.45);
  background: var(--accent-soft);
  color: #f7cc6c;
}

.code-action--primary:hover,
.dialog-button--primary:hover {
  border-color: rgba(239, 178, 41, 0.65);
  background: rgba(239, 178, 41, 0.2);
  color: #ffe0a0;
}

.code-action--danger,
.dialog-button--danger {
  border-color: rgba(242, 139, 130, 0.32);
  background: rgba(242, 139, 130, 0.08);
  color: #f5a29b;
}

.code-action--danger:hover,
.dialog-button--danger:hover {
  border-color: rgba(242, 139, 130, 0.55);
  background: rgba(242, 139, 130, 0.15);
  color: #ffc0ba;
}

.code-action:disabled {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  opacity: 0.45;
  cursor: not-allowed;
}

.code-action:disabled:hover {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}

.code-action:focus-visible,
.dialog-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.code-status {
  position: fixed;
  z-index: 1100;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(calc(100vw - 2.5rem), 26rem);
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: rgba(23, 28, 37, 0.96);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.38);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s linear 0s;
}

.code-status:empty {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s linear 160ms;
}

.code-status.is-success {
  border-color: rgba(115, 211, 154, 0.3);
  background: rgba(20, 42, 32, 0.97);
  color: #73d39a;
}

.code-status.is-error {
  border-color: rgba(242, 139, 130, 0.3);
  background: rgba(48, 27, 28, 0.97);
  color: #f28b82;
}

.search-toolbar {
  position: sticky;
  z-index: 1010;
  top: var(--header-height);
  display: flex;
  align-items: center;
  margin: clamp(2rem, 5vw, 4rem) -0.45rem 0;
  padding: 0.75rem 0.45rem;
  background: rgba(11, 13, 18, 0.94);
  backdrop-filter: blur(1rem);
  gap: 1rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -0.4rem;
  bottom: -0.25rem;
  width: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text-muted);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 3rem;
  padding: 0 2.9rem 0 2.8rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  outline: 0;
  background: var(--surface-1);
  color: var(--text-main);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.search-input:focus {
  border-color: rgba(239, 178, 41, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(239, 178, 41, 0.1);
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 0.55rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}

.search-clear:hover {
  background: var(--surface-3);
  color: var(--text-main);
}

.search-clear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.search-empty {
  margin-top: 1rem;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px dashed var(--border);
  border-radius: 1rem;
  background: var(--surface-1);
  text-align: center;
}

.search-empty h2 {
  margin: 0;
  font-size: 1.2rem;
}

.search-empty p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.sandbox-tabs {
  display: grid;
  margin-top: 1rem;
  gap: clamp(3.5rem, 8vw, 7rem);
}

.sandbox-tab {
  scroll-margin-top: calc(
    var(--header-height) + var(--search-toolbar-height) + 1rem
  );
}

.tab-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.tab-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.tab-heading-row h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.tab-count {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.options-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.sandbox-option {
  position: relative;
  min-width: 0;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-1);
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.08);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.sandbox-option.is-modified {
  border-color: rgba(239, 178, 41, 0.32);
}

.sandbox-option.is-disabled {
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(17, 21, 28, 0.68);
}

.sandbox-option.is-disabled .option-copy {
  opacity: 0.62;
}

.sandbox-option.is-disabled .option-choices {
  opacity: 0.45;
}

.section-separator {
  grid-column: 1 / -1;
  height: 1px;
  margin: 1.35rem 0 0.35rem;
  background: var(--border);
}

.option-copy {
  width: min(100%, 40ch);
}

.option-copy h3 {
  margin: 0;
  padding-right: 4.5rem;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.option-reset {
  position: absolute;
  z-index: 1;
  top: 1rem;
  right: 1rem;
  min-height: 1.9rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(239, 178, 41, 0.3);
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: #f7cc6c;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.option-reset:hover {
  border-color: rgba(239, 178, 41, 0.55);
  background: rgba(239, 178, 41, 0.2);
  color: #ffe0a0;
}

.option-reset:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.option-reset:disabled {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  opacity: 0.55;
  cursor: not-allowed;
}

.option-copy p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.option-context {
  display: block;
  margin-top: 0.4rem;
  color: #c0c7d2;
}

.option-choices {
  min-width: 0;
  margin: 1.15rem 0 0;
  padding: 0;
  border: 0;
}

.choice-scroller {
  display: flex;
  margin: 0 -0.15rem -0.35rem;
  padding: 0.15rem 0.15rem 0.55rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--surface-3) transparent;
  scrollbar-width: thin;
  gap: 0.45rem;
}

.choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.choice-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.62rem;
  background: var(--surface-2);
  color: #c0c7d2;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.choice-label:hover {
  border-color: rgba(239, 178, 41, 0.35);
  color: var(--text-main);
  transform: translateY(-1px);
}

.choice-input:checked + .choice-label {
  border-color: rgba(239, 178, 41, 0.6);
  background: var(--accent-soft);
  color: #f7cc6c;
  box-shadow: inset 0 0 0 1px rgba(239, 178, 41, 0.12);
}

.choice-input:focus-visible + .choice-label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice-input:disabled + .choice-label,
.choice-input:disabled + .choice-label:hover {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  transform: none;
  cursor: not-allowed;
}

.choice-input:disabled:checked + .choice-label {
  border-color: rgba(239, 178, 41, 0.3);
  background: rgba(239, 178, 41, 0.07);
  color: rgba(247, 204, 108, 0.72);
}

.code-dialog {
  width: min(92vw, 40rem);
  max-height: min(88vh, 42rem);
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-1);
  color: var(--text-main);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.55);
}

.code-dialog--compact {
  width: min(92vw, 32rem);
}

.code-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(0.2rem);
}

.code-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.code-dialog__header .eyebrow {
  margin-bottom: 0.3rem;
}

.code-dialog h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.code-dialog > p {
  margin: 0.85rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.dialog-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}

.dialog-close:hover {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-main);
}

.dialog-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.code-textarea {
  display: block;
  width: 100%;
  min-height: 8rem;
  padding: 0.85rem;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  outline: 0;
  background: var(--app-bg);
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.code-textarea:focus {
  border-color: rgba(239, 178, 41, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(239, 178, 41, 0.1);
}

.code-dialog__error {
  margin: 0.75rem 0 0;
  color: #f28b82;
  font-size: 0.78rem;
  line-height: 1.45;
}

.code-dialog__actions {
  display: flex;
  margin-top: 1.25rem;
  justify-content: flex-end;
  gap: 0.6rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  gap: 2rem;
}

.site-footer__version {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(115, 211, 154, 0.22);
  border-radius: 999px;
  background: rgba(115, 211, 154, 0.06);
  color: #a8d8ba;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  gap: 0.45rem;
}

.site-footer__status {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #73d39a;
  box-shadow: 0 0 0.55rem rgba(115, 211, 154, 0.42);
  flex: 0 0 auto;
}

.site-footer__copyright {
  margin: 0;
  color: #c0c7d2;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
}

.site-footer__disclaimer {
  max-width: 56rem;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.65;
}

@media (max-width: 1199.98px) {
  .sandbox-code-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  
  .sandbox-code-controls {
    min-width: 0;
  }
  
  .sandbox-code-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  
}

@media (max-width: 767.98px) {
  body.has-mobile-sidebar {
    overflow: hidden;
  }
  
  .app-shell[data-sidebar-state="open"] .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-speed) ease, visibility 0s linear 0s;
  }
  
  .app-sidebar {
    width: min(88vw, 21rem);
  }
  
  .app-header {
    padding: 0 0.8rem;
  }
  
  .search-toolbar {
    gap: 0.65rem;
  }
  
  .search-status {
    font-size: 0.7rem;
  }
  
  .sandbox-code-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .code-status {
    right: auto;
    bottom: 1rem;
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 2rem);
    text-align: left;
    transform: translateX(-50%);
  }
  
  .code-status:empty {
    transform: translate(-50%, 0.5rem);
  }
  
  .code-dialog__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .app-shell[data-sidebar-state="open"] .app-content,
  html[data-initial-sidebar-state="open"] .app-content {
    margin-left: var(--sidebar-width);
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-panel {
    min-height: 34rem;
  }
}

@media (min-width: 1200px) {
  .sandbox-code-copy p {
    max-width: none;
    white-space: nowrap;
  }
  
  .sandbox-code-controls {
    min-width: 21rem;
  }
  
  .sandbox-code-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }
  
  .site-footer__version {
    justify-self: start;
  }
  
  .site-footer__copyright {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
  }
  
  .site-footer__disclaimer {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
  }
  
  .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
