:root {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #15171b;
  background: #f5f5f2;
  font-synthesis: none;
  color-scheme: light;
  --brand: #c21865;
  --brand-hover: #a71355;
  --brand-soft: #fcf0f5;
  --ink: #15171b;
  --muted: #66686f;
  --line: #e2e2e5;
  --paper: #f5f5f2;
  --focus: #005fcc;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
.topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 0 max(24px, calc((100% - 960px) / 2)); min-height: 80px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: 145px; height: auto; }
.brand span { border-left: 1px solid #dcdce0; padding-left: 12px; color: #53555b; font-size: 13px; font-weight: 500; white-space: nowrap; }
main { flex: 1; width: 100%; max-width: 1000px; margin: 20px auto; padding: 0 20px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.card h2 { font-size: 23px; font-weight: 650; line-height: 1.4; margin: 0 0 10px; }
.muted, .hint { color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
label.field { display: block; margin: 14px 0 0; color: #303238; font-size: 14px; font-weight: 500; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; margin-top: 6px;
  border: 1px solid #d4d5da; border-radius: 3px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400;
}
input::placeholder, textarea::placeholder { color: #787a82; opacity: 1; }
input:disabled { background: #f3f3f5; color: #696b72; }
textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
select {
  appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #66686f 50%), linear-gradient(135deg, #66686f 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.inline { display: flex; gap: 10px; align-items: end; }
.inline > .field { flex: 1; min-width: 0; }
.inline > button { flex-shrink: 0; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 3px; padding: 10px 18px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.primary { border: 1px solid var(--brand); background: var(--brand); color: #fff; }
.secondary { border: 1px solid #d4d5da; background: #fff; color: #303238; }
.primary:disabled, .secondary:disabled { background: #ededf0; border-color: #e2e2e5; color: #696b72; }
.wide { width: 100%; margin-top: 16px; }
.text-button { background: none; border: 0; color: var(--brand); padding: 8px; font-size: 14px; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 400; line-height: 1.65; margin-top: 12px; padding: 3px 0; }
.check input { flex-shrink: 0; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--brand); }
.check button { padding: 0; text-align: left; font-size: inherit; line-height: inherit; text-decoration: underline; text-underline-offset: 3px; }
.message { padding: 12px 14px; border: 1px solid #efd3bf; border-radius: 3px; background: #fff6ee; color: #8c4117; line-height: 1.6; font-size: 14px; margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message:empty { display: none; }
.section-heading { margin: 20px 0 14px; }
.section-heading h1 { font-size: 28px; font-weight: 650; letter-spacing: -.5px; line-height: 1.35; margin: 8px 0; }
.section-heading p { margin: 6px 0; }
.steps { display: flex; gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.steps li { flex: 1; color: #66686f; font-size: 14px; padding: 10px 0; border-bottom: 2px solid #dcdce1; }
.steps li.active { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }
.status-card { max-width: 600px; margin: 26px auto; text-align: center; padding: 32px 28px; }
.status-icon { width: 48px; height: 48px; border: 1px solid #f0c9da; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; font-size: 25px; }
.status-card h1 { font-size: 26px; font-weight: 650; line-height: 1.4; margin: 12px 0; }
.status-card p { line-height: 1.7; }
.status-card .message { text-align: left; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips .check { margin-top: 8px; background: #f6f6f7; border: 1px solid var(--line); padding: 8px 12px; border-radius: 3px; }
.portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.asset { border: 1px solid var(--line); border-radius: 3px; padding: 8px; min-width: 0; }
.asset img, .asset video { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 2px; }
.asset p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.asset button { width: 100%; }
.upload { margin-top: 16px; padding: 16px; background: #fafafa; border: 1px dashed #babcc4; border-radius: 3px; font-size: 14px; }
.upload input { width: 100%; min-width: 0; margin-top: 10px; font-size: 14px; }
.verified { padding: 12px 14px; background: var(--brand-soft); border-left: 2px solid var(--brand); border-radius: 2px; color: #8c164a; line-height: 1.6; margin-top: 14px; font-size: 14px; }
footer { border-top: 1px solid #e4e4e1; text-align: center; padding: 22px 20px; font-size: 12px; color: #696b72; }
dialog { border: 1px solid var(--line); border-radius: 4px; width: min(680px, calc(100% - 32px)); padding: 24px; max-height: 85vh; max-height: 85svh; background: #fff; color: var(--ink); box-shadow: 0 20px 80px #0c0c0e26; }
dialog::backdrop { background: #0c0c0e80; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 19px; line-height: 1.4; font-weight: 650; margin: 0; }
.dialog-header .text-button { flex-shrink: 0; min-height: 40px; }
.agreement-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 14px; overflow: auto; max-height: 58vh; max-height: 58svh; }
.subtle { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }

@media (hover: hover) {
  .primary:not(:disabled):hover { background: var(--brand-hover); border-color: var(--brand-hover); }
  .secondary:not(:disabled):hover { background: #f6f6f7; border-color: #aeb0b8; }
  .text-button:hover { color: #96114d; }
}
@media (max-width: 640px) {
  .topbar { min-height: 0; padding: 16px 16px 0; gap: 10px; }
  .brand { gap: 9px; }
  .brand img { width: 118px; }
  .brand span { padding-left: 9px; font-size: 12px; }
  main { padding: 0 16px; margin: 16px auto; }
  .card { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-heading { margin: 16px 0 12px; }
  .section-heading h1 { font-size: 25px; }
  .steps { gap: 10px; }
  .steps li { font-size: 13px; }
  .status-card { margin: 20px auto; padding: 26px 18px; }
  .status-card h1 { font-size: 23px; }
  .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog { padding: 18px; }
  footer { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .brand span { display: none; }
  .inline { gap: 8px; }
  .inline > button { padding-inline: 10px; }
}
