
:root{
  --bg:#f4f5f9;
  --card:#ffffff;
  --text:#1f2430;
  --muted:#70798b;
  --line:#e7e9f0;
  --accent:#f4c531;
  --accent-dark:#dba800;
  --shadow:0 8px 24px rgba(18, 25, 38, .06);
  --radius:20px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
body{min-height:100vh}
a{text-decoration:none;color:inherit}
button{font:inherit}
.app-shell{min-height:100vh}
.app-main{max-width:430px;margin:0 auto;padding:16px 14px 96px}
.app-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.brand-wrap{display:flex;flex-direction:column;gap:4px}
.app-badge{font-size:22px;font-weight:800;color:#20242f}
.app-sub{font-size:12px;color:var(--muted)}
.profile-pill{font-size:12px;color:#7b6a17;background:#fff4c5;border:1px solid #f3df8d;padding:8px 12px;border-radius:999px;font-weight:700}

.card,.hero-card,.stats-card,.question-card{
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
}
.hero-card{padding:20px;margin-bottom:14px}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hero-title{font-size:24px;line-height:1.1;font-weight:800;margin:0}
.hero-copy{margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.card{padding:18px;margin-bottom:14px}
.section-title{font-size:17px;font-weight:800;margin:0 0 12px}
.muted{color:var(--muted);font-size:14px;line-height:1.5}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}
.stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow)}
.stat-label{font-size:12px;color:var(--muted)}
.stat-value{font-size:22px;font-weight:800;color:#20242f;margin-top:8px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:100%;min-height:52px;border:0;border-radius:16px;
  background:var(--accent);color:#1d1d1d;font-weight:800;
  box-shadow:0 8px 18px rgba(244,197,49,.26);cursor:pointer;
  transition:transform .08s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active{transform:scale(.985)}
.btn:hover{background:var(--accent-dark)}
.btn.secondary{
  background:#fff;border:1px solid var(--line);box-shadow:none;color:#303849;
}
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.quick-card{
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;
  box-shadow:var(--shadow)
}
.quick-card i{font-size:18px;color:#d9a400;margin-bottom:10px;display:block}
.quick-card span{display:block;font-weight:800;margin-bottom:6px}
.quick-card small{display:block;color:var(--muted);line-height:1.35}
.badge-row{display:flex;gap:8px;flex-wrap:wrap}
.badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:#f7f8fc;border:1px solid var(--line);font-size:12px;color:#5d677a;font-weight:700}
textarea{
  width:100%;min-height:170px;padding:14px;border-radius:16px;
  border:1px solid var(--line);background:#fcfcfe;color:var(--text);resize:vertical;
}
textarea:focus{outline:none;border-color:#efd76a;box-shadow:0 0 0 4px rgba(244,197,49,.14)}
.form-stack>*+*{margin-top:12px}
.counter-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.counter-chip{font-size:12px;padding:8px 10px;border-radius:999px;background:#fff8db;border:1px solid #f4e08e;color:#7b6711;font-weight:700}
.timeline-list{display:grid;gap:10px}
.timeline-item{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;
}
.timeline-left{display:flex;gap:12px;align-items:flex-start}
.timeline-icon{
  width:38px;height:38px;border-radius:12px;background:#fff8db;color:#c49300;
  display:flex;align-items:center;justify-content:center;flex:0 0 38px
}
.timeline-title{font-weight:800;font-size:14px}
.timeline-sub{font-size:12px;color:var(--muted);margin-top:4px}
.timeline-amount{font-weight:800;font-size:15px}
.profile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.profile-card{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.profile-label{font-size:12px;color:var(--muted);margin-bottom:8px}
.profile-value{font-size:14px;line-height:1.45;font-weight:700}
.answer-card{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.answer-card+.answer-card{margin-top:10px}
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);backdrop-filter:blur(10px);
}
.bottom-nav-inner{max-width:430px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr)}
.bottom-nav a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:6px;padding:10px 6px 14px;color:#687286;font-size:12px;font-weight:700;
}
.bottom-nav a i{font-size:18px}
.bottom-nav a.active{color:#1f2430}
.bottom-nav a.active i{color:#d39b00}
.progress-wrap{display:grid;place-items:center;margin:14px 0 8px}
.progress-ring{position:relative;width:152px;height:152px}
.progress-ring svg{transform:rotate(-90deg)}
.progress-center{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center
}
.progress-time{font-size:22px;font-weight:800}
.progress-sub{font-size:12px;color:var(--muted);margin-top:4px}
.hero-cta{margin-top:16px}
.submit-overlay{
  position:fixed;inset:0;background:rgba(12,14,20,.4);display:none;align-items:center;justify-content:center;padding:18px;z-index:50;
}
.submit-modal{
  width:100%;max-width:360px;background:#fff;border-radius:24px;border:1px solid var(--line);box-shadow:0 14px 32px rgba(0,0,0,.14);padding:22px;text-align:center
}
.submit-check{
  width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#fff8db;color:#d39b00;font-size:24px;margin:0 auto 14px
}
.empty-state{text-align:center;padding:12px 4px}
@media (max-width:360px){
  .hero-title{font-size:21px}
  .progress-ring{width:138px;height:138px}
  .progress-time{font-size:20px}
}
