:root {
  color-scheme: dark;
  --ink: #f4eee6;
  --muted: #b8c2c8;
  --light: #050506;
  --paper: #111820;
  --line: #303641;
  --accent: #e8833a;
  --accent-text: #ffab6c;
  --accent-surface: #33241b;
  --danger: #ff9d99;
  --max: 1152px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--light);
  line-height: 1.62;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 24% 20%, #a1472127, transparent 40%),
    var(--light);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a {
  color: var(--accent-text);
}
:focus-visible {
  outline: 3px solid #ff9d4d;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p + p {
  margin-top: 10px;
}
.site-header {
  background: #080809;
  border-bottom: 1px solid var(--line);
}
.header-inner,
.site-footer {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-inner {
  min-height: 74px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  white-space: nowrap;
}
.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.brand-name {
  line-height: 1.25;
}
.brand-name small {
  display: block;
  color: #d69059;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.brand-product {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.site-header nav a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 750;
}
.site-header .official {
  color: var(--accent-text);
}
.site-footer {
  min-height: 80px;
  color: var(--muted);
  font-size: 13px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-footer a {
  color: inherit;
}
.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 8vw, 106px);
  align-items: start;
  padding-top: clamp(38px, 7vw, 100px);
  margin-bottom: 70px;
}

.intake-intro {
  padding-top: clamp(12px, 7vw, 92px);
}

.intake-intro h1 {
  font-size: clamp(33px, 5vw, 60px);
  line-height: 1.25;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.intake-intro h1 em {
  display: block;
  font-style: normal;
  color: var(--accent-text);
}

.intake-intro p {
  color: var(--muted);
  font-size: 17px;
  max-width: 29ch;
}

.intake-panel {
  border-color: #543c30;
  background: linear-gradient(145deg, #16212e, #0d141d);
}

.intake-panel textarea {
  min-height: 106px;
}

.optional-contact {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.optional-contact .form-grid {
  margin-top: 12px;
}

.mode-help {
  margin: -4px 0 0;
}

.content {
  max-width: var(--max);
  margin: 28px auto 42px;
  padding: 0 24px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 28px;
  min-width: 0;
}
.panel h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.panel h3 {
  font-size: 17px;
  margin-bottom: 9px;
}
.intro {
  color: var(--muted);
  font-size: 14px;
  margin: 7px 0 18px;
}
.choices {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: #111820;
}
.choice:has(input:checked) {
  border-color: #d68347;
  background: #33241b;
}
.choice input,
.chip input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  margin: 0;
  flex: none;
}
.choice strong,
.choice small {
  display: block;
}
.choice strong {
  font-size: 15px;
}
.choice small {
  color: var(--muted);
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.field {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 650;
}
.wide {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #475260;
  background: #10161e;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 74px;
}
.field small {
  color: var(--muted);
  font-weight: 400;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 6px 0 14px;
}
.chip {
  display: flex;
  gap: 7px;
  align-items: center;
  cursor: pointer;
  background: #10161e;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 13px;
}
.chip:has(input:checked) {
  background: var(--accent-surface);
  border-color: #bb7b52;
}
.operations {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 7px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  gap: 7px;
}
.primary {
  color: #180d05;
  background: linear-gradient(110deg, #f8ad5c, #e46c24);
}
.primary:hover {
  background: var(--accent-text);
}
.secondary {
  background: #10161e;
  border-color: #475260;
  color: var(--ink);
}
.secondary:hover {
  background: var(--light);
}
.subtle {
  color: var(--accent-text);
  background: var(--accent-surface);
}
.aside-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.error {
  color: var(--danger);
  margin: 10px 0 0;
  font-size: 14px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0;
}
.empty {
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
}
.details {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 7px 16px;
  margin: 15px 0;
  font-size: 14px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.callout {
  background: #2b211a;
  border: 1px solid #644936;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14px;
  margin: 13px 0;
}
.ref {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.narrow {
  max-width: 640px;
  margin: 0 auto;
}
.pagebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.pagebar h1 {
  font-size: 28px;
}
.pagebar p {
  font-size: 13px;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 13px;
  min-width: 0;
}
.workspace .panel {
  padding: 19px 20px;
}
.workspace .panel h2 {
  font-size: 19px;
}
.work-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0;
}
.work-stage span,
.tag {
  font-size: 12px;
  background: #232c35;
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--muted);
}
.work-stage .active,
.tag.live {
  background: var(--accent-surface);
  color: var(--accent-text);
  font-weight: 700;
}
.row {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 14px;
}
.row:last-child {
  border-bottom: 0;
}
.row p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rowline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.inline-form .field {
  flex: 1 1 150px;
}
.inline-form .button {
  flex: none;
}
.section-form {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
}
.project-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.project-list a:last-child {
  border: 0;
}
.project-list a:hover strong {
  color: var(--accent-text);
  text-decoration: underline;
}
.invite-url {
  width: 100%;
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 830px) {
  .intake-layout,
  .workspace {
    grid-template-columns: 1fr;
  }
  .intake-layout {
    gap: 22px;
    margin-top: 0;
    margin-bottom: 32px;
  }
  .intake-intro {
    padding-top: 0;
  }
  .intake-intro h1 em {
    display: inline;
  }
  .content {
    margin-top: 18px;
  }
}

@media (max-width: 550px) {
  .header-inner {
    padding: 7px 15px;
    min-height: 64px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .site-header nav {
    gap: 14px;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .brand-product {
    display: none;
  }
  .brand img {
    width: 43px;
    height: 43px;
  }
  .content,
  .site-footer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .panel {
    padding: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .details {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 7px 10px;
  }
  .pagebar {
    align-items: flex-start;
  }
  .pagebar h1 {
    font-size: 23px;
  }
  .intake-intro p {
    font-size: 14px;
  }
}
