*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;color:#1D1D1D;background:#EBEAEA}
.app{display:flex;flex-wrap:wrap;min-height:100vh}
nav{flex:1 1 220px;max-width:100%;background:#F6A34C;color:#1D1D1D;padding:24px 16px;display:flex;flex-direction:column;gap:20px}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px;font-weight:700;font-size:16px}
.biz{padding:0 8px;font-size:12px;color:#1D1D1D}.biz b{display:block;color:#1D1D1D;font-size:15px;font-weight:600;margin-top:2px}
nav button{display:flex;align-items:center;width:100%;min-height:44px;padding:0 12px;border-radius:8px;border:0;background:none;color:#1D1D1D;font:inherit;text-align:left;cursor:pointer}
nav button.on{background:#fff;color:#1D1D1D;font-weight:600}
.navfoot{margin-top:auto;padding:12px;border:0;border-radius:8px;font-size:12px;color:#1D1D1D;line-height:1.5}
main{flex:999 1 560px;min-width:0;padding:28px 32px 48px}
.view{display:none;flex-direction:column;gap:18px}.view.on{display:flex}
.top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px}
.top .sm{font-size:13px;color:#555353} h1{margin:4px 0 0;font-size:28px;letter-spacing:-.01em}
.period{border:1px solid #D3D1D1;background:#fff;border-radius:8px;padding:10px 14px;font-size:14px}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:12px}
.tile{background:#fff;border:1px solid #DEDCDC;border-radius:12px;padding:16px}
.tile .k{font-size:14px;color:#555353}.tile .v{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:26px;font-weight:500;margin-top:4px}.tile .s{font-size:13px;color:#555353;margin-top:2px}
.tile.dark{background:#fff}.tile.dark .v{font-size:30px}.tile.dark .v::after{content:"";display:block;width:56px;height:5px;background:#FF8F18;margin:8px 0 4px}
.row{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.card{background:#fff;border:1px solid #DEDCDC;border-radius:12px;padding:18px 20px;min-width:0}
.card h2{margin:0;font-size:17px}
.seg{display:flex;gap:4px;background:#F2F1F1;border-radius:8px;padding:4px}
.seg button{font:inherit;font-size:13px;border:0;border-radius:6px;padding:0 14px;min-height:36px;background:none;color:#555353;cursor:pointer}
.seg button.on{background:#fff;color:#1D1D1D;font-weight:600}
.hd{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
svg{display:block;width:100%;height:auto}svg text{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.scroll{overflow-x:auto}.scroll svg{min-width:560px}
.note{font-size:13px;color:#555353;margin:8px 0 0;line-height:1.5}
ol.plan{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
ol.plan li{display:flex;gap:12px}ol.plan .n{flex:0 0 26px;height:26px;border-radius:50%;background:#D3D1D1;color:#1D1D1D;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
ol.plan b{display:block}ol.plan span.d{font-size:14px;color:#555353;line-height:1.5}
table{width:100%;border-collapse:collapse;font-size:14px}
th{font-size:12px;color:#555353;font-weight:500;text-align:right;padding:8px;border-bottom:1px solid #DEDCDC;white-space:nowrap}th:first-child,td:first-child{text-align:left}
td{padding:9px 8px;border-bottom:1px solid #EFEEEE;text-align:right;font-family:ui-monospace,Menlo,Consolas,monospace;white-space:nowrap}td:first-child{font-family:inherit;font-weight:500;white-space:normal}
tr.sel td{background:#FFF6EC}
td button.lnk,button.lnk{font:inherit;color:#1D1D1D;background:none;border:0;padding:0;cursor:pointer;text-align:left;text-decoration:none;font-weight:500;display:inline-flex;align-items:center;gap:8px}
.chev{display:inline-block;width:10px;font-size:20px;line-height:1;color:#8E8C8C;transition:transform .15s}
button.lnk[aria-expanded=true] .chev{transform:rotate(90deg);color:#1D1D1D}
.cost{width:92px;min-height:40px;font:inherit;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;text-align:right;border:1px solid #C9C7C7;border-radius:8px;padding:0 8px;background:#fff}
.cost.set{border-color:#2E7D32;background:#EEF7F0;font-weight:600}
.tag{display:inline-block;font-family:system-ui,sans-serif;font-size:11px;font-weight:600;border-radius:999px;padding:3px 8px;background:#EBEAEA;color:#555353}
.tag.ok{background:#DDF1E2;color:#1B5E20}.tag.buy{background:#FFF0DF;color:#8A4500}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:flex;align-items:center;gap:8px;border:1px solid #D3D1D1;border-radius:999px;padding:0 14px;min-height:40px;background:#fff;cursor:pointer;font-size:14px}
.chip input{width:16px;height:16px}
.ctrl{display:flex;flex-wrap:wrap;gap:24px;align-items:center;margin-top:14px}
.ctrl label{font-size:14px;color:#555353;display:flex;flex-direction:column;gap:6px}
.ctrl .val{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:20px;color:#1D1D1D}
.stepper{display:flex;gap:6px}.stepper button{font:inherit;font-weight:600;border:1px solid #D3D1D1;background:#fff;border-radius:8px;min-width:44px;min-height:40px;cursor:pointer}
input[type=range]{width:240px}
input[type=range],input[type=checkbox]{accent-color:#FF8F18}
.pos{color:#2E7D32}.neg{color:#C62828}
.cents{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:46px;font-weight:500}
.bar{height:14px;border-radius:0 4px 4px 0;margin:6px 0}
.btn{font:inherit;font-weight:600;border:1px solid #D3D1D1;background:#fff;border-radius:8px;padding:0 16px;min-height:44px;cursor:pointer}
.btn.primary{color:#1D1D1D;background:#FF8F18;border-color:#FF8F18}
.bd{display:flex;flex-direction:column;gap:6px;font-size:14px}
.bd .ln{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #EFEEEE}
.bd .ln span:last-child{font-family:ui-monospace,Menlo,Consolas,monospace}
.bd .ln.sum{border-bottom:0;font-weight:600;border-top:2px solid #DEDCDC;margin-top:4px;padding-top:10px}
.bd .ln.sub{color:#555353;font-size:13px}
.bd .ln.est{color:#8E8C8C}.bd .ln.strong{font-weight:600}.bd .ln.flat{border-top:0;padding-top:0;margin-top:0}
#ctable td:first-child{white-space:nowrap}
tr.bdrow td{background:#F7F6F6;padding:14px 16px 10px;text-align:left;white-space:normal;font-family:inherit}
.bdwrap{max-width:720px}
.tip{position:fixed;pointer-events:none;background:#fff;border:1px solid #DEDCDC;border-radius:8px;padding:8px 10px;font-size:12px;box-shadow:0 4px 14px rgba(0,0,0,.15);display:none;z-index:5;min-width:190px}
.tip b{display:block;margin-bottom:4px}.tip div{display:flex;justify-content:space-between;gap:12px;color:#555353}
@media (max-width:700px){main{padding:20px 16px}}
.chip input[type=checkbox]{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;border:2px solid #8E8C8C;border-radius:4px;background:#fff;display:inline-grid;place-content:center;cursor:pointer}
.chip input[type=checkbox]:checked{background:#FF8F18;border-color:#FF8F18}
.chip input[type=checkbox]:checked::after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px)}
.chip input[type=checkbox]:focus-visible{outline:2px solid #1D1D1D;outline-offset:2px}
.lead{display:flex;gap:12px;align-items:flex-start;margin:0;font-size:15px;line-height:1.55;color:#1D1D1D;max-width:980px}
.lead svg.mark{flex:none;width:22px;height:18px;margin-top:3px}
input[type=range]{-webkit-appearance:none;appearance:none;height:6px;border-radius:3px;background:linear-gradient(to right,#FF8F18 var(--p,66.7%),#D3D1D1 var(--p,66.7%));outline-offset:6px}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#FF8F18;border:2px solid #fff;box-shadow:0 0 0 1px #C9C7C7;cursor:pointer}
input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#FF8F18;border:2px solid #fff;box-shadow:0 0 0 1px #C9C7C7;cursor:pointer}

/* ---------- hosted app additions ---------- */
.legal{flex-basis:100%;padding:14px 24px;font-size:12px;line-height:1.5;color:#555353;background:#F7F6F6;border-top:1px solid #E2E0E0}
.navuser{padding:0 8px;font-size:12px;color:#1D1D1D;word-break:break-all}
.navuser button{display:inline;width:auto;min-height:0;padding:0;margin-top:4px;border:0;background:none;font:inherit;font-weight:600;text-decoration:underline;cursor:pointer;color:#1D1D1D}
.banner{display:none;margin:0 0 14px;padding:12px 16px;border-radius:8px;background:#FFF1E2;border:1px solid #FFC98A;font-size:14px;line-height:1.5}
.banner.on{display:block}
.banner.err{background:#FDECEC;border-color:#F3B3B3}
.saving{font-size:12px;color:#6E6C6C;margin-left:8px}
.hist{width:100%;border-collapse:collapse;font-size:13px}
.hist td,.hist th{padding:6px 8px;border-bottom:1px solid #EEE;text-align:left}
/* sign-in, terms and staff pages */
.solo{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:#EBEAEA}
.solo .card{width:100%;max-width:440px}
.solo.wide .card{max-width:760px}
.field{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-size:14px;font-weight:600}
.field input,.field select{font:inherit;font-weight:400;padding:10px 12px;border:1.5px solid #C9C7C7;border-radius:8px;min-height:44px;background:#fff}
.msg{min-height:20px;font-size:14px;color:#B3261E;margin:8px 0}
.msg.ok{color:#1E7B34}
.terms{max-height:50vh;overflow:auto;border:1px solid #E2E0E0;border-radius:8px;padding:4px 16px;font-size:14px;line-height:1.55;background:#fff}
.terms h3{font-size:15px;margin:16px 0 4px}
.copy{word-break:break-all;font-family:ui-monospace,Menlo,monospace;font-size:12px;background:#F7F6F6;border-radius:8px;padding:10px;margin:8px 0}
