:root{--bg:#f3f6f3;--panel:#fff;--text:#18342b;--muted:#71847b;--line:#e1eae4;--green:#087c55;--green-dark:#0c3d2d;--green-light:#e9f6ef;--mango:#e6a84b;--amber:#fff5e6;--danger:#bb5147;--blue:#3f78af;--radius:15px;--shadow:0 5px 24px #143b290b}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--text);font-size:14px;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--green)}button:disabled{opacity:.48;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:25px;letter-spacing:-.7px}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:15px}p{line-height:1.65}.hidden{display:none!important}.muted{color:var(--muted)}.tiny{font-size:11px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:#81958a;text-transform:uppercase}.eyebrow.gold{color:#edc77b}.btn{border:1px solid var(--green);border-radius:10px;padding:10px 14px;background:var(--green);color:#fff;font-weight:750;transition:.15s}.btn:hover{filter:brightness(.96)}.btn.primary{background:var(--green)}.btn.outline{color:var(--green);background:#fff;border-color:#c8dfd2}.btn.ghost{color:#346c50;background:#edf6ef;border:1px solid #e1eae5}.btn.danger{color:#ae433c;background:#fff0ee;border:1px solid #f2ccc8}.btn.small{padding:7px 11px;font-size:12px}.btn.wide{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 15px}.btnrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.iconbtn{border:1px solid #e3ebe7;border-radius:10px;background:#fff;padding:8px 11px;color:#37604b;font-size:18px}.pill,.status-pill{display:inline-flex;align-items:center;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:750;background:#eaf6ee;color:#248256;white-space:nowrap}.pill.dark{background:#e8f4ed;color:#166948}.pill.warn,.status-pill.warn{background:#fff3e4;color:#a8702b}.pill.red,.status-pill.red{background:#ffefed;color:#ad5145}.pill.gray,.status-pill.gray{background:#edf1ee;color:#687c70}.pill.blue{background:#e9f1ff;color:#2d6baf}.auth-layout{display:flex;min-height:100vh}.auth-panel{width:49%;padding:45px clamp(24px,5vw,85px);background:linear-gradient(155deg,#0b3125,#15573d 58%,#0b3329);color:white;display:flex;flex-direction:column;justify-content:space-between}.auth-brand,.brand{display:flex;gap:12px;align-items:center}.auth-brand img,.brand img{width:50px;height:50px;object-fit:contain;background:white;border-radius:12px;padding:3px}.auth-brand b,.brand b{display:block;letter-spacing:.07em}.auth-brand small,.brand small{display:block;color:#a9cabb;font-size:10px;letter-spacing:.08em;margin-top:2px}.auth-art h1{font-size:clamp(31px,3.6vw,55px);line-height:1.16;letter-spacing:-1.6px;margin:12px 0 18px}.auth-art h1 em{font-style:normal;color:#f0b85d}.auth-art p{max-width:410px;color:#bad9c8;font-size:15px}.auth-dots{display:flex;gap:8px;margin-top:36px}.auth-dots span{background:#e7b264;width:34px;height:5px;border-radius:5px}.auth-dots span:not(:first-child){width:8px;opacity:.4}.auth-footnote{font-size:12px;color:#a7c9b8;margin:0}.auth-form-wrap{width:51%;display:grid;place-items:center;padding:30px}.auth-form-card{background:white;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px;width:min(470px,100%);padding:37px}.auth-form-card h2{font-size:31px;margin:15px 0 6px;letter-spacing:-.6px}.auth-form-card>p{margin-bottom:25px}.form-stack{display:grid;gap:17px}.form-stack label,.form-grid label{display:grid;gap:6px;color:#435f4e;font-size:12px;font-weight:750}.form-stack input,.form-grid input,.form-grid textarea,.form-grid select,.toolbar input,.toolbar select{min-width:0;border:1px solid #d7e3da;border-radius:10px;padding:10px 12px;width:100%;background:white;color:var(--text);outline:none}.form-stack input:focus,.form-grid input:focus,.form-grid select:focus,.toolbar input:focus{border-color:#66b492;box-shadow:0 0 0 3px #dcf4e6}.form-error{padding:10px;margin:12px 0;background:#fff1ef;border:1px solid #ecc4c0;color:#9e433e;border-radius:10px}.auth-security{border-top:1px solid var(--line);padding-top:18px;color:#7e8e85;font-size:11px;margin-top:23px;line-height:1.7}.auth-security span{margin-right:5px}.info-box{padding:11px 13px;background:#edf6f0;border:1px solid #d6e9dc;color:#416e53;border-radius:10px;font-size:12px;line-height:1.55}.app{display:flex;height:100vh;overflow:hidden}.sidebar{background:#102e25;color:#c2d5ca;width:251px;min-width:251px;display:flex;flex-direction:column;position:relative;z-index:5}.brand{padding:23px 16px 30px}.brand b{color:white;font-size:14px}.brand small{font-size:10px}.brand small span{color:#e9bc6b}.work-label{font-size:10px;letter-spacing:.13em;font-weight:750;color:#6f9a83;padding:0 21px 10px}.sidebar-nav{overflow:auto;padding:0 10px 18px;flex:1}.nav-group{color:#7ea391;font-size:9px;letter-spacing:.12em;padding:17px 12px 7px;font-weight:800}.nav-item{width:100%;background:transparent;border:0;color:#bfd5c8;display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;text-align:left;white-space:nowrap;font-weight:550;font-size:12.5px;margin:1px 0}.nav-item i{font-style:normal;font-size:17px;display:inline-grid;place-items:center;width:23px}.nav-item:hover,.nav-item.active{background:#28684b;color:#fff}.side-bottom{padding:15px;border-top:1px solid #345548;font-size:11px;color:#adc8b8}.sync{display:flex;gap:7px;align-items:center}.sync-dot{background:#49d18c;width:8px;height:8px;border-radius:50%}.mini-note{padding-top:9px;color:#8bad9c}.mini-note b{font-weight:600;color:#d9b779}.mainarea{display:flex;flex-direction:column;flex:1;min-width:0}.topbar{height:79px;min-height:79px;border-bottom:1px solid var(--line);background:#fff;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:16px}.page-heading h1{margin:4px 0 0;font-size:23px}.top-actions{display:flex;align-items:center;gap:12px}.store-score{padding:6px 13px;border:1px solid #e6eee8;border-radius:10px;font-size:12px;display:flex;gap:7px;align-items:center}.score-indicator{color:#df9b43}.store-score small{color:#9aaa9e;font-size:10px}.user-bubble{display:grid;place-items:center;width:39px;height:39px;background:#dbece1;color:#0e6749;border-radius:50%;font-weight:850}.user-label{display:flex;flex-direction:column;font-size:12px;white-space:nowrap}.user-label small{color:var(--muted)}.main-scroll{flex:1;overflow:auto}.content{max-width:1480px;margin:0 auto;padding:26px 30px 45px}.footer{text-align:center;color:#9ca9a0;font-size:11px;padding:24px 20px}.hero{border-radius:20px;padding:26px 30px;background:linear-gradient(115deg,#0c543b,#10845d);color:white;display:flex;justify-content:space-between;gap:20px;align-items:center;min-height:155px;margin-bottom:19px;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;width:300px;height:300px;border:75px solid #ffffff0c;right:-70px;top:-170px;border-radius:50%}.hero h2{font-size:23px;margin:9px 0 5px;max-width:680px}.hero p{color:#daeee4;margin:0;font-size:12px}.hero .pill{background:#ffffff25;color:white}.grid{display:grid;gap:16px}.grid.metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:17px}.grid.two{grid-template-columns:1.3fr 1fr;margin-bottom:17px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:17px}.card{border:1px solid var(--line);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:19px;min-width:0}.card h2{margin-bottom:15px;font-size:17px}.metric .kicker{font-size:12px;color:#7c8d82;font-weight:650}.metric .value{font-size:28px;font-weight:850;letter-spacing:-1px;margin:9px 0 5px;font-variant-numeric:tabular-nums}.metric .hint{font-size:11px;color:#8f9f95}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.card-head h2{margin:0}.stack{display:grid;gap:10px}.list-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf2ee}.list-line:last-child{border:0}.list-line b{font-size:13px}.list-line small{display:block;color:var(--muted);margin-top:3px;font-size:11px}.list-line .right{text-align:right}.task-indicator{width:9px;height:9px;border-radius:50%;background:#d6ab5d;flex:none;margin-top:6px}.task-indicator.done{background:#28ae77}.report-bar{height:8px;background:#e9f0ea;border-radius:8px;overflow:hidden}.report-bar span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#198d62,#47b58d)}.bar-row{margin:11px 0}.bar-row .linehead{display:flex;justify-content:space-between;gap:9px;margin-bottom:7px;font-size:12px}.notice{padding:12px 14px;background:#f1f8f3;border:1px solid #d8e9dd;border-radius:12px;color:#446953;font-size:12px;line-height:1.7}.notice.warn{background:#fff8ed;border-color:#f5e2c4;color:#966d32}.toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:11px;margin-bottom:15px}.toolbar .filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.toolbar input{width:260px}.toolbar select{width:auto}.data-table-wrap{width:100%;overflow-x:auto}.data-table{border-collapse:collapse;width:100%;min-width:720px;font-size:12px}.data-table th{text-align:left;font-size:11px;color:#87948a;background:#f8fbf8;white-space:nowrap;font-weight:800}.data-table td,.data-table th{border-bottom:1px solid #ebf0ec;padding:11px 10px;vertical-align:middle}.data-table td{max-width:290px;white-space:normal;overflow-wrap:anywhere}.data-table tr:hover td{background:#fbfdfb}.data-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--green)}.data-table .actions{white-space:nowrap}.data-table .actions .btn{margin-right:4px}.pager{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px;color:var(--muted);font-size:12px}.empty{background:#fbfdfb;border:1px dashed #d5e6da;text-align:center;padding:28px;border-radius:12px;color:#819187}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product-tile{border-radius:16px;border:1px solid var(--line);background:white;overflow:hidden;box-shadow:var(--shadow)}.product-photo{height:220px;margin:14px;background:#f7f9f6;border-radius:12px;display:grid;place-items:center;overflow:hidden}.product-photo img{width:100%;height:100%;object-fit:contain}.product-text{padding:6px 17px 17px}.product-text h3{font-size:15px;min-height:42px}.mini-stats{display:flex;justify-content:space-between;margin:8px 0;padding:10px;background:#f8faf8;border-radius:9px}.mini-stats span{color:#75897c}.mini-stats b{font-size:13px}.product-text .btn{width:100%;margin-top:8px}.calendar-head{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;color:#88968d;font-size:11px;padding:7px}.cal-day{min-height:103px;border:1px solid #e3eee5;border-radius:9px;background:#fff;padding:7px;overflow:hidden}.cal-day.outside{background:#f7f9f8;border-color:transparent}.cal-day .n{font-size:11px;font-weight:800;margin-bottom:5px}.cal-day.today{border-color:#23a978}.cal-event{font-size:10px;color:#186b4a;background:#edf7ef;padding:3px 5px;border-radius:5px;margin-bottom:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cal-event.live{color:#915d1d;background:#fff3dc}.cal-event.video{color:#4b6999;background:#eef3ff}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}.comparison>div{background:#f8faf8;border:1px solid #e8efea;padding:15px;border-radius:13px}.comparison .price{font-size:25px;font-weight:850;letter-spacing:-.7px;margin:5px 0}.calculator{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.calctotal{display:flex;justify-content:space-between;align-items:center;background:#edf7ef;padding:15px 18px;border-radius:12px;margin-top:15px}.calctotal b{font-size:25px;color:#087c55}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label.full{grid-column:1/-1}.form-grid textarea{height:110px;resize:vertical}.form-grid .file-row{display:flex;gap:9px;align-items:center}.form-grid input[type=file]{padding:8px}.form-grid button[type=submit]{grid-column:1/-1}.form-grid .form-error{grid-column:1/-1}.modal{position:fixed;inset:0;background:#0b241eaa;z-index:30;display:grid;place-items:center;padding:18px}.modal-panel{width:min(740px,100%);max-height:90vh;overflow:hidden;background:white;border-radius:18px;display:flex;flex-direction:column;box-shadow:0 28px 90px #0004}.modal-head{padding:19px 21px;border-bottom:1px solid var(--line);display:flex;align-items:start;justify-content:space-between;gap:15px}.modal-head h2{margin:5px 0 0}.modal-body{overflow:auto;padding:21px}.toast{position:fixed;right:20px;bottom:22px;background:#153d2e;color:white;padding:12px 17px;border-radius:12px;box-shadow:0 9px 30px #0003;z-index:100;max-width:min(400px,90vw);font-size:12px}.toast.error{background:#a84540}.integration-tile{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px;border:1px solid #e1ece5;background:#fff;border-radius:12px}.integration-tile b{font-size:14px}.integration-tile small{display:block;color:var(--muted);margin-top:4px}.audit-entry{border-bottom:1px solid #ebf0ed;padding:10px 0;font-size:12px}.audit-entry:last-child{border:0}.bottom-nav,.mobile-only{display:none}.overlay{position:fixed;inset:0;background:#0008;z-index:4}
@media(max-width:1250px){.grid.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-actions{gap:8px}.store-score small{display:none}}@media(max-width:980px){.sidebar{width:216px;min-width:216px}.content{padding:22px}.topbar{padding:0 18px}.grid.two{grid-template-columns:1fr}.user-label{display:none}}@media(max-width:760px){.auth-layout{display:block}.auth-panel{width:100%;min-height:220px;padding:24px;gap:18px}.auth-art h1{font-size:28px;margin-bottom:8px}.auth-art p,.auth-dots,.auth-footnote{display:none}.auth-form-wrap{width:100%;padding:16px;display:block;margin-top:-12px;position:relative}.auth-form-card{padding:22px;max-width:500px;margin:auto}.auth-form-card h2{font-size:25px}.app{height:100dvh}.sidebar{width:260px;min-width:260px;position:fixed;inset:0 auto 0 0;transform:translateX(-105%);transition:transform .2s;box-shadow:10px 0 28px #0002}.sidebar.open{transform:translateX(0)}.mobile-only{display:flex}.topbar{height:67px;min-height:67px;padding:0 12px;gap:9px}.page-heading h1{font-size:17px;margin:2px 0 0}.page-heading .eyebrow{font-size:9px}.top-actions .store-score,.top-actions #logoutBtn{display:none}.top-actions .iconbtn{font-size:15px;padding:6px 8px}.user-bubble{width:31px;height:31px;font-size:11px}.content{padding:14px 13px 35px}.hero{padding:20px;min-height:135px}.hero h2{font-size:18px}.hero p{font-size:11px}.hero .pill{display:none}.grid{gap:10px}.grid.metrics{gap:9px}.metric .value{font-size:21px}.card{padding:14px}.grid.three,.product-grid{grid-template-columns:1fr}.bottom-nav{display:flex;position:absolute;bottom:0;left:0;right:0;z-index:3;height:65px;background:white;border-top:1px solid var(--line);justify-content:space-around;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{background:transparent;border:0;color:#789083;font-size:10px;display:grid;place-items:center;gap:2px;padding:5px;min-width:60px}.bottom-nav button i{font-style:normal;font-size:19px}.bottom-nav button.active{color:var(--green);font-weight:800}.main-scroll{padding-bottom:65px}.form-grid,.calculator,.comparison{grid-template-columns:1fr}.calendar-grid{gap:2px}.weekday{font-size:9px}.cal-day{padding:4px;min-height:74px}.cal-event{font-size:8px;padding:2px}.toolbar input{width:100%}.toolbar .filters{width:100%}.toolbar .filters>*{flex:1}.integration-tile{display:block}.integration-tile .status-pill{margin-top:9px}.footer{padding-bottom:16px;font-size:10px}.modal{padding:7px}.modal-panel{max-height:94dvh}.modal-body{padding:15px}.form-grid label.full{grid-column:auto}}@media(max-width:370px){.top-actions #refreshBtn{display:none}.metric .value{font-size:18px}.card{padding:11px}.content{padding:10px}.hero h2{font-size:16px}}
/* Product-and-AI experience enhancements preserved in V8 */
.nav-new{font-size:9px;font-weight:900;border-radius:5px;background:#e4f4e9;color:#067c53;padding:2px 5px;margin-left:auto}
.hero>div:first-child{flex:1;min-width:0;position:relative;z-index:1}
.hero-aside{position:relative;z-index:1;max-width:260px;min-width:165px;color:#e2f5e8;font-size:12px;line-height:1.6;border-left:1px solid #ffffff40;padding-left:22px}
.hero-score{font-size:31px;line-height:1.25;color:white;font-weight:800;letter-spacing:-1.3px}
.hero-score small{font-size:17px;letter-spacing:0;color:#c0e9d2}
.hero-aside>small{color:#cce7d8}
.hero-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:12px}
.hero-actions .btn.primary{background:#17a873;border-color:#17a873}
.hero-actions .btn.outline{background:#f9fffa;border-color:#f9fffa;color:#087951}
.metric{position:relative}
.metric .value{overflow-wrap:anywhere}
.grid{min-width:0}
.table-foot{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#76877d;font-size:11px;margin-top:12px;flex-wrap:wrap}
.searchbox{display:flex;align-items:center;gap:7px;background:white;border:1px solid #dbe8de;border-radius:9px;padding:0 10px;min-width:240px}
.searchbox input{padding:9px 5px;border:0;outline:0;width:100%;background:transparent}
.btn.ghost{border-color:transparent}
.product-photo{overflow:hidden}
.product-photo img{max-height:170px;object-fit:contain;width:100%;height:auto}
.ai-hero{background:linear-gradient(110deg,#0c4838 0%,#0b7055 72%,#0c8f71 100%);color:white;padding:24px 30px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-radius:18px;margin-bottom:17px}
.ai-hero .eyebrow{color:#99d8ba}
.ai-hero h2{font-size:22px;margin:8px 0}
.ai-hero p{margin:0;color:#b9ead1;max-width:730px}
.ai-orb{font-size:56px;line-height:1;width:83px;height:83px;border:1px solid #a3e6ca44;background:#ffffff14;display:grid;place-items:center;border-radius:30px;flex:none}
.ai-prompts{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}
#aiQuestion{width:100%;min-height:112px;border:1px solid #d5e4db;border-radius:10px;padding:11px;resize:vertical;background:#fcfefd}
.field-label{display:block;font-weight:700;color:#274737;margin-bottom:8px}
.ai-result{white-space:pre-wrap;font-size:13px;line-height:1.75;color:#173a2c;background:#f8fbf8;padding:18px;border-radius:12px;border:1px solid #e1ece3;min-height:165px;overflow-wrap:anywhere}
.report-item{width:100%;text-align:left;display:flex;flex-direction:column;gap:5px;border:0;border-bottom:1px solid #e6ede9;background:transparent;padding:13px 2px;color:#214234;cursor:pointer}
.report-item:hover{background:#f4faf5}
.report-item small{color:#6f8b7b}
.trend-bars{height:155px;display:flex;gap:7px;align-items:flex-end;padding:13px 8px 0;overflow:hidden}
.trend-item{flex:1;height:100%;min-width:13px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}
.trend-item span{width:100%;background:linear-gradient(#e6b35a,#168963);border-radius:5px 5px 0 0;min-height:4px}
.trend-item small{height:17px;font-size:9px;color:#91a397}
.audit-entry{padding:12px 0;border-bottom:1px solid #e7ece8}
.clickline{background:transparent;width:100%;border:0;text-align:left;cursor:pointer;color:inherit}
.mini-stats{background:#f7fbf8;border:1px solid #e5efe8;border-radius:11px;padding:12px;min-width:0}
.mini-stats b{display:block;margin-top:4px}
.form-grid input[type=file]{padding-top:5px;font-size:12px}
@media(max-width:650px){
 .hero{flex-direction:column;align-items:stretch;gap:16px;padding:19px;min-height:0}
 .hero-aside{border-top:1px solid #ffffff45;border-left:0;max-width:100%;width:100%;padding:13px 0 0;min-width:0}
 .hero-score{font-size:25px}
 .hero-actions .btn{flex:1;min-width:135px;min-height:38px}
 .ai-hero{padding:19px}
 .ai-orb{display:none}
 .ai-hero h2{font-size:20px}
 .searchbox{width:100%;min-width:0}
 .toolbar{align-items:stretch}
 .toolbar .btnrow{width:100%}
 .toolbar .btn{flex:1}
 .data-table{font-size:11px}
 .calendar-wrap{padding:9px!important}
 .cal-day{min-height:78px}
 .cal-event{font-size:9px}
 .topbar .user-label{display:none}
}
