:root {
  --ink: #0a0a0a;
  --muted: #686868;
  --line: rgba(10, 10, 10, 0.13);
  --soft-line: rgba(10, 10, 10, 0.07);
  --paper: #f6f6f3;
  --panel: rgba(255, 255, 255, 0.88);
  --pointer-x: 70vw;
  --pointer-y: 20vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(560px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.94), transparent 72%);
  content: "";
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 48% 52% 60% 40%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient::after {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: inherit;
  content: "";
}

.ambient-one {
  top: -18rem;
  right: -10rem;
  animation: ambient-drift-one 22s ease-in-out infinite alternate;
}

.ambient-two {
  bottom: -25rem;
  left: -16rem;
  width: 48rem;
  height: 48rem;
  animation: ambient-drift-two 28s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

code {
  padding: 0.1em 0.34em;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: #f1f1ef;
  color: #202020;
}

button,
input {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 5.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--soft-line);
  background: rgba(250, 250, 248, 0.78);
  backdrop-filter: blur(22px) saturate(130%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup img {
  display: block;
  width: clamp(8.5rem, 12vw, 11.5rem);
  height: auto;
}

.brand-lockup span {
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
  color: #444;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.56rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #373737;
  font-size: 0.78rem;
  font-weight: 600;
}

.user-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.07);
}

.logout-form {
  display: block;
  margin: 0;
}

.text-button {
  min-height: auto;
  padding: 0.58rem 0.7rem;
  border: 0;
  background: transparent;
  color: #595959;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 180ms ease;
}

.text-button:hover {
  color: #000;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0 6rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #6a6a6a;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 6.2vw, 6.2rem);
  font-weight: 560;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.cjk-display-title {
  max-width: none;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", ui-sans-serif, system-ui, sans-serif;
  font-weight: 580;
  line-height: 1.04;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.cjk-display-title span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: 2.4rem;
}

.lede {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-note {
  position: relative;
  display: grid;
  gap: 0.55rem;
  overflow: hidden;
  padding: 1.45rem;
  border-radius: 1rem;
  background: #0b0b0b;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.55;
}

.hero-note::after {
  position: absolute;
  top: -7rem;
  right: -6rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  content: "";
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-note:hover::after {
  transform: translate(-1rem, 1rem) scale(1.15);
}

.hero-note strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
}

.hero-note span {
  position: relative;
  z-index: 1;
  font-size: 0.83rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.metric-card {
  display: flex;
  min-height: 7rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.24);
  background: #fff;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.metric-card strong {
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.metric-published {
  border-color: #0b0b0b;
  background: #0b0b0b;
  color: #fff;
}

.metric-published:hover {
  background: #181818;
}

.metric-published span {
  color: rgba(255, 255, 255, 0.58);
}

.panel,
.history,
.success-card {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
}

.upload-panel {
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.panel-heading {
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--soft-line);
}

.panel-heading > span,
.section-heading > span {
  color: #747474;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.upload-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: grid;
  align-content: start;
  gap: 0.62rem;
  font-size: 0.86rem;
  font-weight: 650;
}

label small {
  color: #777;
  font-size: 0.75rem;
  font-weight: 430;
  line-height: 1.6;
}

input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.65rem;
  outline: none;
  background: rgba(250, 250, 248, 0.82);
  color: #0a0a0a;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input::placeholder {
  color: #a3a3a3;
}

input:focus {
  border-color: #0a0a0a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.07);
}

.file-field,
.form-warning,
.upload-form > button {
  grid-column: 1 / -1;
}

.file-drop {
  position: relative;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: 0.75rem;
  border: 1px dashed rgba(0, 0, 0, 0.28);
  border-radius: 0.75rem;
  background: rgba(248, 248, 246, 0.8);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.file-drop:hover,
.file-drop:focus-within {
  transform: translateY(-1px);
  border-color: #0a0a0a;
  background: #fff;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
}

.file-action {
  flex: 0 0 auto;
  padding: 0.68rem 0.9rem;
  border-radius: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
}

.file-drop strong {
  min-width: 0;
  overflow: hidden;
  color: #777;
  font-size: 0.8rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-drop.has-file strong {
  color: #111;
}

.form-warning {
  padding: 1rem 1.1rem;
  border-left: 2px solid #111;
  background: #f3f3f0;
  color: #5e5e5e;
  font-size: 0.79rem;
  line-height: 1.65;
}

button,
.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.3rem;
  border: 1px solid #0a0a0a;
  border-radius: 0.65rem;
  background: #0a0a0a;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
  background: #222;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

button:active,
.button:active {
  transform: translateY(0);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: #111;
}

.alert {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(151, 34, 34, 0.28);
  border-radius: 0.7rem;
  background: #fff7f6;
  color: #8a2929;
  font-size: 0.84rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.alert.compact {
  margin: 1.3rem 0 0;
}

.history {
  margin-top: 0.8rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.section-heading {
  margin-bottom: 1.35rem;
}

.muted {
  color: #858585;
  font-size: 0.75rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

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

th {
  border-top: 0;
  color: #888;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 180ms ease;
}

tbody tr:hover {
  background: rgba(0, 0, 0, 0.025);
}

td strong,
td .muted {
  display: block;
}

td .muted {
  margin-top: 0.3rem;
}

.url-cell {
  display: flex;
  max-width: 34rem;
  align-items: center;
  gap: 0.55rem;
}

.record-url {
  min-width: 0;
  overflow: hidden;
  color: #242424;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: auto;
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
  border-color: var(--line);
  border-radius: 0.4rem;
  background: transparent;
  color: #555;
  font-size: 0.68rem;
}

.copy-button:hover,
.copy-button.copied {
  transform: none;
  background: #111;
  color: #fff;
  box-shadow: none;
}

.status {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #565656;
  font-size: 0.66rem;
  font-weight: 650;
}

.status-published {
  border-color: #111;
  background: #111;
  color: #fff;
}

.status-failed {
  border-color: rgba(151, 34, 34, 0.25);
  color: #8a2929;
}

.timestamp {
  white-space: nowrap;
}

.empty-state {
  padding: 3rem 1rem;
  color: #888;
  text-align: center;
}

.success-card {
  max-width: 800px;
  margin: 1rem auto 0;
  padding: clamp(1.8rem, 5vw, 3.8rem);
}

.success-card h1 {
  max-width: none;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.success-mark {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  font-size: 1.3rem;
}

.published-url {
  display: block;
  margin: 1.5rem 0;
  padding: 1rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f5f5f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

dl {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

dl div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
}

dt {
  color: #797979;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Login */
.login-page .page-shell {
  display: grid;
  min-height: calc(100vh - 5.3rem);
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.login-shell {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(22px);
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(2.4rem, 6vw, 5rem);
  background: #090909;
  color: #fff;
}

.login-intro::before,
.login-intro::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 46% 54% 57% 43%;
  content: "";
  pointer-events: none;
}

.login-intro::before {
  top: -15rem;
  right: -12rem;
  width: 34rem;
  height: 34rem;
  animation: login-orbit 18s ease-in-out infinite alternate;
}

.login-intro::after {
  top: -8rem;
  right: -4rem;
  width: 21rem;
  height: 21rem;
  border-color: rgba(255, 255, 255, 0.1);
  animation: login-orbit 14s ease-in-out infinite alternate-reverse;
}

.login-intro .eyebrow {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.46);
}

.login-intro h1 {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 4.8vw, 5.1rem);
}

.login-intro > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.8;
}

.login-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.login-features span {
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
}

.login-card {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.login-card-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-card-heading .eyebrow {
  margin-bottom: 0.3rem;
}

.login-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
}

.login-hint {
  margin: 1.2rem 0 2rem;
  color: #777;
  font-size: 0.82rem;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 1.25rem;
}

.login-form button {
  margin-top: 0.45rem;
}

.privacy-note {
  margin: 1.5rem 0 0;
  color: #999;
  font-size: 0.68rem;
  text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes ambient-drift-one {
  to { transform: translate(-9vw, 8vh) rotate(22deg); }
}

@keyframes ambient-drift-two {
  to { transform: translate(10vw, -8vh) rotate(-18deg); }
}

@keyframes login-orbit {
  to { transform: translate(-2rem, 2rem) rotate(18deg) scale(1.08); }
}

@media (max-width: 900px) {
  .login-shell {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 360px;
  }

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

  .hero-note {
    max-width: 34rem;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 4.7rem;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
  }

  .brand-lockup {
    gap: 0.7rem;
  }

  .brand-lockup img {
    width: 7.8rem;
  }

  .brand-lockup span {
    display: none;
  }

  .user-badge {
    padding: 0.48rem 0.65rem;
  }

  .text-button {
    padding-right: 0;
  }

  .page-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 3.5rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

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

  .metric-card {
    min-height: 5.5rem;
  }

  .panel-heading,
  .section-heading {
    align-items: start;
  }

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

  .file-field,
  .form-warning,
  .upload-form > button {
    grid-column: auto;
  }

  .file-drop {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-page .page-shell {
    min-height: calc(100vh - 4.7rem);
    padding: 0.5rem 0 2rem;
  }

  .login-shell {
    border-radius: 1.25rem;
  }

  .login-intro {
    min-height: 330px;
    padding: 2rem 1.5rem;
  }

  .login-intro h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.35rem);
  }

  .login-card {
    padding: 2.2rem 1.4rem;
  }

  th,
  td {
    padding-right: 1rem;
    padding-left: 0.5rem;
  }

  .url-cell {
    min-width: 18rem;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Dark FlightFilm theme */
:root {
  --ink: #f3f3f0;
  --muted: #9b9b9f;
  --line: rgba(255, 255, 255, 0.14);
  --soft-line: rgba(255, 255, 255, 0.075);
  --paper: #060607;
  --panel: rgba(14, 14, 16, 0.82);
  color: var(--ink);
  background: var(--paper);
  color-scheme: dark;
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #060607;
  background-size: 72px 72px;
}

body::before {
  background:
    radial-gradient(520px circle at var(--pointer-x) var(--pointer-y), rgba(143, 255, 198, 0.075), transparent 68%),
    radial-gradient(45rem circle at 92% 14%, rgba(132, 100, 255, 0.07), transparent 70%);
}

.ambient {
  border-color: rgba(173, 255, 205, 0.12);
  background: radial-gradient(circle at 35% 35%, rgba(132, 255, 190, 0.055), rgba(126, 90, 255, 0.025) 48%, transparent 70%);
  filter: blur(14px);
  box-shadow: inset 0 0 7rem rgba(123, 255, 191, 0.025);
}

.ambient::after {
  border-color: rgba(175, 138, 255, 0.09);
}

code {
  border-color: var(--line);
  background: #151517;
  color: #d6d6d3;
}

.site-header {
  border-bottom-color: var(--soft-line);
  background: rgba(7, 7, 8, 0.74);
}

.brand-lockup {
  color: #fff;
}

.brand-lockup img {
  filter: invert(1);
  opacity: 0.94;
}

.brand-lockup span {
  border-left-color: var(--line);
  color: #a8a8aa;
}

.user-badge {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: #dedede;
}

.user-dot {
  background: #c4ffd9;
  box-shadow: 0 0 0 4px rgba(145, 255, 186, 0.08), 0 0 14px rgba(145, 255, 186, 0.34);
}

.text-button {
  color: #999;
}

.text-button:hover {
  color: #fff;
}

.eyebrow {
  color: #8f8f94;
}

.hero-note {
  border: 1px solid rgba(189, 255, 214, 0.12);
  background:
    radial-gradient(circle at 110% -10%, rgba(147, 255, 188, 0.14), transparent 55%),
    #0d0d0f;
  color: #959599;
}

.hero-note::after {
  border-color: rgba(171, 255, 206, 0.17);
}

.metrics {
  isolation: isolate;
}

.metric-card {
  border-color: var(--line);
  background: rgba(14, 14, 16, 0.68);
}

.metric-card:hover {
  border-color: rgba(188, 255, 215, 0.24);
  background: rgba(22, 22, 25, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.metric-card span {
  color: #8f8f94;
}

.metric-published {
  border-color: rgba(190, 255, 218, 0.2);
  background:
    radial-gradient(circle at 85% -20%, rgba(163, 255, 200, 0.16), transparent 52%),
    linear-gradient(135deg, #131315, #0c0c0d);
}

.metric-published:hover {
  background:
    radial-gradient(circle at 80% 0%, rgba(163, 255, 200, 0.2), transparent 55%),
    #161618;
}

.panel,
.history,
.success-card {
  position: relative;
  overflow: hidden;
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.panel::before,
.history::before,
.success-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(156, 255, 194, 0.48), rgba(165, 120, 255, 0.38), transparent 90%);
  background-size: 220% 100%;
  content: "";
  animation: edge-flow 9s linear infinite;
}

.panel-heading {
  border-bottom-color: var(--soft-line);
}

.panel-heading > span,
.section-heading > span,
.muted {
  color: #85858a;
}

input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f2;
}

input::placeholder {
  color: #656569;
}

input:focus {
  border-color: rgba(188, 255, 216, 0.58);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 0 4px rgba(158, 255, 197, 0.07), 0 0 28px rgba(141, 255, 190, 0.045);
}

label small {
  color: #838388;
}

.file-drop {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: rgba(190, 255, 216, 0.5);
  background: rgba(255, 255, 255, 0.055);
}

.file-action {
  background: #f1f1ee;
  color: #080809;
}

.file-drop strong,
.file-drop.has-file strong {
  color: #a1a1a5;
}

.form-warning {
  border-left-color: rgba(190, 255, 216, 0.62);
  background: rgba(255, 255, 255, 0.035);
  color: #919196;
}

button,
.button {
  border-color: #eeeeeb;
  background: #eeeeeb;
  color: #09090a;
}

button:hover,
.button:hover {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 12px 34px rgba(192, 255, 216, 0.13);
}

.text-button,
.copy-button {
  border-color: transparent;
  background: transparent;
  color: #96969b;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #eee;
}

.alert {
  border-color: rgba(255, 135, 135, 0.22);
  background: rgba(111, 25, 25, 0.17);
  color: #ffb6b6;
}

th,
td {
  border-top-color: var(--soft-line);
}

th {
  color: #77777c;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.record-url {
  color: #c5c5c8;
}

.copy-button {
  border-color: var(--line);
}

.copy-button:hover,
.copy-button.copied {
  border-color: rgba(188, 255, 215, 0.34);
  background: rgba(170, 255, 202, 0.1);
  color: #d8ffe6;
}

.status {
  border-color: var(--line);
  color: #a7a7ab;
}

.status-published {
  border-color: rgba(184, 255, 210, 0.22);
  background: rgba(161, 255, 198, 0.08);
  color: #caffe0;
}

.status-failed {
  border-color: rgba(255, 134, 134, 0.2);
  color: #ffaaaa;
}

.success-mark {
  background: #f3f3f0;
  color: #09090a;
}

.published-url {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

dt {
  color: #818186;
}

.login-shell {
  border-color: var(--line);
  background: rgba(10, 10, 12, 0.8);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.54);
}

.login-intro {
  border-right: 1px solid var(--soft-line);
  background:
    radial-gradient(circle at 86% 5%, rgba(152, 255, 194, 0.12), transparent 32%),
    radial-gradient(circle at 105% 30%, rgba(146, 102, 255, 0.09), transparent 34%),
    #080809;
}

.login-intro::before {
  border-color: rgba(170, 255, 205, 0.16);
}

.login-intro::after {
  border-color: rgba(175, 126, 255, 0.12);
}

.login-card {
  background: linear-gradient(145deg, rgba(22, 22, 24, 0.82), rgba(10, 10, 12, 0.88));
}

.login-icon {
  border: 1px solid rgba(190, 255, 216, 0.18);
  background: rgba(168, 255, 201, 0.08);
  color: #d8ffe5;
  box-shadow: 0 0 28px rgba(145, 255, 187, 0.07);
}

.login-hint {
  color: #85858a;
}

.privacy-note {
  color: #66666b;
}

@keyframes edge-flow {
  to { background-position: -220% 0; }
}

/* Motion and drag-and-drop enhancements */
body {
  isolation: isolate;
  animation: grid-flow 32s linear infinite;
}

body::before,
.ambient {
  z-index: 0;
}

.ambient {
  mix-blend-mode: screen;
}

.motion-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  mix-blend-mode: screen;
  pointer-events: none;
}

.site-header,
.page-shell {
  position: relative;
  z-index: 2;
}

.hero-note span {
  text-wrap: balance;
}

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

.file-drop {
  min-height: 8.2rem;
  justify-content: center;
  gap: 1.1rem;
}

.file-drop.is-dragging {
  transform: translateY(-2px) scale(1.003);
  border-color: rgba(188, 255, 215, 0.82);
  background:
    radial-gradient(circle at 50% 100%, rgba(156, 255, 197, 0.13), transparent 58%),
    rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(188, 255, 215, 0.16), 0 16px 44px rgba(0, 0, 0, 0.22);
}

.file-drop.is-invalid {
  border-color: rgba(255, 129, 129, 0.6);
}

.drop-icon {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #e8e8e5;
  font-size: 1.35rem;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.file-drop:hover .drop-icon,
.file-drop.is-dragging .drop-icon {
  transform: translateY(-4px);
  border-color: rgba(190, 255, 216, 0.42);
  background: rgba(162, 255, 199, 0.08);
}

.drop-copy {
  display: grid;
  gap: 0.35rem;
}

.drop-copy strong {
  color: #d4d4d2;
  font-size: 0.86rem;
  text-align: left;
}

.drop-copy > span {
  color: #737378;
  font-size: 0.72rem;
  font-weight: 450;
}

.file-drop.has-file .drop-copy strong {
  color: #d8ffe5;
}

button,
.button {
  position: relative;
  overflow: hidden;
}

button:not(.text-button):not(.copy-button)::before,
.button::before {
  position: absolute;
  top: -80%;
  left: -35%;
  width: 28%;
  height: 260%;
  transform: rotate(20deg) translateX(-220%);
  background: linear-gradient(90deg, transparent, rgba(170, 255, 204, 0.3), transparent);
  content: "";
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

button:not(.text-button):not(.copy-button):hover::before,
.button:hover::before {
  transform: rotate(20deg) translateX(650%);
}

.motion-reactive {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.metric-card.motion-reactive:hover {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-3px);
}

.hero-note.motion-reactive:hover {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-2px);
}

@keyframes grid-flow {
  to { background-position: 72px 36px, 36px 72px, 0 0; }
}
