:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: rgba(255, 255, 255, 0.055);
  --hover: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f2;
  --muted: #a0a09a;
  --accent: #d8ff52;
  --danger: #ff9999;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(216, 255, 82, 0.1), transparent 30%),
    radial-gradient(
      circle at 90% 20%,
      rgba(255, 255, 255, 0.05),
      transparent 24%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.landing {
  display: grid;
  place-items: center;
  padding: 48px 20px;
}
.shell {
  width: min(100%, 720px);
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(216, 255, 82, 0.6);
}
.hero {
  margin-bottom: 42px;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1 {
  margin: 0;
  font-size: clamp(52px, 10vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 800;
}
.intro {
  max-width: 570px;
  margin: 25px 0 0;
  color: #bdbdb8;
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-line;
}
.links {
  display: grid;
  gap: 14px;
}
.card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 255, 82, 0.42);
  background: var(--hover);
}
.num {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}
.arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  transition: transform 0.2s ease;
}
.card:hover .arrow {
  transform: translate(2px, -2px);
  background: var(--accent);
  color: #080808;
}
.notice {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #92928e;
  letter-spacing: 0.04em;
}
.footer-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.manage-link {
  margin-left: 14px;
  color: var(--muted);
  text-underline-offset: 3px;
}
.manage-link:hover {
  color: var(--accent);
}
.editor-page {
  padding: 28px 20px 60px;
}
.editor-shell {
  width: min(100%, 940px);
  margin: 0 auto;
}
.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.editor-head h1 {
  font-size: clamp(40px, 7vw, 64px);
}
.editor-head p {
  color: var(--muted);
  line-height: 1.5;
}
.editor-head a {
  padding-top: 12px;
  color: var(--accent);
  white-space: nowrap;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  padding: 24px;
  margin: 20px 0;
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 23px;
}
.panel p {
  color: var(--muted);
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #d0d0cb;
  font-size: 13px;
}
.field.wide {
  grid-column: 1 / -1;
}
.field input,
.field textarea {
  width: 100%;
  background: #151515;
  border: 1px solid #444;
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  font-size: 15px;
}
.field textarea {
  min-height: 92px;
  resize: vertical;
}
.helper {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin: 8px 0 0;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.bar.between {
  justify-content: space-between;
}
.btn {
  border: 1px solid #454545;
  border-radius: 10px;
  background: #222;
  color: var(--text);
  padding: 11px 15px;
  font-weight: 650;
  line-height: 1.2;
}
.btn:hover {
  background: #343434;
}
.btn.primary {
  background: var(--accent);
  color: #080808;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #edffae;
}
.btn.danger {
  color: var(--danger);
}
.editor-links {
  display: grid;
  gap: 14px;
}
.editor-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.24);
}
.editor-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.editor-card-head strong {
  font-size: 16px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.checkline input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.feedback {
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d9dfc7;
  white-space: pre-wrap;
}
.feedback.error {
  color: #ffb7b7;
  border-color: #c15b5b;
}
.feedback[hidden],
.notice[hidden] {
  display: none;
}
.publish-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.editor-foot {
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 560px) {
  .landing {
    padding: 28px 16px;
  }
  .topline {
    margin-bottom: 42px;
  }
  .intro {
    font-size: 16px;
  }
  .card {
    grid-template-columns: 46px 1fr auto;
    padding: 17px;
    gap: 13px;
    border-radius: 17px;
  }
  .num {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
  .card h2 {
    font-size: 17px;
  }
  .card p {
    font-size: 13px;
  }
  .card .arrow {
    width: 25px;
  }
  footer {
    flex-direction: column;
    gap: 7px;
  }
  .editor-page {
    padding: 22px 12px;
  }
  .panel {
    padding: 17px;
  }
  .form-grid,
  .publish-row {
    grid-template-columns: 1fr;
  }
  .editor-head {
    display: block;
  }
  .editor-head a {
    display: inline-block;
  }
  .editor-card-head {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
select {
  font: inherit;
  background: #151515;
  color: var(--text);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.wide {
  grid-column: 1/-1;
}
.editor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  font-size: 13px;
}
.editor-nav a {
  text-decoration: none;
  color: var(--muted);
}
.editor-nav a:hover {
  color: var(--accent);
}
.dirty {
  color: var(--accent);
  font-size: 13px;
}
.editor-card {
  margin-top: 14px;
}
.drag-handle {
  cursor: grab;
  color: var(--muted);
  padding: 10px 0;
}
.preview-wrap {
  max-width: 100%;
  margin: 20px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.preview-wrap.mobile {
  width: 375px;
}
.preview-wrap iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 20px;
}
h1,
.intro,
.card-copy,
.topline,
footer {
  overflow-wrap: anywhere;
}
.card-copy {
  min-width: 0;
}
.topline {
  flex-wrap: wrap;
}
.status-dot {
  flex-shrink: 0;
}
.card {
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 50%,
    rgba(216, 255, 82, 0.045)
  );
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
}
.arrow {
  border: 1px solid var(--line);
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--accent);
  color: #080808;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.editor-head h1 {
  font-size: clamp(38px, 6vw, 64px);
}
html[data-accent="mint"] {
  --accent: #80f5c0;
}
html[data-accent="sky"] {
  --accent: #9bd6ff;
}
html[data-cards="square"] .card {
  border-radius: 4px;
}
input[readonly] {
  color: var(--muted);
}
.btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 380px) {
  .card {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 14px;
  }
  .num {
    width: 32px;
    height: 38px;
  }
  .card .arrow {
    width: 20px;
  }
  .editor-card {
    padding: 12px;
  }
  .editor-card-head .btn {
    padding: 10px;
  }
  .editor-nav {
    gap: 14px;
  }
  .topline {
    font-size: 10px;
  }
  .footer-right {
    flex-wrap: wrap;
  }
}
@media (min-width: 900px) {
  .editor-shell {
    width: min(100%, 1040px);
  }
}
