:root {
  color-scheme: dark;
  --bg: #101310;
  --panel: #181d19;
  --panel2: #212823;
  --ink: #f0f0e7;
  --muted: #a6afa5;
  --line: #364137;
  --lime: #d3e6a1;
  --dark: #1b2514;
  --warn: #f3d0a2;
  --error: #edb3a8;
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel2);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}
button:hover,
.button:hover {
  border-color: #839375;
  background: #2a332b;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: var(--lime);
  color: var(--dark);
  border-color: var(--lime);
}
.primary:hover {
  background: #e0eebc;
  border-color: #e0eebc;
}
.quiet {
  background: transparent;
}
button:focus-visible,
.button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 75px);
  border-bottom: 1px solid var(--line);
  padding: 0 max(4vw, calc((100vw - 1280px) / 2));
  background: #111512;
}
.brand,
.topbar nav,
.account,
.actions,
.inline,
.section-head,
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  font-size: 1.23rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.topbar nav {
  height: 100%;
  gap: 28px;
}
.topbar nav a {
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 0.91rem;
  color: var(--muted);
  position: relative;
}
.topbar nav a[aria-current='page'] {
  color: var(--ink);
}
.topbar nav a[aria-current='page']:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lime);
}
.account {
  margin-left: auto;
  gap: 10px;
  font-size: 0.86rem;
}
.balance {
  color: var(--lime);
}
.topbar .button {
  font-size: 0.85rem;
  padding: 6px 12px;
}
main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px max(4vw, calc((100% - 1280px) / 2)) 75px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.4;
}
h3 {
  font-size: 1.03rem;
}
.muted,
.hint,
small,
.breadcrumb {
  color: var(--muted);
}
.hint {
  font-size: 0.86rem;
  line-height: 1.65;
}
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #43523f;
  border-radius: 16px;
  min-height: 245px;
  padding: clamp(26px, 4.2vw, 58px);
  background: linear-gradient(107deg, #263321, #1c291d 52%, #334437);
  display: flex;
  align-items: center;
}
.intro h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.6rem);
  line-height: 1.2;
  margin: 6px 0 16px;
}
.intro p:not(.eyebrow) {
  max-width: 35em;
  color: #d0d9c9;
}
.eyebrow {
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c8daae;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 68%;
}
.hero-copy .actions {
  margin-top: 22px;
}
.camera {
  position: absolute;
  z-index: -1;
  width: clamp(250px, 33vw, 460px);
  aspect-ratio: 1;
  right: 1%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle,
    transparent 0 19%,
    #17251e 20% 23%,
    #66816a 23.5%,
    #1a2920 24% 30%,
    #233529 31%,
    #769077 31.8%,
    #243428 32% 36%,
    #4c6751 36.6%,
    #293c2d 37% 42%,
    #61745f 42.5%,
    transparent 43%
  );
  opacity: 0.9;
}
.camera:before {
  content: '';
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 2deg, #95ab87 0 0.4deg, transparent 0.5deg 3.5deg);
  mask-image: radial-gradient(circle, transparent 0 64%, #000 65% 69%, transparent 70%);
}
.camera:after {
  content: '';
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    inset 3px -5px 8px #0d1e19,
    0 0 0 2px #79876b;
  background: radial-gradient(ellipse at 30% 25%, #77896a 1%, #254638 10%, #12271d 40%, #18332a 68%, #5d775d);
}
.section-head {
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}
.section-head p {
  margin-top: 3px;
}
.grid {
  display: grid;
  gap: 14px;
}
.modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mode-tile {
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
  font-weight: 400;
  width: 100%;
  justify-content: flex-start;
}
.mode-tile .label {
  display: block;
  font-size: 1.12rem;
  font-weight: 650;
  margin: 0 0 5px;
}
.symbol {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 10px;
  background: #2a3929;
  color: var(--lime);
  font-size: 1.16rem;
  font-weight: 700;
}
.guided .symbol {
  background: #343128;
  color: #e3ca9d;
}
.link {
  color: var(--lime);
  font-size: 0.9rem;
}
.empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 22px;
}
.stack > * + * {
  margin-top: 16px;
}
.actions {
  flex-wrap: wrap;
}
.actions.right {
  justify-content: flex-end;
}
.section-head:first-child {
  margin-top: 0;
}
.breadcrumb {
  font-size: 0.88rem;
  margin: 0 0 15px;
}
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.tag {
  font-size: 0.78rem;
  line-height: 1.45;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 9px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.tag.active {
  color: var(--lime);
  border-color: #58674b;
}
.project-list {
  display: grid;
  gap: 9px;
}
.project-row {
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.project-row:hover {
  background: var(--panel2);
  border-color: #58674b;
}
.project-row .details {
  min-width: 0;
  flex: 1;
}
.project-row strong,
.title {
  overflow-wrap: anywhere;
}
.project-row small {
  display: block;
}
.trailing {
  color: var(--muted);
  font-size: 0.85rem;
}
.small {
  font-size: 0.85rem;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.75fr);
  gap: 18px;
}
.columns .panel {
  align-self: start;
}
.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.91rem;
  color: #dce0d6;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea,
.text-input,
select {
  width: 100%;
  padding: 9px 11px;
  background: #111612;
  color: var(--ink);
  border: 1px solid #434e43;
  border-radius: 7px;
  line-height: 1.5;
  min-width: 0;
}
.field textarea,
.text-input {
  resize: vertical;
}
.field textarea {
  min-height: 90px;
}
.field textarea.script {
  min-height: 156px;
}
.field select {
  appearance: auto;
}
.field input[type='number'] {
  appearance: textfield;
}
.upload {
  padding: 18px;
  border: 1px dashed #56674f;
  border-radius: 9px;
  background: #151e17;
}
.upload label {
  font-weight: 650;
}
.upload input {
  max-width: 100%;
  color: var(--muted);
  display: block;
  margin-top: 9px;
  font-size: 0.88rem;
}
input[type='file']::file-selector-button {
  color: var(--ink);
  padding: 5px 10px;
  margin-right: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.choice input {
  accent-color: var(--lime);
  width: 17px;
  height: 17px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
}
.quote {
  background: #202d20;
  border: 1px solid #405541;
  border-radius: 10px;
  padding: 14px 16px;
}
.quote strong {
  color: var(--lime);
}
.danger {
  color: var(--error);
}
.warn {
  color: var(--warn);
}
.workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
}
.rail {
  align-self: start;
  background: var(--panel);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.rail ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.rail li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.88rem;
}
.rail li:before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid #667265;
  border-radius: 50%;
}
.rail li.past:before {
  background: #899c80;
  border-color: #899c80;
}
.rail li.now {
  color: var(--lime);
  background: #273425;
  border-radius: 6px;
}
.rail li.now:before {
  background: var(--lime);
  border-color: var(--lime);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.stat {
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 12px 16px;
}
.stat .num {
  font-weight: 650;
  font-size: 1.35rem;
  display: block;
  font-variant-numeric: tabular-nums;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
}
.asset {
  min-width: 0;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #141915;
  overflow-wrap: anywhere;
}
.asset img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  background: #0d100e;
  border-radius: 5px;
  margin-bottom: 8px;
}
.asset .actions {
  margin-top: 9px;
}
.asset p,
.seg p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.seg {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #151a16;
}
.seg + .seg {
  margin-top: 10px;
}
.seg .actions {
  margin-top: 10px;
}
.versions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.version {
  max-width: 310px;
}
.version video,
.version img,
.media {
  width: 100%;
  max-height: 460px;
  background: #090c0a;
  border-radius: 7px;
}
.version button {
  margin-top: 5px;
}
.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
details > summary {
  cursor: pointer;
  font-weight: 600;
}
details[open] > summary {
  margin-bottom: 13px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  text-align: left;
}
td,
th {
  border-bottom: 1px solid var(--line);
  padding: 8px;
}
th {
  color: var(--muted);
  font-weight: 550;
}
#message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: min(650px, 94%);
  background: var(--panel2);
  color: var(--ink);
  border-radius: 9px;
  box-shadow: 0 4px 25px #0008;
}
#message:not(:empty) {
  padding: 11px 17px;
  border: 1px solid var(--line);
}
dialog {
  width: min(640px, 94%);
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
  background: #1b211d;
  border: 1px solid #596551;
  border-radius: 14px;
  padding: 24px;
}
dialog::backdrop {
  background: #000a;
}
.spaced {
  margin-top: 18px;
}
.note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.loading {
  padding: 20px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.button[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.55;
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 76%;
  }
  .camera {
    right: -8%;
  }
  .topbar {
    padding: 0 4vw;
  }
  .account .name {
    display: none;
  }
}
@media (max-width: 620px) {
  main {
    padding: 18px 14px 52px;
  }
  .topbar {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 9px 14px;
  }
  .brand {
    font-size: 1.05rem;
    gap: 6px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .topbar nav {
    gap: 12px;
  }
  .topbar nav a {
    font-size: 0.8rem;
  }
  .account {
    gap: 5px;
  }
  .balance {
    display: none;
  }
  .intro {
    min-height: 200px;
    padding: 22px 17px;
  }
  .hero-copy {
    max-width: 91%;
  }
  .intro p:not(.eyebrow) {
    font-size: 0.9rem;
    max-width: 80%;
  }
  .camera {
    opacity: 0.35;
    right: -20%;
  }
  .modes,
  .fields {
    grid-template-columns: 1fr;
  }
  .mode-tile {
    padding: 15px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .rail {
    padding: 8px;
  }
  .rail ol {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
  }
  .rail li {
    padding: 3px 5px;
    font-size: 0.76rem;
    gap: 5px;
  }
  .rail li:before {
    width: 5px;
    height: 5px;
  }
  .panel {
    padding: 15px;
  }
  .project-row {
    gap: 8px;
  }
  .trailing {
    display: none;
  }
  .stat {
    padding: 8px 9px;
  }
  .stat .num {
    font-size: 1.03rem;
  }
  .stats {
    gap: 6px;
  }
  .section-head {
    margin-top: 23px;
  }
  .account a,
  .account button {
    font-size: 0.76rem;
    padding: 6px;
  }
  .fact-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button,
  .project-row,
  .mode-tile {
    transition:
      background 0.13s,
      border-color 0.13s;
  }
}
