:root { font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #17231d; background: #f3f5f4; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; padding: 36px 20px 80px; }
.landing, .content { width: min(920px, 100%); margin: 0 auto; }
.landing { display: flex; flex-direction: column; align-items: center; text-align: center; }
.narrow { width: min(680px, 100%); }
.logo { width: 128px; height: 128px; border-radius: 50%; box-shadow: 0 12px 30px rgba(22, 65, 43, .12); }
h1 { margin: 24px 0 10px; font-size: clamp(30px, 5vw, 46px); }
h2 { margin: 0 0 18px; font-size: 20px; }
.lead { max-width: 620px; margin: 0 0 28px; color: #6b7770; line-height: 1.7; }
.card { margin-top: 20px; padding: 26px; background: #fff; border: 1px solid #e1e7e3; border-radius: 16px; box-shadow: 0 8px 26px rgba(24, 55, 38, .045); }
.notice { width: 100%; text-align: left; }
.notice p { margin: 14px 0; color: #59665f; line-height: 1.7; }
.primary { width: 100%; margin-top: 24px; padding: 15px 24px; color: #fff; background: #176441; border: 0; border-radius: 12px; font-weight: 700; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.back { padding: 8px 0; color: #52645a; background: transparent; border: 0; }
.form-card { display: grid; gap: 18px; }
.tabs { display: flex; gap: 10px; }
.tabs button { flex: 1; padding: 12px; color: #66736c; background: #f1f4f2; border: 1px solid transparent; border-radius: 10px; }
.tabs button.active { color: #174b32; background: #e5f1ea; border-color: #4e896c; font-weight: 700; }
.file-picker { padding: 18px; text-align: center; color: #174b32; background: #edf5f0; border: 1px dashed #77a18b; border-radius: 12px; cursor: pointer; }
.file-picker input { display: none; }
.rate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rate-grid label { display: grid; gap: 8px; color: #66736c; font-size: 14px; }
.rate-grid input { width: 100%; padding: 12px; border: 1px solid #dce3df; border-radius: 9px; }
.success { color: #167048; }
.error { padding: 12px; color: #903f3f; background: #fff0f0; border-radius: 8px; }
.hero { display: grid; gap: 12px; padding: 38px; color: #fff; border-radius: 20px; }
.hero.positive { background: linear-gradient(135deg, #672929, #b54141); }
.hero.negative { background: linear-gradient(135deg, #103426, #18704a); }
.hero strong { font-size: clamp(48px, 9vw, 76px); }
.hero small { opacity: .7; }
.mode { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mode .tabs { width: min(420px, 70%); }
.year-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.year-switch .tabs { width: min(780px, 70%); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.year-switch .tabs button { min-width: 0; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.summary div { display: grid; gap: 9px; color: #758078; }
.summary b { color: #173d2b; font-size: 20px; }
.row, .stock-head, .match { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid #edf0ee; }
.stock-head { width: 100%; color: inherit; background: transparent; border-right: 0; border-bottom: 0; border-left: 0; text-align: left; }
.matches { padding: 4px 16px 14px; color: #69766f; background: #f7faf8; }
.match { font-size: 14px; }
.export { margin-bottom: 24px; }
.adsense-card { width: 100%; min-height: 120px; text-align: left; }
.ad-label { display: block; margin-bottom: 10px; color: #9aa39e; font-size: 12px; }
.feedback { position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom) + 24px); padding: 12px 20px; color: #fff; text-decoration: none; background: rgba(23,100,65,.94); border: 0; border-radius: 999px; box-shadow: 0 8px 24px rgba(18,66,44,.22); z-index: 20; }
.modal-mask { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8, 22, 16, .46); z-index: 40; }
.feedback-panel { position: relative; width: min(460px, 100%); padding: 28px; text-align: left; background: #fff; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.feedback-panel h2 { margin-bottom: 12px; }
.feedback-panel p { margin: 0 0 18px; color: #66736c; line-height: 1.7; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; color: #66736c; background: #f1f4f2; border: 0; border-radius: 50%; font-size: 22px; line-height: 1; }
.qr-box { display: grid; justify-items: center; gap: 10px; margin: 0 0 18px; padding: 16px; background: #f7faf8; border: 1px solid #dfe6e2; border-radius: 14px; }
.qr-box img { width: 180px; height: 180px; object-fit: contain; border-radius: 10px; }
.qr-box span { color: #52645a; font-size: 14px; }
.email-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; background: #f7faf8; border: 1px solid #dfe6e2; border-radius: 12px; }
.email-box span { font-weight: 800; word-break: break-all; }
.email-box button { flex: 0 0 auto; padding: 9px 12px; color: #176441; background: #e5f1ea; border: 1px solid #b8d0c3; border-radius: 9px; font-weight: 700; }
.mail-link { display: block; margin-top: 14px; padding: 12px; color: #fff; text-align: center; text-decoration: none; background: #176441; border-radius: 10px; font-weight: 700; }
.site-footer { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 34px auto 0; color: #7a8580; font-size: 14px; }
.site-footer a { color: #52645a; text-decoration: none; }
.site-footer a:hover { color: #176441; text-decoration: underline; }
.legal-page { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 80px; line-height: 1.8; }
.legal-page h1 { margin: 0 0 18px; }
.legal-page h2 { margin: 30px 0 10px; }
.legal-page p { color: #52645a; }
.legal-page a { color: #176441; font-weight: 700; }
@media (max-width: 600px) {
  .shell { padding: 24px 14px 76px; }
  .card { padding: 20px; }
  .rate-grid, .summary { grid-template-columns: 1fr; }
  .mode, .year-switch { align-items: stretch; flex-direction: column; }
  .mode .tabs { width: 100%; }
  .year-switch .tabs { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 28px 24px; }
}
