:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1c2025;
  background: #f4f5f6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f4f5f6; }
button, input { font: inherit; letter-spacing: 0; }

.transfer-header {
  min-height: 64px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dfe2e5;
  background: #fff;
}

.brand-link { min-width: 0; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #176b51; font-weight: 800; }
.brand-link > span:last-child { min-width: 0; display: grid; gap: 2px; }
.brand-link strong { font-size: 14px; }
.brand-link small { color: #747b84; font-size: 10px; }
.back-link { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; border: 1px solid #cbd1cd; border-radius: 5px; color: #3e464e; background: #fff; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.back-link:hover { border-color: #8e9992; background: #f8f9f8; }

.transfer-main { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 64px; }
.transfer-intro { margin-bottom: 24px; }
.section-kicker { margin: 0 0 6px; color: #a72f3d; font-size: 10px; font-weight: 800; }
.transfer-intro h1 { margin: 0; font-size: 30px; line-height: 1.25; }
.transfer-intro > p:last-child { max-width: 720px; margin: 10px 0 0; color: #687078; font-size: 13px; line-height: 1.7; }

.transfer-tool { border: 1px solid #d9dddf; border-radius: 7px; background: #fff; overflow: hidden; }
.source-section, .transfer-section { padding: 24px; }
.transfer-section { border-top: 1px solid #e4e7e8; }
.section-heading { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 16px; }
.section-heading p { margin: 5px 0 0; color: #747b84; font-size: 11px; }
.step-number { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #3d464e; font-size: 11px; font-weight: 800; }

.inline-form { display: flex; align-items: end; gap: 10px; }
.field { min-width: 0; display: grid; gap: 6px; color: #505860; font-size: 11px; font-weight: 750; }
.field-grow { flex: 1 1 auto; }
input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cfd4d7; border-radius: 5px; color: #20252a; background: #fff; outline: none; }
input:focus { border-color: #6a9485; box-shadow: 0 0 0 3px rgba(23, 107, 81, .11); }
input:disabled { color: #8b9298; background: #f2f3f4; cursor: not-allowed; }
input[readonly] { color: #1f4d3f; background: #f4faf7; font-family: "Cascadia Code", Consolas, monospace; font-weight: 750; }

.button { min-height: 40px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-secondary { color: #343b42; border-color: #cbd1d4; background: #fff; }
.button-secondary:hover:not(:disabled) { border-color: #919ba1; background: #f8f9f9; }
.button-danger { color: #fff; border-color: #a72f3d; background: #a72f3d; }
.button-danger:hover:not(:disabled) { border-color: #8d2532; background: #8d2532; }
.button-primary { color: #fff; border-color: #176b51; background: #176b51; }
.button-primary:hover:not(:disabled) { border-color: #10543f; background: #10543f; }

.source-summary { min-height: 78px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #e2e5e6; border-bottom: 1px solid #e2e5e6; background: #f8f9f9; }
.source-summary > div { min-width: 0; padding: 15px 18px; border-right: 1px solid #e2e5e6; }
.source-summary > div:last-child { border-right: 0; }
.source-summary span { display: block; color: #7b8289; font-size: 10px; }
.source-summary strong { margin-top: 5px; display: block; overflow-wrap: anywhere; font-size: 15px; }
.source-summary b { color: #176b51; font-size: 20px; font-variant-numeric: tabular-nums; }

.feedback { margin: 0; padding: 12px 24px; border-top: 1px solid #e4e7e8; font-size: 11px; line-height: 1.5; }
.feedback[data-tone="loading"] { color: #725718; background: #fff9ec; }
.feedback[data-tone="error"] { color: #9e2b39; background: #fff1f3; }
.feedback[data-tone="success"] { color: #176b51; background: #eff8f4; }

.transfer-result { padding: 24px; border-top: 3px solid #176b51; background: #fbfcfb; }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.result-heading h2 { margin: 0; font-size: 18px; }
.result-uses { min-width: 70px; padding: 7px 9px; border: 1px solid #bcd6cc; border-radius: 5px; color: #176b51; background: #eff8f4; font-size: 12px; font-weight: 800; text-align: center; }
.result-code-field { margin-top: 18px; display: grid; gap: 6px; color: #505860; font-size: 11px; font-weight: 750; }
.result-actions { margin-top: 12px; display: flex; gap: 8px; }
.result-note { margin: 14px 0 0; color: #687078; font-size: 11px; line-height: 1.6; }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 44px)); padding: 11px 14px; border-radius: 6px; color: #fff; background: #202a25; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); font-size: 12px; z-index: 10; }

@media (max-width: 700px) {
  .transfer-header { padding: 9px 14px; }
  .transfer-main { width: min(100% - 20px, 960px); padding: 26px 0 40px; }
  .transfer-intro h1 { font-size: 24px; }
  .source-section, .transfer-section, .transfer-result { padding: 18px 14px; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form .button { width: 100%; }
  .source-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-summary > div:nth-child(2) { border-right: 0; }
  .source-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e2e5e6; }
  .result-actions { flex-direction: column; }
  .result-actions .button { width: 100%; }
}

/* Public-page temple gold theme. */
:root {
  --temple-ink: #24231f;
  --temple-gold: #d4a72c;
  --temple-gold-deep: #8c6416;
  --temple-gold-pale: #f3df9a;
  --temple-red: #8f2d20;
  --temple-red-deep: #712218;
  --temple-jade: #176b51;
  --temple-canvas: #f1f2ef;
  --temple-line: #dfcf9e;
}

body { color: var(--temple-ink); background: var(--temple-canvas); }

.transfer-header {
  border-top: 3px solid var(--temple-gold);
  border-bottom: 3px solid var(--temple-red);
  background: var(--temple-ink);
  box-shadow: inset 0 -1px 0 rgba(212, 167, 44, .72), 0 5px 18px rgba(36, 35, 31, .16);
}

.brand-link { color: var(--temple-gold-pale); }
.brand-link small { color: #d2c9b2; }
.brand-mark {
  border: 1px solid var(--temple-gold-pale);
  color: #fff4c9;
  background: var(--temple-red);
  box-shadow: 0 0 0 2px var(--temple-gold-deep), 0 0 16px rgba(212, 167, 44, .38);
  text-shadow: 0 0 8px rgba(255, 244, 201, .7);
}

.back-link { border-color: #8f762f; color: #f0d77f; background: #34322b; }
.back-link:hover { border-color: var(--temple-gold-pale); color: #fff4c9; background: #423d30; }
.section-kicker { color: var(--temple-gold-deep); }
.transfer-intro > p:last-child,
.section-heading p,
.result-note { color: #706d64; }

.transfer-tool {
  border-color: var(--temple-line);
  border-top: 2px solid var(--temple-gold);
  background: #fffefd;
  box-shadow: 0 5px 18px rgba(73, 59, 27, .08), inset 0 1px 0 #fff8df;
}

.transfer-section,
.feedback { border-top-color: var(--temple-line); }
.step-number { border: 1px solid var(--temple-gold); color: #fff8df; background: var(--temple-red); }

input { border-color: #cfc6ad; color: var(--temple-ink); background: #fffef9; }
input:focus { border-color: var(--temple-gold-deep); box-shadow: 0 0 0 3px rgba(212, 167, 44, .17); }
input[readonly] { color: var(--temple-jade); background: #f4faf7; }

.button-secondary { border-color: #cbbd94; color: #4d4533; background: #fffef9; }
.button-secondary:hover:not(:disabled) { border-color: var(--temple-gold-deep); background: #fff8e3; }
.button-danger { border-color: var(--temple-gold); color: #fff8df; background: var(--temple-red); }
.button-danger:hover:not(:disabled) { border-color: var(--temple-gold-deep); background: var(--temple-red-deep); }
.button-primary { border-color: var(--temple-gold-deep); color: var(--temple-ink); background: var(--temple-gold); }
.button-primary:hover:not(:disabled) { border-color: #6e4d0d; color: #171611; background: #e0b83e; }

.source-summary {
  border-top-color: var(--temple-line);
  border-bottom-color: var(--temple-line);
  background: #fff9e9;
}

.source-summary > div { border-right-color: var(--temple-line); }
.source-summary b { color: var(--temple-jade); }
.transfer-result { border-top-color: var(--temple-gold); background: #fffdf7; }
.result-uses { border-color: #9bc4b5; color: var(--temple-jade); background: #f2f8f5; }
.toast { border: 1px solid var(--temple-gold); color: #fff2bd; background: var(--temple-ink); }

@media (max-width: 700px) {
  .source-summary > div:nth-child(-n+2) { border-bottom-color: var(--temple-line); }
}
