:root {
  --ink:#302b58; --muted:#817c9e; --line:#e8e2f4; --card:#fff;
  --pri:#6455c7; --pri2:#9971d6; --mint:#52b39d; --pink:#ed9fc1; --sun:#f2bb68;
  --shadow:0 12px 34px rgba(83,63,149,.08); --r:22px;
}
html { scroll-behavior:smooth; }
body { background:linear-gradient(160deg,#f8f6ff,#f6f4ff 52%,#fff7fb); color:var(--ink); font-size:14px; }
body::before { opacity:.32; background-image:radial-gradient(#c9bcea .8px, transparent .8px); background-size:26px 26px; mask-image:linear-gradient(#000, transparent 55%); }
a { color:var(--pri); }
a:hover { color:#4c3eb1; }
header { padding:13px max(24px, calc((100vw - 1220px)/2)); min-height:78px; background:#fffefdf2; border-bottom:1px solid #ece7f6; box-shadow:none; gap:18px; }
.brand { gap:12px; flex-shrink:0; }
.brand-icon { width:42px; height:42px; display:grid; place-items:center; background:#f0ecff; border-radius:14px; overflow:hidden; }
.brand-icon img { width:38px; height:38px; object-fit:contain; filter:none; }
.brand b { color:var(--ink); background:none; font-size:23px; font-weight:850; letter-spacing:-1.1px; line-height:1.1; }
.brand-dot { color:#aa82ec; }
.brand small { color:#9790ad; font-size:10px; letter-spacing:.03em; margin-top:0; font-weight:400; }
.header-label { border-left:1px solid #e7e0f1; padding-left:18px; color:#786e9c; font-size:13px; white-space:nowrap; }
header a, header button.link { color:#70678d; font-weight:600; }
header a:hover, header button.link:hover { color:var(--pri); background:#f2eeff; }
.who { border-left:1px solid #ebe5f3; padding-left:18px; gap:9px; white-space:nowrap; }
.who .av { width:32px; height:32px; background:#ebe4ff; color:#6655b4; box-shadow:none; }
main { max-width:1220px; padding:0 24px; margin:32px auto 64px; }
.hero { background:linear-gradient(112deg,#ddd6ff 0%,#e9ddff 52%,#ffdeed 100%); color:var(--ink); border:1px solid #e4d8f9; box-shadow:0 16px 36px #8c73d014; border-radius:28px; min-height:278px; margin-bottom:18px; padding:38px 48px; gap:20px; isolation:isolate; }
.hero::after { width:470px; height:470px; right:-120px; top:-150px; background:radial-gradient(circle,#ffcfe477 0%,#ffffff00 70%); z-index:-1; }
.hero-copy { flex:1; position:relative; z-index:2; }
.eyebrow, .section-kicker { color:#8570cc; font-size:10px; font-weight:800; letter-spacing:.2em; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; background:#ffffffa8; border:1px solid #fff; padding:7px 12px; border-radius:99px; }
.eyebrow-spark { font-size:15px; color:#e7a0bf; line-height:1; }
.hero h1 { font-size:clamp(30px,3.3vw,44px); line-height:1.25; letter-spacing:-.04em; margin:18px 0 10px; }
.hero p { color:#6e668c; opacity:1; font-size:14px; line-height:1.9; margin:0; }
.hero-link { display:inline-flex; align-items:center; gap:24px; border-radius:10px; background:#6b58cf; padding:11px 17px; color:#fff; margin-top:24px; font-size:13px; }
.hero-link:hover { color:#fff; background:#5542b5; }
.hero-link span { font-size:17px; line-height:1; }
.hero-art { flex:none; width:260px; height:228px; position:relative; align-self:flex-end; margin:-20px 12px -38px 0; display:grid; place-items:center; }
.hero-art::before { content:""; position:absolute; width:235px; height:235px; border-radius:50%; background:#dcd2f7b8; bottom:-65px; left:10px; z-index:-1; }
.hero-art img { width:225px; height:238px; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 12px 13px #6953aa25); animation:bob 4s ease-in-out infinite; }
.art-orbit { position:absolute; width:18px; height:18px; background:#ffcf82; border-radius:50%; top:25px; left:15px; }
.orbit-two { width:11px; height:11px; background:#c6b2ee; left:auto; right:3px; top:75px; }
.art-star { position:absolute; color:#edbf75; font-size:30px; top:3px; right:12px; }
.hero-month { align-self:flex-start; position:relative; z-index:2; display:flex; flex-direction:column; gap:6px; min-width:143px; font-size:11px; color:#706393; font-weight:700; }
.hero-month select { background:#fffdfa; border:1px solid #e5dff2; border-radius:10px; color:var(--ink); font-size:13px; min-width:140px; }
.hint { border:1px solid #eedfc5; background:#fff9ea; color:#805e35; border-radius:12px; box-shadow:none; }
.deadline-hint { margin-bottom:36px; padding:12px 18px; }
#deadline::before { content:"◷"; font-size:20px; line-height:1; color:#c89a54; }
.section-intro { display:flex; justify-content:space-between; align-items:center; margin:0 2px 18px; min-height:64px; }
.section-intro h2 { margin:4px 0 2px; font-size:23px; line-height:1.3; letter-spacing:-.02em; }
.section-intro p { margin:0; font-size:12px; color:var(--muted); }
.section-intro img { width:70px; height:70px; object-fit:contain; margin-right:15px; }
.workspace-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(330px,1fr); gap:20px; align-items:start; }
.card { background:#fff; border:1px solid #eee8f7; box-shadow:var(--shadow); border-radius:20px; padding:24px; margin-bottom:20px; }
.card-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:20px; }
.card h2 { font-size:19px; margin:4px 0 0; letter-spacing:-.02em; }
.card h2::before { display:none; }
.step-chip { padding:5px 10px; border-radius:99px; background:#f2eeff; color:#7f6abd; font-size:11px; white-space:nowrap; font-weight:600; }
.row { gap:14px; }
.claim-card .row > label { flex:1 1 170px; min-width:0; }
.row > label { color:#62587f; font-size:12px; font-weight:650; align-self:stretch; }
input, select, textarea { border:1px solid #e2daf0; border-radius:10px; background:#fdfcff; min-height:41px; color:var(--ink); }
input:focus, select:focus, textarea:focus { border-color:#a18cde; box-shadow:0 0 0 3px #9a82d82a; }
input[type=file] { background:#fbf9ff; border:1px dashed #c9b9e8; width:100%; font-size:11px; min-height:51px; }
textarea { min-height:84px; resize:vertical; }
.purpose-label { display:flex; flex-direction:column; gap:7px; color:#62587f; font-size:12px; font-weight:650; }
.purpose-label span { color:#a39bb8; font-size:11px; font-weight:400; }
.upload-row { margin-top:18px; }
.form-tip { font-size:11px; color:#75679e; background:#f5f1ff; border-radius:10px; padding:10px 12px; margin:18px 0; }
button.btn { background:#6b58cf; box-shadow:none; border-radius:10px; padding:10px 17px; font-size:12px; }
button.btn:hover:not(:disabled) { background:#5542b5; }
button.btn:active { transform:translateY(1px); box-shadow:none; }
button.btn.ghost { background:#fff; border:1px solid #dfd6f1; box-shadow:none; color:#6555b1; }
button.btn.ghost:hover:not(:disabled) { background:#f6f2ff; }
button.btn.sun { color:#5b4324; background:#f5ce82; box-shadow:none; }
button.btn.sun:hover:not(:disabled) { background:#ebbc63; }
.submit-btn { display:flex; align-items:center; justify-content:space-between; min-width:155px; }
.submit-btn span { font-size:16px; }
.records-card { min-height:360px; }
.card-mascot { width:52px; height:52px; object-fit:contain; }
.records-card #ledger { background:#fff8e9; color:#9b713a; border-radius:8px; padding:8px 10px; margin-bottom:10px; }
.records-card #ledger:empty { display:none; }
.records-card #claims { overflow-x:auto; }
.records-card .empty { margin:25px 0 5px; border:1px dashed #e0d6f2; border-radius:14px; background:#fcfaff; padding:22px 8px; font-size:12px; }
.records-card .empty img { width:56px; height:56px; object-fit:contain; }
table { font-size:12px; }
th { background:#f5f1fc; color:#746793; }
th, td { border-bottom:1px solid #ece6f5; padding:10px 8px; }
th:first-child { border-radius:8px 0 0 8px; }
th:last-child { border-radius:0 8px 8px 0; }
tr:hover td { background:#faf7ff; }
.tag { background:#f1edff; color:#705ac0; }
.tag.ok { color:#217353; background:#e5f5e9; }
.tag.warn { color:#9f6c25; background:#fff2d9; }
.tag.err { color:#b3484d; background:#fce9e7; }
.stat { background:#fff; border:1px solid #eee8f7; box-shadow:var(--shadow); }
.stat b, .stat:nth-child(2) b, .stat:nth-child(3) b, .stat:nth-child(4) b { color:#7460cf; }
.stat:nth-child(2) b { color:#c58d50; }
.stat:nth-child(3) b { color:#d482aa; }
.stat:nth-child(4) b { color:#aa79d5; }
button.btn.ok { background:#3e9874; box-shadow:none; }
button.btn.ok:hover:not(:disabled) { background:#2f795d; }
button.btn.err { background:#cd7771; box-shadow:none; }
button.btn.err:hover:not(:disabled) { background:#b55e58; }
.tabs { border-bottom:1px solid #e9e1f4; gap:4px; padding-bottom:10px; }
.tabs button { border:0; box-shadow:none; background:transparent; color:#81769f; border-radius:9px; font-size:12px; padding:10px 15px; }
.tabs button.on { background:#ece5ff; color:#6551b9; box-shadow:none; }
.tabs button:hover:not(.on) { background:#f5f0ff; }
.effort-card { padding:27px 30px; margin-top:8px; }
.effort-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #eee8f7; padding-bottom:18px; margin-bottom:14px; }
.effort-intro p { margin:9px 0 0; max-width:680px; line-height:1.7; }
.effort-intro img { width:68px; height:68px; object-fit:contain; }
.effort-card #saveEffort { margin-top:18px; }
footer { border-top:1px solid #e9e2f3; margin-top:48px; padding:24px 2px; color:#a39bb6; font-size:11px; }
footer span { color:#a487d9; }
.footer-right { float:right; color:#a39bb6; }
.admin-hero { min-height:225px; }
.admin-hero .hero-art { width:210px; height:188px; margin-bottom:-39px; }
.admin-hero .hero-art img { width:190px; height:202px; }
.admin-hero .hero-art::before { width:190px; height:190px; }
.hero-process { display:inline-flex; gap:12px; margin-top:20px; font-size:12px; color:#665497; background:#ffffffb8; border:1px solid #fff; padding:7px 13px; border-radius:99px; }
.hero-process b { font-weight:400; color:#b4a3d5; }
.control-card { margin-bottom:34px; }
.control-card .row { align-items:center; }
.control-card .row > label { min-width:130px; }
.control-card .row > label input { margin-top:5px; }
.control-card #runStatus { display:inline-flex; align-items:center; }
.admin-intro { margin-bottom:15px; }
.login-page { background:#f3efff; }
.login-page::before { display:none; }
.login-page .login { max-width:980px; min-height:550px; margin:7vh auto 0; display:grid; grid-template-columns:1fr 1fr; align-items:stretch; padding:0 20px; text-align:left; position:relative; }
.login-showcase { background:linear-gradient(145deg,#e4dcff,#eee5ff 65%,#fce7f2); border-radius:24px 0 0 24px; padding:55px 50px; position:relative; overflow:hidden; }
.login-showcase::after { content:""; position:absolute; width:350px; height:350px; border-radius:50%; background:#ffffff50; right:-100px; bottom:-160px; }
.login-showcase h1 { font-size:clamp(29px,3vw,40px); letter-spacing:-.05em; line-height:1.4; margin:28px 0 14px; background:none; color:var(--ink); }
.login-showcase h1 span { color:#795cc8; }
.login-showcase p { color:#746991; font-size:13px; line-height:2; }
.login-showcase > img { position:absolute; bottom:-25px; right:28px; width:265px; height:270px; object-fit:contain; filter:drop-shadow(0 12px 14px #7354af30); z-index:1; }
.login-panel { border:1px solid #ebe4f5; background:#fff; border-radius:0 24px 24px 0; padding:54px 55px; display:flex; flex-direction:column; justify-content:center; box-shadow:var(--shadow); }
.login-brand { display:flex; align-items:center; gap:10px; margin-bottom:55px; }
.login-brand b { font-size:23px; letter-spacing:-1px; }
.login-panel h2 { font-size:28px; margin:12px 0 5px; }
.login-panel > p { color:var(--muted); font-size:12px; }
.login-action { display:flex; justify-content:space-between; align-items:center; background:#6b58cf; color:#fff; padding:14px 17px; border-radius:10px; margin-top:24px; font-size:14px; }
.login-action:hover { color:#fff; background:#5542b5; }
.login-action span { font-size:19px; }
.login-foot { border-top:1px solid #eee8f7; margin-top:65px; padding-top:17px; color:#a8a0b9; font-size:11px; }
.login-page footer { grid-column:1/-1; border:0; text-align:center; margin:14px 0; padding:0; }
@media (max-width:900px) {
  .workspace-grid { grid-template-columns:1fr; }
  .records-card { min-height:240px; }
  .hero-art { width:190px; }
  .hero-art img { width:190px; }
  .hero-month { align-self:flex-end; }
}
@media (max-width:640px) {
  header { padding:10px 16px; min-height:66px; gap:8px; }
  .brand-icon { width:36px; height:36px; }
  .brand-icon img { width:34px; height:34px; }
  .brand b { font-size:20px; }
  .header-label { display:none; }
  .who { padding-left:8px; }
  .who #who { display:none; }
  header a, header button.link { font-size:11px; padding:5px; }
  main { margin:16px auto 40px; padding:0 14px; }
  .hero { padding:27px 24px 19px; min-height:280px; align-items:flex-start; flex-wrap:wrap; border-radius:20px; }
  .hero-copy { flex:1 1 100%; }
  .hero h1 { font-size:30px; margin:14px 0 6px; }
  .hero p { font-size:12px; max-width:240px; }
  .hero-link { margin-top:18px; padding:9px 12px; }
  .hero-art { position:absolute; width:132px; height:145px; right:10px; bottom:-15px; margin:0; opacity:.95; }
  .hero-art img { width:130px; height:145px; }
  .hero-art::before { width:135px; height:135px; bottom:-35px; }
  .hero-month { align-self:auto; margin-top:12px; min-width:125px; }
  .hero-month select { min-width:120px; }
  .deadline-hint { margin-bottom:26px; font-size:12px; }
  .section-intro h2 { font-size:20px; }
  .section-intro img { width:56px; height:56px; }
  .card { padding:19px; overflow-x:auto; }
  .claim-card .row > label { flex-basis:100%; }
  .effort-card { padding:20px; }
  .effort-intro img { width:52px; height:52px; }
  .admin-hero .hero-art { bottom:-14px; right:7px; width:120px; }
  .admin-hero .hero-art img { width:120px; }
  .hero-process { font-size:10px; gap:5px; max-width:100%; }
  .control-card .row > label { min-width:100%; }
  .login-page .login { display:flex; flex-direction:column; margin:0; padding:0; }
  .login-showcase { min-height:360px; border-radius:0 0 22px 22px; padding:28px 30px; }
  .login-showcase h1 { font-size:30px; margin:18px 0 9px; }
  .login-showcase > img { width:165px; height:170px; bottom:-13px; right:14px; }
  .login-showcase p { max-width:220px; font-size:12px; }
  .login-panel { border-radius:18px; margin:-16px 16px 0; z-index:2; padding:27px; }
  .login-brand { margin-bottom:28px; }
  .login-foot { margin-top:28px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .hero-art img { animation:none; }
}
