:root {
  --fs-bg: #f2f3f5;
  --fs-card: #ffffff;
  --fs-text: #1c1c1e;
  --fs-sub: #8e8e93;
  --fs-blue: #2f6bff;
  --fs-line: #e6e8ec;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--fs-bg); color: var(--fs-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}
body { padding: 28px 18px 40px; }
.fs-page { width: 100%; max-width: 420px; margin: 0 auto; }
.fs-hero { text-align: center; margin-bottom: 18px; }
.fs-logo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.fs-title { margin: 14px 0 6px; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.fs-meta { margin: 0; color: var(--fs-sub); font-size: 14px; }
.fs-notice {
  background: #fff8e8; border: 1px solid #ffe2a8; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px; color: #8a5a00; font-size: 13px;
}
.fs-notice p { margin: 0 0 4px; }
.fs-notice p:last-child { margin-bottom: 0; }
.fs-card {
  background: var(--fs-card); border-radius: 22px; padding: 16px;
  box-shadow: 0 10px 30px rgba(16,24,40,.05);
}
.fs-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: #f1f2f4; border-radius: 12px; padding: 4px; margin-bottom: 16px;
}
.fs-tab {
  border: 0; background: transparent; border-radius: 10px; height: 36px;
  font-size: 14px; font-weight: 600; color: #6b7280;
}
.fs-tab.is-active { background: #fff; color: var(--fs-text); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.fs-panel { display: none; }
.fs-panel.is-active { display: block; }
.fs-label { display: block; margin: 12px 0 8px; font-size: 14px; font-weight: 600; }
.fs-label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.fs-label-row .fs-label { margin: 0; }
.fs-link { color: var(--fs-blue); text-decoration: none; font-size: 13px; font-weight: 600; }
.fs-input, .fs-file {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--fs-line);
  padding: 0 14px; font-size: 15px; background: #f7f8fa; outline: none;
}
.fs-input-readonly { color: #9aa0a6; }
.fs-input-accent { background: #fff; border-color: #bcd0ff; box-shadow: 0 0 0 3px rgba(47,107,255,.08); }
.fs-file { padding-top: 10px; background: #fff; height: auto; min-height: 46px; }
.fs-hint { margin: 8px 0 0; color: var(--fs-sub); font-size: 12px; }
.fs-status { margin: 12px 0 0; font-size: 12px; color: #3b82f6; }
.fs-btn {
  margin-top: 18px; width: 100%; height: 50px; border: 0; border-radius: 14px;
  background: var(--fs-blue); color: #fff; font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.fs-btn:disabled { opacity: .6; }
.fs-btn-icon { display: inline-flex; }
.fs-foot-hint { margin: 10px 0 0; text-align: center; color: var(--fs-sub); font-size: 12px; }
.fs-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff1f0; color: #cf1322; font-size: 13px; }
.fs-msg.is-ok { background: #f0fff4; color: #237804; }
.fs-footer { margin-top: 28px; text-align: center; }
.fs-footer a { color: #6b7280; text-decoration: none; font-size: 14px; }
.fs-loading {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; z-index: 99;
}
.fs-loading[hidden] { display: none !important; }
.fs-loading-box { width: 160px; background: #fff; border-radius: 14px; padding: 22px 16px; text-align: center; }
.fs-spinner {
  width: 28px; height: 28px; margin: 0 auto 12px;
  border: 3px solid #dbe4ff; border-top-color: var(--fs-blue); border-radius: 50%;
  animation: fs-spin .8s linear infinite;
}
@keyframes fs-spin { to { transform: rotate(360deg); } }
.fs-loading-box p { margin: 0; font-size: 13px; color: #4b5563; }
