:root {
  --accent: #ffd84d;
  --accent2: #66e3ff;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius2: 22px;
  --bg0: #0c0f14;
  --bg1: #0b1220;
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --chipActiveText: rgba(0, 0, 0, 0.85);
  --chipText: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.08);
  --panelBgA: rgba(15, 19, 28, 0.88);
  --panelBgB: rgba(9, 10, 14, 0.88);
  --backdrop: rgba(0, 0, 0, 0.62);
  --theme-dot-x: 0px;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg0: #f6f4ee;
  --bg1: #f2f7ff;
  --stroke: rgba(12, 18, 32, 0.14);
  --text: rgba(12, 18, 32, 0.92);
  --muted: rgba(12, 18, 32, 0.7);
  --faint: rgba(12, 18, 32, 0.56);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  --chipActiveText: rgba(0, 0, 0, 0.84);
  --chipText: rgba(12, 18, 32, 0.7);
  --surface: rgba(255, 255, 255, 0.7);
  --surface2: rgba(255, 255, 255, 0.85);
  --panelBgA: rgba(255, 255, 255, 0.88);
  --panelBgB: rgba(247, 250, 255, 0.88);
  --backdrop: rgba(12, 18, 32, 0.35);
  --theme-dot-x: 28px;
}

* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 900px at 20% -10%, rgba(255, 216, 77, 0.18), transparent 55%),
    radial-gradient(900px 700px at 90% 10%, rgba(102, 227, 255, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  position: relative;
  overflow-x: hidden;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    "Helvetica Neue",
    "Apple Color Emoji",
    "Segoe UI Emoji";
}

button {
  font-size: 1rem;
  font-family: inherit;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 60%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 40px
    );
  opacity: 0.4;
  mix-blend-mode: screen;
  z-index: -1;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 15% 85%, rgba(255, 216, 77, 0.08), transparent 55%),
    radial-gradient(900px 700px at 85% 90%, rgba(102, 227, 255, 0.08), transparent 60%);
  filter: blur(0px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 18px 12px;
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.88),
    rgba(11, 18, 32, 0.55) 60%,
    transparent
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .top {
  background: linear-gradient(
    180deg,
    rgba(242, 247, 255, 0.92),
    rgba(242, 247, 255, 0.62) 60%,
    transparent
  );
  border-bottom: 1px solid rgba(12, 18, 32, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  width: 42px;
  height: 42px;
  margin-left: 1.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(0, 0, 0, 0.85);
  background: conic-gradient(from 210deg, var(--accent), var(--accent2), var(--accent));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.title {
  font-weight: 800;
  font-size: 16px;
}
.subtitle {
  color: var(--faint);
  font-size: 12px;
  margin-top: 2px;
}

.controls {
  max-width: 1280px;
  margin: 12px auto 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.controls__inputs {
  flex: 1 1 480px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
}

.search {
  flex: 1 1 auto;
  max-width: 520px;
}

.search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .search input::placeholder {
  color: rgba(12, 18, 32, 0.5);
}
.search input:focus {
  border-color: rgba(255, 216, 77, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 216, 77, 0.12);
}

.chips {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.theme {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 1.2rem;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease;
}

.theme::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 216, 77, 0.18), rgba(102, 227, 255, 0.12));
  opacity: 0.15;
  transition: opacity 280ms ease;
}

.theme > * {
  position: relative;
  z-index: 1;
}

.theme:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
html[data-theme="light"] .theme:hover {
  border-color: rgba(12, 18, 32, 0.22);
}
html[data-theme="light"] .theme::before {
  opacity: 0.35;
}

.theme__track {
  position: relative;
  display: block;
  width: 52px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.28);
  transition:
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
}

html[data-theme="light"] .theme__track {
  border-color: rgba(12, 18, 32, 0.12);
  background: rgba(12, 18, 32, 0.08);
  box-shadow: inset 0 4px 8px rgba(12, 18, 32, 0.12);
}

.theme__dot {
  position: absolute;
  inset: 1px auto auto 1px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #1f2941, #2f3b5f);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45);
  transform: translateX(var(--theme-dot-x));
  transition:
    transform 360ms cubic-bezier(0.45, 1.45, 0.4, 1),
    background 320ms ease,
    box-shadow 320ms ease,
    filter 320ms ease;
}

.theme__dot::after,
.theme__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.theme__dot::before {
  border: 1px solid rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: scale(0.4);
}

.theme__dot::after {
  inset: 5px;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(0.5px);
  opacity: 0.35;
  transition: opacity 320ms ease;
}

html[data-theme="light"] .theme__dot {
  background: linear-gradient(130deg, #ffe066, #ffc247 55%, #fff3b0);
  box-shadow:
    0 12px 22px rgba(255, 206, 108, 0.45),
    inset 0 -2px 3px rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .theme__dot::after {
  opacity: 0.75;
}

.theme.is-animating .theme__dot::before {
  animation: theme-ring 520ms ease forwards;
}

.theme__label {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition:
    color 260ms ease,
    opacity 260ms ease,
    transform 260ms ease;
}

.theme.is-animating .theme__label {
  transform: translateY(-1px);
}

.chip {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--chipText);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}
.chip.is-active {
  color: var(--chipActiveText);
  border-color: transparent;
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.95), rgba(102, 227, 255, 0.92));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 18px 60px;
}

.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 18px 90px;
  display: grid;
  gap: 36px;
}

.page-hero {
  padding-top: 12px;
}

.page-hero__kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 58px);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

.page-section {
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--surface2), rgba(255, 255, 255, 0.04));
  padding: 24px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.page-section__title {
  margin: 0 0 10px;
  font-size: 20px;
}

.page-section__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-section__body ul,
.page-section__body ol {
  padding-left: 1.2rem;
}

.page-section__body li + li {
  margin-top: 6px;
}

.page-head {
  padding-bottom: 32px;
}

.page-head__row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-head__back {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  padding: 10px 18px;
  background: var(--surface);
}

.page-nav {
  max-width: 960px;
  margin: 14px auto 0;
  padding: 0 18px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--chipText);
  border-radius: 0;
  border: 1px solid transparent;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
}

body[data-page] .page-nav a[data-page] {
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-page="about"] .page-nav a[data-page="about"],
body[data-page="privacy"] .page-nav a[data-page="privacy"],
body[data-page="terms"] .page-nav a[data-page="terms"],
body[data-page="contact"] .page-nav a[data-page="contact"] {
  color: var(--chipActiveText);
  border-color: transparent;
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.95), rgba(102, 227, 255, 0.92));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.sitefoot {
  margin: 40px auto 60px;
  padding: 32px 18px 0;
  border-top: 1px solid var(--stroke);
  max-width: 1280px;
  display: grid;
  gap: 18px;
}

.sitefoot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.sitefoot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sitefoot__links a {
  color: var(--chipText);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.sitefoot__links a:hover {
  border-color: currentColor;
}

.sitefoot__fine {
  color: var(--faint);
  font-size: 13px;
}

.sitefoot .logo,
.page-head .logo {
  margin-left: 0;
}

.hero {
  padding: 18px 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.02em;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.5;
}

.hero code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.adsense {
  margin: 18px 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.adsense__slot {
  border-radius: var(--radius2);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  padding: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
  width: 100%;
}

html[data-theme="light"] .adsense__slot {
  border-color: rgba(12, 18, 32, 0.15);
  box-shadow: inset 0 0 0 1px rgba(12, 18, 32, 0.04);
}

.adsense__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}

ins.adsbygoogle {
  display: block !important;
  min-height: 60px;
  width: 100% !important;
  border-radius: 12px;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 20px,
    transparent 20px,
    transparent 40px
  );
}

.meta {
  margin: 14px 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.count {
  color: var(--faint);
  font-size: 13px;
}

.link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 4;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, var(--surface2), rgba(255, 255, 255, 0.04));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

html[data-theme="light"] .card {
  border-color: rgba(12, 18, 32, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(700px 240px at 20% 0%, rgba(255, 216, 77, 0.16), transparent 60%),
    radial-gradient(540px 260px at 90% 10%, rgba(102, 227, 255, 0.12), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.card__media {
  position: relative;
  height: 128px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .card__media {
  border-color: rgba(12, 18, 32, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -80px;
  right: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(8px);
}

.card__emoji {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.card__mini {
  position: absolute;
  min-width: 56px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(13, 18, 30, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.card__mini--one {
  right: 16px;
  top: 20px;
}

.card__mini--two {
  left: 28px;
  bottom: 16px;
}

html[data-theme="light"] .card__mini,
html[data-theme="light"] .card__emoji {
  color: rgba(12, 18, 32, 0.92);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
}

.card__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .badge {
  background: rgba(12, 18, 32, 0.06);
  color: rgba(12, 18, 32, 0.78);
}

.spacer {
  flex: 1;
}

.open {
  font-weight: 800;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #ffd54a 0%, #ff9f1c 100%);
  color: #1f1300;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 159, 28, 0.28);
  letter-spacing: 0.01em;
}

html[data-theme="light"] .open {
  border-color: rgba(255, 159, 28, 0.2);
  color: #3b2200;
}

.open:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 159, 28, 0.34);
}

.open:focus-visible {
  outline: 3px solid rgba(255, 213, 74, 0.35);
  outline-offset: 2px;
}

.card__title {
  position: relative;
  margin: 12px 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card__desc {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  min-height: 2.7em;
}

.card__tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .tag {
  color: rgba(12, 18, 32, 0.7);
}

/* Panel */
.panel {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.panel__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  backdrop-filter: blur(6px);
  animation: fadeIn 160ms ease both;
}

.panel__sheet {
  position: absolute;
  right: 14px;
  top: 14px;
  bottom: 14px;
  width: min(720px, calc(100vw - 28px));
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--panelBgA), var(--panelBgB));
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: sheetIn 220ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.panel__head {
  padding: 16px 16px 12px;
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(700px 220px at 10% 0%, rgba(255, 216, 77, 0.1), transparent 55%),
    radial-gradient(700px 260px at 85% 0%, rgba(102, 227, 255, 0.08), transparent 60%);
}

html[data-theme="light"] .panel__head {
  border-bottom: 1px solid rgba(12, 18, 32, 0.1);
}

.panel__kicker {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}
.panel__title {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.iconbtn:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.panel__body {
  padding: 16px;
  overflow: auto;
}

.panel__foot {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] .panel__foot {
  border-top: 1px solid rgba(12, 18, 32, 0.1);
}

.hint kbd {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.crosslinks {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
}

.crosslinks__title {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.crosslinks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crosslinks__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, #ffd54a 0%, #ffb733 100%);
  color: #1f1600;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 183, 51, 0.22);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.crosslinks__item:hover,
.crosslinks__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 183, 51, 0.7);
  background: linear-gradient(135deg, #ffe27a 0%, #ffc14d 100%);
  box-shadow: 0 14px 28px rgba(255, 183, 51, 0.3);
}

/* Tool UI primitives */
.tool {
  display: grid;
  gap: 12px;
}

.field + .row,
.out + .row {
  margin-top: 10px;
}

.row + .row {
  margin-top: 8px;
}

.row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.row.two {
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  color: #000;
  font-size: 12px;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

/* Native dropdown list text (browser/OS controlled) */
.field select option,
.field select optgroup {
  color: #000;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
}

.btn {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.95), rgba(102, 227, 255, 0.92));
  color: rgba(0, 0, 0, 0.85);
}

.btn.danger {
  border-color: rgba(255, 107, 107, 0.35);
}
.btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.out {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
  padding: 12px;
}

html[data-theme="light"] .out {
  background: rgba(255, 255, 255, 0.6);
}

.out pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  color: var(--text);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes sheetIn {
  from {
    transform: translateX(16px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes theme-ring {
  0% {
    opacity: 0.6;
    transform: scale(0.4);
  }
  60% {
    opacity: 0.25;
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme,
  .theme__track,
  .theme__dot,
  .theme__label {
    transition: none !important;
  }
  .theme.is-animating .theme__dot::before {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .card {
    grid-column: span 6;
  }
  .controls__inputs {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .card {
    grid-column: span 12;
  }
  .row.two {
    grid-template-columns: 1fr;
  }
  .panel__sheet {
    right: 10px;
    left: 10px;
    width: auto;
  }
  .brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: min(100%, 420px);
    margin: 0 auto;
  }
  .brand .logo {
    margin-left: 0;
  }
  .controls {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(100%, 480px);
    margin: 0 auto;
    gap: 16px;
  }
  .controls__inputs {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .theme {
    width: min(100%, 340px);
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    margin-top: 4px;
    margin-bottom: 2px;
  }
  .chips {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .chip {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 1.02rem;
    padding: 14px 18px;
    border-radius: 18px;
  }
  .hero {
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-head__row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .page-head__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .page-head__back,
  .page-head__actions .theme {
    width: min(100%, 340px);
    text-align: center;
    margin-left: 0;
    margin-right: auto;
    margin-top: 0;
  }
  .page-head__actions .theme {
    margin-right: 0;
  }
  .page-nav {
    justify-content: center;
  }
  .page-hero {
    text-align: center;
  }
  .page-hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .page-section {
    padding: 20px;
  }
}
