:root {
  color-scheme: light;
  --page: #f8f7f4;
  --ink: #22221f;
  --muted: #696862;
  --line: #dedcd5;
  --line-light: #eae8e2;
  --accent: #cb4b07;
  --accent-dark: #a53a03;
  --sheet: #fff;
  --sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; touch-action: pan-x pan-y; }
button, select, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
button:focus-visible, select:focus-visible {
  outline: 3px solid #a93d08;
  outline-offset: 3px;
}
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[v-cloak] { visibility: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1184px, calc(100% - 88px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 75px; gap: 12px; }
.identity { display: flex; align-items: center; gap: 10px; }
.brandmark { width: 34px; height: 34px; }
.wordmark { font-family: "Arial", "Helvetica Neue", sans-serif; font-weight: 900; letter-spacing: -.074em; line-height: 1; }
.identity .wordmark { font-size: 33px; color: #171714; }
.brand-context { margin-left: 10px; padding-left: 20px; border-left: 1px solid #cbc8bf; color: #575751; font-size: 14px; font-weight: 550; line-height: 19px; }
.help-link { border: 0; background: transparent; padding: 10px 0 10px 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #4f4f49; min-height: 44px; white-space: nowrap; }
.help-link .icon { width: 17px; height: 17px; }
.hero {
  --hero-height: 284px;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: var(--hero-height);
  margin-top: 36px; border-radius: 13px;
  background: linear-gradient(105deg, #f2ece3 0%, #f1e9de 58%, #eee5dc 100%);
}
.hero-photo { position: absolute; z-index: -1; inset: 0 5.5% 0 auto; width: min(40%, calc(var(--hero-height) * 1.5)); display: flex; align-items: center; justify-content: center; }
.hero-photo img {
  display: block; width: 100%; height: auto;
  mask-image: linear-gradient(to right, transparent, black 7%, black 90%, transparent), linear-gradient(to bottom, transparent, black 7%, black 93%, transparent);
  mask-composite: intersect;
}
.hero-copy { position: relative; padding: 40px clamp(30px,4.3vw,64px); }
h1,h2,p { margin: 0; }
h1 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--sans);
  font-size: clamp(42px,4.55vw,68px); font-weight: 820; line-height: 1.2; letter-spacing: -.064em;
  color: #1e1e1a;
}
.hero-copy > p { margin-top: 15px; font-size: 16px; line-height: 1.6; color: #534f48; }
.hero-specs { display: flex; align-items: center; gap: 14px; margin-top: 31px; color: #615c54; font: 12px/1.5 var(--mono); letter-spacing: .07em; }
.hero-specs i { height: 10px; border-left: 1px solid #b7afa3; }
.intake {
  margin-top: 22px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--sheet); box-shadow: 0 2px 4px #3a2d1a03;
}
.fields { display: grid; grid-template-columns: 40% 60%; padding: 29px 0; }
.fields > section { min-width: 0; padding-inline: 32px; }
.project-section { border-right: 1px solid var(--line-light); }
h2 { font-size: 22px; font-weight: 730; line-height: 1.36; letter-spacing: -.045em; }
.field-label { display: block; margin: 23px 0 9px; font-size: 13px; line-height: 1.5; font-weight: 620; }
.select-wrap { position: relative; color: #716f66; }
.select-wrap > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; color: #77746a; }
.select-wrap > .select-chevron { left: auto; right: 13px; width: 16px; }
select {
  width: 100%; height: 48px; appearance: none; border: 1px solid #cfcfc7;
  border-radius: 6px; color: #595950; background: #fff; cursor: pointer;
  padding: 0 35px 0 41px; font-size: 15px; text-overflow: ellipsis;
  transition: border-color .15s;
}
.has-value select { font-weight: 570; color: var(--ink); }
select:disabled { color: #79786e; background: #f8f7f4; }
.owner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 23px; font-size: 13px; line-height: 1.6; }
.owner-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.owner-label .icon { width: 16px; height: 16px; color: #77756d; }
.owner-value { color: #76736b; border-left: 1px solid var(--line); padding-left: 13px; overflow-wrap: anywhere; }
.owner-value.is-assigned { color: #403f38; animation: settle .2s ease-out; }
.dropzone {
  margin-top: 17px; display: flex; position: relative; min-height: 146px;
  background: #faf9f6; border: 1px dashed #c4bfb4; border-radius: 8px;
  transition: background-color .15s, border-color .15s;
}
.browse-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;
  padding: 15px; background: transparent; border: 0; border-radius: inherit;
}
.upload-illustration { width: 37px; height: 41px; color: #d8560f; margin-bottom: 9px; transition: transform .2s ease; }
.drop-title { font-size: 16px; font-weight: 650; line-height: 1.5; }
.drop-meta { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.dropzone.is-dragging { background: #fff0df; border: 2px solid var(--accent); }
.dropzone.is-dragging .upload-illustration { transform: translateY(-4px); }
.action-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 17px 32px; border-top: 1px solid var(--line-light);
}
.naming-note { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 9px; }
.naming-note .icon { width: 16px; height: 16px; }
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 45px;
  padding: 10px 21px; border: 1px solid transparent; border-radius: 6px;
  font-weight: 650; font-size: 15px; line-height: 1.5; transition: background-color .15s, transform .15s;
}
.primary-button { color: #fff; background: var(--accent); }
.submit-button { min-width: 151px; }
.primary-button .icon { width: 19px; height: 19px; transition: transform .18s ease; }
.primary-button:active:not(:disabled), .secondary-button:active { transform: translateY(1px); }
.primary-button:disabled { background: #716e64; }
.page-end { display: flex; align-items: center; gap: 20px; color: #77766d; margin: 26px 0 30px; }
.page-end::before, .page-end::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.page-end .wordmark { font-size: 15px; }
.field-error { font-size: 13px; line-height: 1.6; color: #a33019; margin-top: 8px; }
.select-wrap.is-invalid select, .dropzone.is-invalid { border-color: #b83c25; }
.text-button { background: transparent; border: 0; color: inherit; text-decoration: underline; padding: 4px; }
.file-preview { display: flex; align-items: center; gap: 14px; width: 100%; padding: 22px; }
.dropzone.has-file { background: #fff9f1; border: 1px solid #e2c9b4; }
.file-type { flex: 0 0 46px; height: 57px; padding: 7px 4px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid #dfbe9c; border-radius: 5px; background: #fffdf8; color: var(--accent); }
.file-type b { font: bold 10px/1 var(--mono); letter-spacing: .06em; max-width: 36px; overflow: hidden; text-overflow: ellipsis; }
.file-caption { flex: 1; min-width: 0; }
.file-caption strong, .current-file strong { display: block; font-size: 15px; overflow-wrap: anywhere; line-height: 1.6; }
.file-caption span, .current-file small { display: block; font-size: 12px; line-height: 1.6; margin-top: 4px; color: var(--muted); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; background: transparent; border: 0; border-radius: 5px; color: #57564e; }
.icon-button .icon { width: 17px; height: 17px; }
.upload-progress { margin-top: 8px; height: 6px; border-radius: 3px; overflow: hidden; background: #ece8dc; }
.upload-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .15s; }
.upload-progress.is-packing > span { width: 42%; animation: pack-progress 1.45s ease-in-out infinite alternate; }
.progress-caption { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.progress-caption b { color: var(--accent); font: 600 13px/1 var(--mono); }
.transfer-art { position: relative; width: 56px; height: 53px; margin: 3px 0 18px; }
.folder-front, .folder-back { position: absolute; left: 3px; bottom: 0; width: 46px; border: 1.5px solid #a84711; border-radius: 3px 4px 5px 5px; }
.folder-back { height: 29px; background: #e88b3f; transform: skewY(-4deg); }
.folder-back::before { content: ""; position: absolute; bottom: 100%; left: -1.5px; width: 18px; height: 4px; border: 1.5px solid #a84711; border-bottom: 0; border-radius: 3px 4px 0 0; background: inherit; }
.folder-front { height: 24px; background: #ef7427; transform: skewY(3deg); }
.folder-front::after { content: ""; width: 6px; height: 9px; background: #fff4dd; position: absolute; bottom: 4px; left: 5px; }
.moving-paper { position: absolute; left: 11px; bottom: 13px; height: 27px; width: 28px; border: 1.3px solid #ae9476; border-radius: 2px; background: #fffaf1; animation: file-in 1.65s ease infinite; }
.moving-paper::after { content: ""; position: absolute; left: 4px; right: 5px; top: 6px; height: 4px; border-block: 1px solid #c7b398; }
.transfer-sheet .sheet-body > .transfer-name { margin-top: 6px; }
.transfer-sheet h2:focus { outline: none; }
.transfer-sheet .sheet-body > #transfer-note { margin-top: 18px; font-size: 13px; }
@keyframes pack-progress { from { transform: translateX(0); } to { transform: translateX(138%); } }
@keyframes file-in {
  0% { opacity: 0; transform: translate(3px,-12px) rotate(7deg); }
  22% { opacity: 1; transform: translate(2px,-6px) rotate(4deg); }
  68%,100% { opacity: 1; transform: translate(0,10px) rotate(-2deg); }
}
.notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; background: #fff5e6; color: #775021; border-radius: 6px; padding: 12px 14px; line-height: 1.55; font-size: 13px; }
.notice .icon { width: 16px; height: 16px; margin-top: 2px; }
.notice p { margin-top: 3px; overflow-wrap: anywhere; }
.notice.is-success { color: #365a40; background: #edf4eb; }
.sheet { border: 1px solid var(--line); border-radius: 14px; width: min(448px, calc(100% - 32px)); padding: 0; color: var(--ink); max-height: calc(100dvh - 40px); box-shadow: 0 16px 75px #24201725; }
.sheet[open] { animation: settle .17s ease-out; }
.sheet::backdrop { background: #22211966; }
.sheet-body { padding: 26px; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-heading .icon-button { margin: -7px -7px -7px 0; }
.sheet-icon { color: var(--accent); width: 25px; height: 25px; }
.sheet-body > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 12px; overflow-wrap: anywhere; }
.current-file { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px; border: 1px solid var(--line-light); background: var(--page); border-radius: 6px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.secondary-button { background: white; color: var(--ink); border-color: var(--line); }
.help-steps { padding-left: 21px; font-size: 14px; }
.help-steps li { padding-left: 5px; margin: 15px 0; }
.help-steps li::marker { color: var(--accent); font-family: var(--mono); }
.help-steps p { margin-top: 4px; line-height: 1.7; color: var(--muted); }
.help-done { width: 100%; margin-top: 8px; }
@keyframes settle { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) {
  .select-wrap:hover select:not(:disabled) { border-color: #8b877a; }
  .dropzone:not(.has-file):hover { border-color: #c66a31; background: #fff8ed; }
  .browse-area:hover .upload-illustration { transform: translateY(-2px); }
  .primary-button:hover:not(:disabled) { background: var(--accent-dark); }
  .primary-button:hover:not(:disabled) .icon { transform: translateX(2px); }
  .help-link:hover { color: var(--accent); }
  .icon-button:hover, .secondary-button:hover { background: var(--page); }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { margin-top: 25px; --hero-height: 230px; }
  .hero-copy { padding: 31px; }
  .hero-photo { width: 40%; right: 2%; }
  .hero-copy > p { font-size: 15px; }
  .fields > section { padding-inline: 23px; }
  .action-row { padding-inline: 23px; }
  .owner-row { gap: 6px 8px; }
  .owner-value { padding-left: 8px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { min-height: 62px; }
  .brandmark { width: 29px; height: 29px; }
  .identity { gap: 7px; }
  .identity .wordmark { font-size: 29px; }
  .brand-context { font-size: 12px; margin-left: 5px; padding-left: 11px; }
  .help-link { font-size: 13px; gap: 4px; }
  .help-link .icon { width: 16px; height: 16px; }
  .hero { --hero-height: 181px; margin-top: 17px; border-radius: 10px; }
  .hero-copy { padding: 24px; }
  h1 { font-size: clamp(29px,5.3vw,38px); }
  .hero-copy > p { font-size: 13px; margin-top: 8px; }
  .hero-specs { font-size: 10px; gap: 8px; margin-top: 18px; letter-spacing: .025em; }
  .fields { display: block; padding: 0 21px; }
  .fields > section { padding: 20px 0; }
  .project-section { border: 0; border-bottom: 1px solid var(--line-light); }
  h2 { font-size: 19px; }
  .field-label { margin: 15px 0 7px; }
  select { font-size: 16px; }
  .owner-row { margin-top: 14px; }
  .intake { margin-top: 14px; border-radius: 10px; }
  .dropzone { margin-top: 13px; min-height: 136px; }
  .browse-area { padding: 13px 8px; }
  .upload-illustration { width: 31px; height: 35px; margin-bottom: 6px; }
  .drop-title { font-size: 15px; }
  .action-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 15px 21px 20px; }
  .naming-note { font-size: 12px; }
  .submit-button { width: 100%; min-height: 47px; }
  .page-end { margin: 20px 0 max(22px, env(safe-area-inset-bottom)); gap: 12px; }
  .page-end .wordmark { font-size: 13px; }
}
@media (max-width: 490px) {
  .hero { --hero-height: 156px; }
  .hero-copy { padding: 18px; width: 63%; }
  .hero-photo { width: 44%; height: 100%; right: -1.8%; }
  .hero-photo img { width: 100%; height: auto; }
  .hero-copy > p { max-width: 14em; font-size: 12px; line-height: 1.65; }
  .hero-specs { flex-wrap: wrap; gap: 2px 7px; margin-top: 12px; font-size: 9px; }
  .hero-specs i { height: 8px; }
  .drag-hint { display: none; }
  .drop-meta { font-size: 11.5px; }
  .file-preview { gap: 10px; padding: 13px; }
}
@media (max-width: 360px) {
  .brand-context { display: none; }
  .hero-copy { padding: 14px; }
  h1 { font-size: 26px; }
  .fields { padding-inline: 16px; }
  .action-row { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
