:root {
  color-scheme: dark;
  --bg: #07070d;
  --bg-soft: #10101a;
  --panel: rgba(13, 13, 22, 0.78);
  --panel-strong: rgba(16, 16, 27, 0.95);
  --line: rgba(0, 245, 255, 0.18);
  --text: #f8fbff;
  --muted: #9ca0ba;
  --quiet: #656a83;
  --cyan: #00f5ff;
  --magenta: #ff2bd6;
  --yellow: #ffe600;
  --mint: var(--cyan);
  --amber: var(--yellow);
  --berry: var(--magenta);
  --violet: #8a5cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  --radius: 4px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 245, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 4%, rgba(255, 43, 214, 0.15), transparent 28rem),
    radial-gradient(circle at 50% 90%, rgba(255, 230, 0, 0.08), transparent 34rem),
    linear-gradient(135deg, #05050b, #10101a 46%, #07070d);
  background-size: 130% 130%;
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

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

body::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

body::after {
  display: none;
}

.ambient-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.3;
  animation: ambientFloat var(--duration, 24s) ease-in-out var(--delay, 0s) infinite alternate;
}

.ambient-particles span:nth-child(3n) { background: var(--magenta); }
.ambient-particles span:nth-child(3n + 1) { background: var(--yellow); }

@keyframes ambientFloat {
  from { transform: translate(-22px, 20px); opacity: 0.12; }
  to { transform: translate(34px, -45px); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-particles span { animation: none; }
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
  padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.7), rgba(16, 16, 20, 0));
  backdrop-filter: blur(8px);
}

.mode-switch {
  position: relative;
  width: 2.75rem;
  height: 1.45rem;
  min-height: 1.45rem;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 999px;
  background: rgba(60, 255, 147, 0.16);
  box-shadow: inset 0 0 14px rgba(60, 255, 147, 0.18);
  padding: 0;
}

.mode-switch span {
  position: absolute;
  top: 0.18rem;
  left: 0.2rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #3cff93;
  box-shadow: 0 0 14px rgba(60, 255, 147, 0.72);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mode-switch.nsfw {
  border-color: rgba(255, 54, 54, 0.5);
  background: rgba(255, 54, 54, 0.16);
  box-shadow: inset 0 0 14px rgba(255, 54, 54, 0.18);
}

.mode-switch.nsfw span {
  background: #ff3636;
  box-shadow: 0 0 14px rgba(255, 54, 54, 0.72);
  transform: translateX(1.28rem);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 230, 0, 0.94), rgba(255, 43, 214, 0.72), rgba(0, 245, 255, 0.82));
  color: #111116;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(0, 245, 255, 0.2);
}

.brand-title {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.1;
}

.brand-subtitle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.quickbar {
  display: flex;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
  overflow-x: auto;
}

.icon-button,
.ghost-button,
.primary-button,
.danger-button,
.mini-button {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.icon-button {
  position: relative;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  min-height: 2.45rem;
  place-items: center;
  text-decoration: none;
}

.icon-button:hover,
.ghost-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 245, 255, 0.5);
  background: rgba(0, 245, 255, 0.08);
}

.primary-button {
  border-color: rgba(255, 230, 0, 0.65);
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.95), rgba(0, 245, 255, 0.82));
  color: #111116;
  font-weight: 800;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0, 245, 255, 0.22);
}

.danger-button {
  border-color: rgba(239, 71, 111, 0.42);
  background: rgba(239, 71, 111, 0.08);
}

.danger-button:hover {
  border-color: rgba(239, 71, 111, 0.72);
  background: rgba(239, 71, 111, 0.15);
}

.ghost-button,
.primary-button,
.danger-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.85rem;
}

.ghost-button.active {
  border-color: rgba(255, 230, 0, 0.6);
  background: rgba(255, 230, 0, 0.12);
}

.mini-button {
  min-height: 2rem;
  padding: 0 0.55rem;
  font-size: 0.86rem;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
}

.login-card {
  width: min(340px, 100%);
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(27, 26, 31, 0.88);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1;
}

.login-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span,
.field label,
.setting-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea,
.search-input {
  min-height: 2.65rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 0.85rem;
  outline: none;
}

.field textarea {
  min-height: 4.8rem;
  padding: 0.75rem 0.85rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: rgba(0, 245, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.12);
}

.login-error {
  min-height: 1.35rem;
  margin-top: 0.75rem;
  color: #ff9aae;
  font-size: 0.9rem;
}

.panic-trigger {
  position: fixed;
  left: 0.65rem;
  bottom: 0.65rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0.02;
}

.panic-trigger:hover,
.panic-trigger:focus-visible {
  opacity: 0.45;
  outline: 1px solid rgba(255, 43, 214, 0.55);
  background: rgba(255, 43, 214, 0.2);
}

.panic-panel {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  display: grid;
  width: min(420px, calc(100vw - 2rem));
  gap: 0.45rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 43, 214, 0.42);
  border-radius: var(--radius);
  background: rgba(9, 9, 16, 0.94);
  box-shadow: 0 0 42px rgba(255, 43, 214, 0.16), var(--shadow);
  padding: 0.9rem;
  font-size: 0.9rem;
}

.panic-panel strong {
  color: var(--yellow);
}

.panic-panel span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.workspace {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 1rem;
  min-height: calc(100vh - 58px);
  padding: 2rem;
  overflow: hidden;
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(560px, auto);
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  width: min(1440px, 100%);
}

.home-stage.with-folders {
  grid-template-columns: 790px 340px;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  width: min(1158px, 100%);
}

.home-stage.solo-stage {
  width: min(900px, 100%);
  justify-items: center;
}

.float-column {
  display: grid;
  gap: 0.75rem;
  z-index: 2;
}

.float-card,
.shortcut-card,
.settings-card,
.folder-card,
.line-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.19);
}

.float-card,
.shortcut-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.8rem;
  padding: 0.8rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.float-card:hover,
.shortcut-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 230, 0, 0.62);
  background: rgba(255, 230, 0, 0.08);
}

.icon-badge {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  min-width: 2.55rem;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--amber);
  font-weight: 900;
  overflow: hidden;
}

.icon-badge img,
.quick-icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.quick-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.icon-button .icon-badge {
  width: 1.8rem;
  height: 1.8rem;
  min-width: 1.8rem;
  background: transparent;
}

.item-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 760;
}

.item-main {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.orbit-wrap {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 680px;
  place-items: center;
  z-index: 1;
  --ring-radius: min(29vw, 310px);
}

.hero-folders {
  display: block;
  column-width: 320px;
  column-gap: 0.8rem;
  width: 340px;
  max-height: min(72vh, 680px);
  overflow: hidden;
}

.orbit {
  position: relative;
  width: min(44vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 245, 255, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.18), transparent 35%),
    conic-gradient(from 110deg, rgba(0, 245, 255, 0.02), rgba(255, 230, 0, 0.18), rgba(255, 43, 214, 0.16), rgba(0, 245, 255, 0.02));
  box-shadow:
    inset 0 0 38px rgba(0, 245, 255, 0.12),
    0 0 46px rgba(0, 245, 255, 0.18),
    0 0 92px rgba(255, 43, 214, 0.12);
  transform-style: preserve-3d;
  perspective: 800px;
  transform: rotateX(var(--motion-x, 0deg)) rotateY(var(--motion-y, 0deg)) rotateZ(var(--motion-z, 0deg)) scale(var(--motion-scale, 1));
  will-change: transform, filter;
  animation: orbitPulse 4.4s ease-in-out infinite alternate;
}

.float-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-ring .float-card {
  --angle: calc((360deg / var(--count)) * var(--i));
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  min-height: auto;
  grid-template-columns: 2rem minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  gap: 0.42rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: left;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--ring-radius)) rotate(calc(var(--angle) * -1));
}

.float-ring .float-card:hover {
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--ring-radius)) rotate(calc(var(--angle) * -1)) translateY(-2px) scale(1.04);
}

.float-ring .float-card .icon-badge {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border: 1px solid rgba(0, 245, 255, 0.24);
  background: rgba(7, 7, 13, 0.52);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.14);
}

.float-ring .float-card .item-main {
  width: 100%;
}

.float-ring .float-card .item-title {
  max-width: 108px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 640;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.28);
}

.float-ring .float-card .line-list {
  display: none;
}

@media (min-width: 1650px) {
  .home-stage.with-folders {
    grid-template-columns: 790px 680px;
    width: min(1498px, 100%);
  }

  .hero-folders {
    width: 680px;
  }
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(0, 245, 255, 0.36);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.orbit::after {
  inset: 24%;
  border-style: solid;
  border-color: rgba(255, 230, 0, 0.34);
  animation-direction: reverse;
  animation-duration: 12s;
}

.energy-field {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  pointer-events: none;
  opacity: calc(0.22 + var(--glow, 1) * 0.18);
  filter: blur(10px);
  mix-blend-mode: screen;
}

.field-a {
  background: conic-gradient(from var(--scan-angle, 0deg), transparent, rgba(0, 245, 255, 0.34), transparent 34%, rgba(255, 43, 214, 0.26), transparent 72%);
  animation: fieldBreath 6.4s ease-in-out infinite alternate;
}

.field-b {
  inset: 8%;
  background: conic-gradient(from calc(var(--scan-angle, 0deg) * -1), rgba(255, 230, 0, 0.28), transparent 18%, rgba(0, 245, 255, 0.2), transparent 64%);
  animation: fieldBreath 8.6s ease-in-out infinite alternate-reverse;
}

.particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  transform-origin: 0 0;
}

.particle-a {
  animation: particleOrbitA 4.8s linear infinite;
}

.particle-b {
  background: var(--magenta);
  box-shadow: 0 0 18px var(--magenta);
  animation: particleOrbitB 6.7s linear infinite;
}

.particle-c {
  background: var(--yellow);
  box-shadow: 0 0 18px var(--yellow);
  animation: particleOrbitC 8.1s linear infinite;
}

.axis,
.scan-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112%;
  height: 1px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.72), rgba(255, 230, 0, 0.42), transparent);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
}

.axis-a {
  animation: axisSpinA 7s linear infinite;
}

.axis-b {
  background: linear-gradient(90deg, transparent, rgba(255, 43, 214, 0.7), transparent);
  animation: axisSpinB 9s linear infinite;
}

.axis-c {
  background: linear-gradient(90deg, transparent, rgba(255, 230, 0, 0.68), transparent);
  animation: axisSpinC 11s linear infinite;
}

.scan-line {
  width: 88%;
  height: 2px;
  opacity: 0.55;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 0, 0.8), transparent);
  animation: scanOrbit 5.8s ease-in-out infinite;
}

.scan-b {
  background: linear-gradient(90deg, transparent, rgba(255, 43, 214, 0.8), transparent);
  animation-delay: -2.4s;
}

.holo-form {
  position: absolute;
  inset: 25%;
  transform-style: preserve-3d;
  animation: formTumble 9s linear infinite;
}

.holo-ring,
.holo-core {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 245, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.24);
}

.ring-a {
  transform: rotateX(72deg);
}

.ring-b {
  border-color: rgba(255, 43, 214, 0.72);
  transform: rotateY(72deg);
}

.ring-c {
  border-color: rgba(255, 230, 0, 0.72);
  transform: rotateZ(45deg) rotateX(58deg);
}

.holo-core {
  inset: 31%;
  border: 0;
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.85), rgba(255, 43, 214, 0.5)),
    radial-gradient(circle, rgba(255, 230, 0, 0.85), transparent 58%);
  border-radius: 12%;
  transform: rotateX(58deg) rotateZ(45deg);
  animation: coreMorph 3.8s ease-in-out infinite alternate;
}

.scroll-cue {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.folders {
  padding: 1rem clamp(1rem, 4vw, 3rem) 4rem;
}

.favorites-panel {
  display: grid;
  width: min(1120px, calc(100% - 2rem));
  min-height: 5.4rem;
  margin: 1.25rem auto 0.5rem;
  place-items: center;
  border: 1px dashed rgba(0, 245, 255, 0.26);
  border-radius: 4px;
  background: rgba(0, 245, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.favorites-panel.drop-ready {
  border-color: rgba(255, 230, 0, 0.74);
  background: rgba(255, 230, 0, 0.055);
  box-shadow: 0 0 28px rgba(255, 230, 0, 0.1);
}

.favorites-list {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem;
}

.favorites-list .float-card {
  width: min(220px, 100%);
  min-height: 3.25rem;
  padding: 0.52rem 0.62rem;
}

.favorites-list .float-card .icon-badge {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
}

.favorites-list .float-card .line-list {
  display: none;
}

.favorites-empty {
  color: var(--quiet);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.folder-grid {
  width: min(1400px, 100%);
  margin: 0 auto;
  column-width: 320px;
  column-gap: 0.9rem;
}

.folder-group {
  min-width: 0;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 0.9rem;
  padding-top: 0.3rem;
}

.folder-group-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.3rem 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--folder-color) 45%, transparent);
  margin-bottom: 0.65rem;
}

.folder-group-header .folder-title-button,
.folder-group-header .folder-title-input {
  flex: 1;
  font-size: 0.95rem;
}

.folder-group-children {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 2.5rem;
}

.folder-group-children .folder-card {
  margin: 0;
  max-width: none;
}

.folder-grid > .folder-card {
  max-width: none;
  margin: 0 0 0.9rem;
}

.folder-card {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
  break-inside: avoid;
  margin: 0 0 0.9rem;
  padding: 0.58rem 0.62rem;
  vertical-align: top;
  border-color: color-mix(in srgb, var(--folder-color) 36%, rgba(255, 255, 255, 0.08));
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--folder-color) 82%, transparent), 0 14px 42px rgba(0, 0, 0, 0.19);
}

.folder-card.drop-ready {
  border-color: var(--folder-color);
  box-shadow: inset 2px 0 0 var(--folder-color), 0 0 0 1px color-mix(in srgb, var(--folder-color) 60%, transparent), 0 0 28px color-mix(in srgb, var(--folder-color) 22%, transparent);
}

.folder-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.32rem;
  padding-right: 3.2rem;
}

.folder-title h3 {
  margin: 0;
  color: color-mix(in srgb, var(--folder-color) 72%, var(--text));
  font-size: 0.9rem;
  font-weight: 650;
}

.folder-title-button,
.folder-title-input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: color-mix(in srgb, var(--folder-color) 72%, var(--text));
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  padding: 0;
  text-align: left;
}

.folder-color-button {
  width: 0.82rem;
  height: 0.82rem;
  min-width: 0.82rem;
  border: 1px solid color-mix(in srgb, var(--folder-color) 84%, #fff);
  border-radius: 50%;
  background: var(--folder-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--folder-color) 48%, transparent);
  cursor: pointer;
  padding: 0;
}

.folder-title-button {
  cursor: text;
}

.folder-title-input {
  border-bottom-color: color-mix(in srgb, var(--folder-color) 72%, transparent);
  outline: none;
}

.shortcut-list {
  display: grid;
  gap: 0.12rem;
}

.shortcut-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.16rem;
}

.folder-card .shortcut-card.has-subtitle {
  grid-template-columns: 1rem minmax(0, 1fr) minmax(0, auto);
}

.item-subtitle {
  align-self: center;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9296a3;
  font-size: 0.72rem;
  padding-left: 0.3rem;
}

.folder-spacer {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.7rem;
  cursor: grab;
  margin: 0.15rem 0;
}

.spacer-stroke {
  flex: 0 0 0.85rem;
  height: 1px;
  background: color-mix(in srgb, var(--folder-color) 28%, #424653);
}

.spacer-tail { flex: 1; }
.spacer-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.72rem;
}

.line-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem;
  line-height: 1.15;
}

.folder-card .shortcut-card {
  min-height: 1.55rem;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.34rem;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  padding: 0.12rem 0.12rem;
  font-size: 0.82rem;
}

.shortcut-actions {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  opacity: 0.5;
  transition: opacity 160ms ease;
}

.shortcut-row:hover .shortcut-actions,
.shortcut-actions:focus-within {
  opacity: 1;
}

.shortcut-edit,
.shortcut-delete {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
}

.shortcut-edit {
  color: var(--cyan);
}

.shortcut-edit:hover {
  border-color: rgba(0, 245, 255, 0.7);
  background: rgba(0, 245, 255, 0.1);
}

.shortcut-delete:hover {
  border-color: rgba(255, 77, 109, 0.72);
  background: rgba(255, 77, 109, 0.1);
  color: #ff9aae;
}

.drag-drop-zones {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: flex;
  gap: 0.55rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.7rem) scale(0.92);
  transition: opacity 150ms ease, transform 150ms ease;
}

.dragging-object .drag-drop-zones {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.drag-drop-zone {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 77, 109, 0.7);
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.88);
  box-shadow: 0 0 22px rgba(255, 77, 109, 0.34);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 520;
}

.drag-drop-zone.drop-ready {
  transform: scale(1.14);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.2), 0 0 30px rgba(255, 77, 109, 0.62);
}

.edit-zone {
  display: none;
  border-color: rgba(0, 245, 255, 0.78);
  background: rgba(0, 164, 189, 0.92);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.3);
  font-size: 1.28rem;
}

.dragging-item .edit-zone {
  display: grid;
}

.item-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 2, 7, 0.72);
  backdrop-filter: blur(8px);
}

.item-edit-dialog {
  display: grid;
  width: min(480px, 100%);
  max-height: min(82vh, 720px);
  gap: 0.65rem;
  overflow: auto;
  border: 1px solid rgba(0, 245, 255, 0.34);
  border-radius: 4px;
  background: rgba(10, 10, 18, 0.98);
  box-shadow: 0 0 46px rgba(0, 245, 255, 0.14), 0 22px 80px rgba(0, 0, 0, 0.54);
  padding: 0.9rem;
}

.item-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.item-edit-head h2 {
  margin: 0;
  font-size: 1rem;
}

.home-line-editor {
  display: grid;
  gap: 0.35rem;
}

.home-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1.15rem;
  gap: 0.3rem;
}

.home-line-row input {
  min-width: 0;
  min-height: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 0.42rem;
  font-size: 0.8rem;
}

.folder-card .shortcut-card:hover {
  transform: none;
  background: rgba(0, 245, 255, 0.055);
}

.folder-card .shortcut-card .icon-badge {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  border-radius: 2px;
  background: transparent;
  font-size: 0.55rem;
}

.folder-card .shortcut-card .icon-badge img,
.folder-card .shortcut-card .quick-icon {
  width: 1rem;
  height: 1rem;
}

.folder-card .shortcut-card .item-title {
  font-weight: 480;
  font-size: 0.82rem;
}

.folder-card .shortcut-card .item-main {
  gap: 0.05rem;
}

.folder-card .line-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 0.05rem 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  color: color-mix(in srgb, var(--muted) 84%, var(--text));
  font-size: 0.72rem;
  line-height: 1.25;
}

.folder-card .line-chip:nth-child(2n) {
  background: rgba(0, 245, 255, 0.055);
}

.folder-tools {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.folder-move-handle,
.folder-quick-add {
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  min-height: 1.2rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--folder-color) 42%, rgba(255, 255, 255, 0.1));
  border-radius: 3px;
  background: color-mix(in srgb, var(--folder-color) 9%, transparent);
  color: color-mix(in srgb, var(--folder-color) 86%, var(--text));
  font-size: 0.86rem;
  line-height: 1;
  padding: 0;
}

.folder-move-handle {
  cursor: grab;
  font-size: 0.72rem;
}

.home-nsfw-check {
  width: 1.65rem;
  height: 1.2rem;
}

.home-nsfw-check span {
  width: 1.65rem;
  height: 0.95rem;
}

.home-nsfw-check span::after {
  top: 0.1rem;
  width: 0.63rem;
  height: 0.63rem;
}

.home-nsfw-check input:checked + span::after {
  transform: translateX(0.68rem);
}

.folder-color-menu {
  display: grid;
  grid-template-columns: repeat(8, 1rem);
  gap: 0.24rem;
  margin: 0 0 0.42rem;
  padding: 0.36rem;
  border: 1px solid color-mix(in srgb, var(--folder-color) 28%, rgba(255, 255, 255, 0.08));
  border-radius: 3px;
  background: rgba(7, 7, 13, 0.72);
}

.folder-color-swatch {
  width: 1rem;
  height: 1rem;
  min-height: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--swatch);
  padding: 0;
}

.folder-color-swatch.active {
  box-shadow: 0 0 0 2px rgba(248, 251, 255, 0.74), 0 0 14px var(--swatch);
}

.folder-create-button {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px dashed rgba(255, 176, 0, 0.5);
  border-radius: 3px;
  background: rgba(255, 176, 0, 0.06);
  color: var(--yellow);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.folder-list-controls {
  display: inline-flex;
  width: 100%;
  max-width: 400px;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  break-inside: avoid;
  margin: 0 0 0.9rem;
  padding: 0;
  vertical-align: top;
}

.folder-create-choice,
.recycle-toggle {
  display: grid;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
  padding: 0;
}

.folder-choice-folder {
  color: var(--yellow);
  border-color: rgba(255, 176, 0, 0.38);
}

.folder-choice-link {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.34);
  font-size: 0.58rem;
  font-weight: 760;
}

.recycle-toggle {
  border-radius: 50%;
  color: #ff9aae;
  border-color: rgba(255, 77, 109, 0.45);
  font-size: 1.05rem;
}

.recycle-toggle.active {
  background: rgba(255, 77, 109, 0.13);
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.2);
}

.folder-create-button:hover {
  border-style: solid;
  background: rgba(255, 176, 0, 0.13);
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.16);
}

.quick-add-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.4rem;
  gap: 0.22rem;
  margin: 0.35rem 0 0.28rem;
}

.quick-add-menu input,
.quick-add-menu select {
  grid-column: 1;
  min-width: 0;
  min-height: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 0.38rem;
  font-size: 0.76rem;
  outline: none;
}

.quick-check {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  min-height: 1.55rem;
  place-items: center;
  border: 1px solid rgba(60, 255, 147, 0.42);
  border-radius: 3px;
  background: rgba(60, 255, 147, 0.12);
  color: #3cff93;
  padding: 0;
}

.line-chip {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-chip.line-link {
  cursor: pointer;
}

.line-chip.line-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.58), 0 0 16px rgba(255, 43, 214, 0.34);
}

.empty-state {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.settings-layout {
  display: grid;
  gap: 0.85rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem;
}

.settings-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 0.6rem;
}

.settings-panel {
  display: grid;
  gap: 1rem;
}

.settings-card {
  padding: 0.75rem;
}

.settings-card h2,
.settings-card h3 {
  margin: 0 0 0.7rem;
}

.settings-card p {
  color: var(--muted);
  line-height: 1.55;
}

.password-form {
  display: grid;
  max-width: 520px;
  gap: 0.75rem;
}

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

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.settings-head h2 {
  margin: 0;
  font-size: 1rem;
}

.add-row {
  display: grid;
  grid-template-columns: 150px 68px minmax(180px, 1fr) 120px 140px 2.5rem;
  gap: 0.45rem;
  align-items: end;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.folder-add-row {
  grid-template-columns: minmax(180px, 1fr) 2.5rem;
}

.tree-list,
.tree-node {
  display: grid;
  gap: 0.4rem;
}

.tree-node {
  min-width: 0;
}

.tree-row {
  display: grid;
  grid-template-columns: 1.45rem 2rem 2rem minmax(130px, 1fr) minmax(180px, 1.5fr) 58px 112px 132px 1.45rem;
  gap: 0.35rem;
  align-items: center;
  min-height: 2.3rem;
}

.tree-row .icon-badge {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
}

.tree-row .icon-badge img {
  width: 1.25rem;
  height: 1.25rem;
}

.folder-row {
  grid-template-columns: 1.45rem minmax(160px, 1fr) 2.1rem 1.45rem;
  padding-top: 0.25rem;
}

.nsfw-check {
  display: grid;
  width: 2.1rem;
  height: 1.35rem;
  align-items: center;
  cursor: pointer;
}

.nsfw-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nsfw-check span {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 1.1rem;
  border: 1px solid rgba(255, 54, 54, 0.35);
  border-radius: 999px;
  background: rgba(255, 54, 54, 0.08);
}

.nsfw-check span::after {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: 0.12rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nsfw-check input:checked + span::after {
  background: #ff3636;
  box-shadow: 0 0 10px rgba(255, 54, 54, 0.65);
  transform: translateX(1rem);
}

.line-row {
  grid-template-columns: 1.45rem 2rem minmax(160px, 1fr) minmax(140px, 0.8fr) 1.45rem;
}

.depth-1,
.depth-2 {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.tree-meta,
.tree-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding-left: 4.75rem;
}

.line-meta {
  padding-left: 2.35rem;
}

.tree-lines {
  display: grid;
}

.move-handle {
  display: grid;
  width: 1.45rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid rgba(255, 230, 0, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 230, 0, 0.045);
  color: var(--yellow);
  cursor: grab;
  font-size: 0.84rem;
  line-height: 1;
  padding: 0;
  user-select: none;
}

.move-handle:active {
  cursor: grabbing;
}

.move-handle.passive {
  border-color: transparent;
  background: transparent;
  color: var(--quiet);
  cursor: default;
}

.tree-node.dragging {
  opacity: 0.42;
}

[data-drop-kind].drop-ready {
  outline: 1px solid rgba(255, 230, 0, 0.62);
  outline-offset: 3px;
  background: linear-gradient(90deg, rgba(255, 230, 0, 0.055), rgba(0, 245, 255, 0.045));
}

.compact-input,
.compact-select {
  width: 100%;
  min-width: 0;
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 0.55rem;
  outline: none;
  font-size: 0.88rem;
}

.icon-input {
  text-align: center;
}

.compact-input:focus,
.compact-select:focus {
  border-color: rgba(0, 245, 255, 0.66);
}

.muted-inline {
  color: var(--quiet);
  font-size: 0.82rem;
}

.inline-add {
  justify-self: start;
  min-height: 1.8rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 0 0.5rem;
  font-size: 0.84rem;
}

.inline-add:hover {
  color: var(--text);
  border-color: rgba(0, 245, 255, 0.5);
}

.folder-name {
  grid-column: 2 / -1;
  font-weight: 760;
}

.folder-link-add {
  margin-left: 1.25rem;
}

.compact-empty {
  margin-left: 1.25rem;
  padding: 0.5rem;
}

.form-grid .wide {
  grid-column: span 2;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.item-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.item-editor + .item-editor {
  margin-top: 0.7rem;
}

.editor-body {
  display: grid;
  gap: 0.75rem;
}

.editor-actions {
  display: flex;
  gap: 0.45rem;
}

.line-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
}

.chip-remove {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(239, 71, 111, 0.12);
  color: #ff9aae;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.chip-remove:hover {
  background: rgba(239, 71, 111, 0.26);
  color: #ffd6df;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 50;
  transform: translateX(-50%) translateY(120%);
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(0, 245, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(20, 20, 24, 0.94);
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden {
  display: none !important;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes backgroundDrift {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 68%;
  }
}

@keyframes gridSlide {
  to {
    background-position: 72px 72px;
  }
}

@keyframes scanSweep {
  0%,
  100% {
    transform: translateX(-35%);
  }
  50% {
    transform: translateX(35%);
  }
}

@keyframes orbitPulse {
  from {
    filter: saturate(1);
    border-color: rgba(0, 245, 255, 0.38);
  }
  to {
    filter: saturate(1.25);
    border-color: rgba(255, 230, 0, 0.5);
  }
}

@keyframes fieldBreath {
  from {
    transform: rotate(0deg) scale(0.94);
  }
  to {
    transform: rotate(38deg) scale(1.06);
  }
}

@keyframes particleOrbitA {
  to {
    transform: rotateZ(360deg) rotateX(65deg) translateX(112px);
  }
}

@keyframes particleOrbitB {
  to {
    transform: rotateZ(-360deg) rotateY(72deg) translateX(92px);
  }
}

@keyframes particleOrbitC {
  to {
    transform: rotateZ(360deg) rotateX(38deg) rotateY(58deg) translateX(132px);
  }
}

@keyframes axisSpinA {
  to {
    transform: translate(-50%, -50%) rotateZ(360deg) rotateX(62deg);
  }
}

@keyframes axisSpinB {
  to {
    transform: translate(-50%, -50%) rotateZ(-360deg) rotateY(68deg);
  }
}

@keyframes axisSpinC {
  to {
    transform: translate(-50%, -50%) rotateZ(360deg) rotateX(78deg) rotateY(40deg);
  }
}

@keyframes scanOrbit {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateZ(18deg) translateY(-74px);
  }
  50% {
    transform: translate(-50%, -50%) rotateZ(198deg) translateY(74px);
  }
}

@keyframes formTumble {
  to {
    transform: rotateX(360deg) rotateY(240deg) rotateZ(180deg);
  }
}

@keyframes coreMorph {
  from {
    border-radius: 18%;
    transform: rotateX(58deg) rotateZ(45deg) scale(0.86);
  }
  to {
    border-radius: 42%;
    transform: rotateX(22deg) rotateZ(135deg) scale(1.08);
  }
}

@keyframes softShimmer {
  from {
    background-color: rgba(0, 245, 255, 0.04);
  }
  to {
    background-color: rgba(255, 43, 214, 0.12);
  }
}

@media (max-width: 1239px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .quickbar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1rem;
  }

  .home-stage {
    grid-template-columns: 1fr;
  }

  .hero-folders {
    display: none;
  }

  .orbit-wrap {
    width: 100%;
    min-height: auto;
    gap: 1rem;
  }

  .orbit {
    width: min(70vw, 320px);
  }

  .float-ring {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
    width: 100%;
    pointer-events: auto;
  }

  .float-ring .float-card,
  .float-ring .float-card:hover {
    position: static;
    width: auto;
    transform: none;
  }

  .scroll-cue {
    display: none;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }
}

@media (min-width: 1180px) {
  .hero {
    justify-items: stretch;
  }
}

@media (max-width: 860px) {
  .add-row,
  .tree-row,
  .folder-row,
  .line-row {
    grid-template-columns: 1.45rem 2rem minmax(0, 1fr) auto;
  }

  .tree-row .icon-badge,
  .tree-row .icon-input,
  .tree-row .compact-select,
  .tree-row .nsfw-check,
  .url-input,
  .line-url-input {
    grid-column: 3 / -1;
  }

  .tree-row .item-delete,
  .line-row .chip-remove {
    grid-column: auto;
  }

  .tree-meta,
  .tree-lines,
  .line-meta {
    padding-left: 2.35rem;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: auto;
  }

  .brand-subtitle {
    display: none;
  }

  .top-actions {
    gap: 0.4rem;
  }

  .top-actions .ghost-button span {
    display: none;
  }

  .hero {
    padding: 1rem;
  }

  .orbit {
    width: min(82vw, 360px);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide,
  .form-grid .full {
    grid-column: 1;
  }

  .item-editor,
  .line-card {
    grid-template-columns: 1fr;
  }

  .editor-actions {
    flex-wrap: wrap;
  }
}
