:root{color-scheme:light;--paper:#fff;--canvas:#fbfaf8;--ink:#26221f;--muted:#887e76;--line:#eee9e3;--red:#e52b0b;--orange:#ffaa31;--soft:#fff2e2;--soft-red:#fff3ee}
*{box-sizing:border-box}html{background:var(--paper);scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.015em}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}.hidden{display:none!important}.app-shell{max-width:900px;min-height:100vh;margin:auto;padding:0 24px calc(30px + env(safe-area-inset-bottom,0px));background:var(--paper);box-shadow:0 8px 48px rgba(42,24,8,.05)}
.topbar{display:flex;align-items:center;gap:12px;min-height:82px;border-bottom:1px solid var(--line)}.brand-mark{width:45px;height:45px;flex:none;object-fit:cover;border-radius:12px}.brand-copy{display:flex;flex-direction:column;gap:2px}.brand-copy strong{font-size:14px;font-weight:850;letter-spacing:.075em}.brand-copy span{font-size:12px;color:var(--muted)}.private-badge{display:flex;align-items:center;gap:7px;margin-left:auto;padding:7px 10px;border:1px solid var(--line);border-radius:100px;color:#8d837a;font-size:10px;font-weight:750;letter-spacing:.1em}.private-badge i{width:6px;height:6px;border-radius:50%;background:#58aa62}
.hero{position:relative;display:flex;align-items:center;min-height:258px;margin:24px 0 20px;padding:29px 32px;overflow:hidden;border:1px solid #ffe5c5;border-radius:25px;background:linear-gradient(112deg,#fff9f1 0%,#fff4e2 65%,#fff0d8 100%)}.hero-art{position:absolute;right:-65px;bottom:-145px;width:340px;height:340px;border:34px solid rgba(255,171,54,.27);border-radius:50%}.hero-art span:first-child{position:absolute;left:-45px;top:95px;width:220px;height:90px;border-top:29px solid rgba(229,43,11,.12);border-radius:50%;transform:rotate(-33deg)}.hero-art span:last-child{position:absolute;right:20px;top:-115px;width:100px;height:420px;border-left:26px solid rgba(255,171,54,.20);transform:rotate(29deg)}.hero-content{position:relative;z-index:1}.eyebrow,.overline{margin:0;color:var(--red);font-size:10px;font-weight:850;letter-spacing:.17em}.hero h1{margin:14px 0 14px;font-size:clamp(38px,7vw,63px);font-weight:820;line-height:1.04;letter-spacing:-.065em}.hero h1 em{font-style:normal;color:var(--red)}.hero-content>p:last-child{margin:0;color:#786e65;font-size:13px}.hero-stamp{position:absolute;right:48px;bottom:46px;display:grid;place-items:center;width:72px;height:72px;border-radius:21px;background:var(--red);color:var(--orange);font-size:44px;font-weight:900;letter-spacing:-.1em;box-shadow:0 14px 34px rgba(218,55,10,.18)}.hero-stamp span{position:absolute;right:10px;top:3px;font-size:18px}
.view-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:27px;padding:5px;background:#f8f5f1;border:1px solid #f2ede7;border-radius:16px}.nav-item{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:0;border-radius:12px;background:transparent;color:#8b8178;font-size:13px;font-weight:700;transition:background .18s,color .18s,box-shadow .18s}.nav-item.active{background:#fff;color:var(--red);box-shadow:0 3px 11px rgba(58,40,19,.08)}.nav-icon{font-size:19px;font-weight:500}
.context-panel{padding:19px 21px 16px;border:1px solid var(--line);border-radius:21px;background:#fff;box-shadow:0 7px 25px rgba(33,20,6,.035)}.context-title{display:flex;align-items:center;gap:8px;margin-bottom:17px}.context-title strong{font-size:13px}.context-title>span:last-child{margin-left:auto;color:#aa9e93;font-size:10px;letter-spacing:.06em}.orange-dot{width:8px;height:8px;border-radius:50%;background:var(--orange)}.filters{display:grid;grid-template-columns:1fr 1fr;gap:11px}.select-field{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:11px 13px 10px;border:1px solid #ece6df;border-radius:13px;background:#fcfbf9}.select-field span{font-size:10px;color:var(--muted)}.select-field select{appearance:none;min-width:0;width:100%;padding:0 21px 0 0;border:0;outline:none;background:transparent;color:var(--ink);font-size:14px;font-weight:700;text-overflow:ellipsis}.select-field select:disabled{opacity:.58}.select-field b{position:absolute;right:12px;bottom:9px;color:var(--red);font-weight:600;pointer-events:none}.primary-button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;margin-top:13px;padding:0 16px;border:0;border-radius:12px;background:var(--red);color:#fff;font-size:13px;font-weight:760;box-shadow:0 7px 18px rgba(229,43,11,.15);transition:transform .16s,background .16s}.primary-button:not(:disabled):active{transform:scale(.99)}.primary-button:not(:disabled):hover{background:#c9250a}.primary-button span:last-child{font-size:19px;font-weight:400}.status{min-height:17px;margin:11px 2px 0;font-size:11px;line-height:1.4;color:#988b80}.status.error{color:#c4281a}
.view{padding:33px 0 25px}.section-heading{display:flex;align-items:end;gap:18px;margin-bottom:19px}.section-heading h2{margin:7px 0 0;font-size:26px;line-height:1.1;letter-spacing:-.045em}.heading-rule{height:1px;flex:1;margin-bottom:5px;background:var(--line)}.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.metric-card{display:flex;flex-direction:column;min-height:148px;padding:15px;border:1px solid var(--line);border-radius:17px;background:#fff}.metric-card-primary{border-color:#fbd2c4;background:linear-gradient(145deg,#fff1e9,#fffaf6)}.metric-card-top{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;font-weight:710;color:#695e55}.metric-symbol{font-size:18px;color:var(--red)}.metric-card strong{margin-top:auto;overflow-wrap:anywhere;font-size:clamp(16px,2.1vw,22px);letter-spacing:-.05em;line-height:1.12;font-variant-numeric:tabular-nums}.metric-card-primary strong{color:var(--red)}.metric-card small{margin-top:6px;color:#9b9086;font-size:10px;line-height:1.3}.achievement-card{margin-top:13px;padding:15px 17px 17px;border:1px solid var(--line);border-radius:16px}.achievement-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#6f645d}.achievement-label strong{font-size:15px;color:var(--red);font-variant-numeric:tabular-nums}.completion-track{height:8px;margin-top:11px;overflow:hidden;border-radius:20px;background:#f4eee7}.completion-track span{display:block;height:100%;width:0;border-radius:20px;background:linear-gradient(90deg,var(--orange),var(--red));transition:width .35s}.data-note{margin:14px 3px 0;color:#9b8f84;font-size:11px;line-height:1.5}.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:22px}.quick-links button{display:flex;align-items:center;gap:11px;padding:13px 14px;border:1px solid #f2e9df;border-radius:15px;background:#fffaf4;text-align:left}.quick-links button>span:first-child{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:#ffead0;color:var(--red);font-size:19px}.quick-links button>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.quick-links strong{font-size:12px}.quick-links small{font-size:10px;color:#92867b}.quick-links b{margin-left:auto;color:var(--red);font-size:17px;font-weight:500}
.section-intro{max-width:610px;margin:-4px 0 21px;color:#81766d;font-size:13px;line-height:1.5}.choice-list{display:grid;gap:10px}.choice{display:flex;align-items:center;gap:13px;width:100%;min-height:79px;padding:12px 15px;border:1px solid var(--line);border-radius:16px;background:#fff;text-align:left;transition:border-color .17s,background .17s}.choice.active{border-color:#f3b98d;background:#fff8f1}.choice-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:12px;background:#fff0e2;color:var(--red);font-size:22px}.choice-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.choice-copy strong{font-size:13px;color:var(--ink)}.choice-copy small{font-size:11px;color:#978a7f;line-height:1.35}.choice-check{display:grid;place-items:center;flex:none;width:22px;height:22px;margin-left:auto;border:1px solid #ded5cd;border-radius:50%;color:transparent;font-size:13px}.choice.active .choice-check{border-color:var(--red);background:var(--red);color:#fff}.export-button{max-width:350px;margin-top:20px}.micro-note{margin:10px 0 0;font-size:11px;color:#a0958b}
.chart-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px}.chart-tabs button{flex:none;min-height:35px;padding:0 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#897c71;font-size:12px;font-weight:700}.chart-tabs button.active{border-color:var(--red);background:var(--red);color:#fff}.chart-card{margin-top:15px;padding:19px 21px 18px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(33,20,6,.035)}.chart-card-heading{display:flex;align-items:start;justify-content:space-between}.chart-card h3{margin:7px 0 0;font-size:19px;letter-spacing:-.035em}.chart-mark{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#fff0e0;color:var(--red);font-size:20px}.chart-legend{display:flex;gap:17px;margin-top:17px;color:#877a70;font-size:11px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{display:inline-block;width:8px;height:8px;border-radius:3px}.legend-actual{background:var(--red)}.legend-plan{background:var(--orange)}.chart-canvas{min-height:230px;margin-top:20px}.chart-canvas svg{display:block;width:100%;height:auto;overflow:visible}.chart-empty{display:grid;place-items:center;min-height:205px;margin:0;border:1px dashed #eaded1;border-radius:12px;color:#a09388;font-size:12px}.chart-note{margin:14px 0 0;color:#9a8d83;font-size:11px;line-height:1.45}.rank-row{display:grid;grid-template-columns:minmax(88px,1.25fr) minmax(105px,2.5fr) auto;align-items:center;gap:11px;min-height:37px}.rank-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#6b6057;font-size:11px}.rank-bars{height:12px;border-radius:20px;background:#f5efe9;overflow:hidden}.rank-bars span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,var(--orange),var(--red))}.rank-value{min-width:55px;text-align:right;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}.compare-bars{display:grid;gap:23px;padding:10px 0}.compare-row{display:grid;grid-template-columns:65px 1fr 105px;align-items:center;gap:13px;font-size:12px}.compare-row strong{text-align:right;font-variant-numeric:tabular-nums}.compare-track{height:24px;overflow:hidden;border-radius:8px;background:#f6efe8}.compare-track span{display:block;height:100%;border-radius:8px;background:var(--orange)}.compare-row.actual .compare-track span{background:var(--red)}
.footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:30px;padding-top:17px;border-top:1px solid var(--line);color:#ab9e93;font-size:9px;letter-spacing:.09em}.footer button{padding:4px 0;border:0;background:none;color:var(--red);font-size:11px;letter-spacing:0}
.hero-stamp{object-fit:cover}
.hero{min-height:180px;padding:25px 30px}.hero h1{font-size:clamp(35px,6vw,50px)}.hero-stamp{right:30px;bottom:28px;width:58px;height:58px}.hero-art{bottom:-188px}.context-title>span:last-child{display:none}
@media(max-width:660px){.app-shell{padding-inline:18px}.hero{min-height:230px;padding:25px}.hero-stamp{right:24px;bottom:28px;width:58px;height:58px;font-size:37px}.metrics-grid{grid-template-columns:1fr 1fr}.metric-card{min-height:140px}.quick-links{grid-template-columns:1fr 1fr}}@media(max-width:430px){.app-shell{padding-inline:15px}.topbar{min-height:73px}.brand-mark{width:40px;height:40px}.private-badge{font-size:8px}.hero{margin-top:16px;min-height:218px;padding:22px}.hero h1{font-size:39px}.hero-stamp{opacity:.65;right:17px;bottom:21px;width:49px;height:49px;font-size:31px}.hero-stamp span{font-size:14px}.nav-item{font-size:11px;gap:3px}.nav-icon{font-size:16px}.context-panel{padding:16px}.filters{gap:8px}.select-field{padding:10px}.select-field select{font-size:12px}.metric-card{padding:12px;min-height:133px}.metric-card strong{font-size:17px}.quick-links{grid-template-columns:1fr}.section-heading h2{font-size:23px}.choice{gap:10px;padding:10px}.choice-copy small{font-size:10px}.rank-row{grid-template-columns:minmax(75px,1fr) minmax(65px,1.3fr) 55px;gap:5px}.footer span{max-width:130px;line-height:1.4}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:660px){.hero{min-height:168px;padding:21px 24px}.hero h1{font-size:37px}.hero-stamp{right:23px;bottom:23px;width:50px;height:50px}}
@media(max-width:430px){.hero{min-height:158px;padding:19px 21px}.hero h1{font-size:34px;margin:10px 0}.hero-stamp{width:42px;height:42px;right:16px;bottom:17px}}
/* Full-width Mini App canvas, with spacing inside the content. */
.app-shell{max-width:none;padding:0 0 calc(30px + env(safe-area-inset-bottom,0px));box-shadow:none}
.topbar,.view-nav,.context-panel,.view,.footer{margin-left:clamp(15px,4vw,32px);margin-right:clamp(15px,4vw,32px)}
.hero{margin-left:0;margin-right:0;border-left:0;border-right:0;border-radius:0}
.brand-mark{object-fit:contain}
.hero-stamp{object-fit:contain;border-radius:13px}
.delivery-toast{position:fixed;z-index:50;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:min(440px,calc(100vw - 24px));padding:15px 14px;border:1px solid #f6cdbd;border-radius:17px;background:#fff;box-shadow:0 16px 50px rgba(72,33,10,.19)}
.delivery-icon{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:11px;background:#e52b0b;color:#fff;font-size:20px;font-weight:800}
.delivery-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.delivery-copy strong{font-size:13px;color:#2b231e}.delivery-copy small{font-size:11px;color:#8a7e72;line-height:1.35}
.delivery-toast button{align-self:start;margin-left:auto;border:0;background:none;color:#9b8e83;font-size:24px;line-height:1}
.nav-icon{display:grid;place-items:center;flex:none;width:19px;height:19px}.nav-icon svg{display:block;width:18px;height:18px}.nav-item{gap:8px;white-space:nowrap}
@media(max-width:430px){.nav-item{gap:5px;font-size:12px}.nav-icon{width:17px;height:17px}.nav-icon svg{width:17px;height:17px}}
.sync-toast{position:fixed;z-index:45;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(440px,calc(100vw - 24px));padding:15px 16px 14px;border:1px solid #f1d7bf;border-radius:17px;background:#fff;box-shadow:0 16px 50px rgba(72,33,10,.18)}
.sync-head{display:flex;align-items:center;gap:9px}.sync-head strong{font-size:13px;color:#2b231e}.sync-head b{margin-left:auto;color:var(--red);font-size:12px;font-variant-numeric:tabular-nums}.sync-spinner{width:15px;height:15px;flex:none;border:2px solid #ffd7b1;border-top-color:var(--red);border-radius:50%;animation:sync-spin .8s linear infinite}
.sync-toast p{margin:8px 0 10px;color:#75685e;font-size:11px;line-height:1.35}.sync-toast small{display:block;margin-top:8px;color:#a08e80;font-size:10px}
.sync-track{height:7px;overflow:hidden;border-radius:20px;background:#f5ebe1}.sync-track span{display:block;width:5%;height:100%;border-radius:20px;background:linear-gradient(90deg,var(--orange),var(--red));transition:width .35s ease}
@keyframes sync-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.sync-spinner{animation:none}}
