*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;background:#f7f8f7;color:#111827;font-size:14px;line-height:1.45}button{font-family:inherit;cursor:pointer}select{font-family:inherit}.app{display:flex;min-height:100vh;min-width:1180px;overflow-x:auto}.sidebar{width:220px;flex:0 0 220px;background:#0b3d2e;color:#fff;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:18px 18px 14px}.brand-icon{width:42px;height:42px;border-radius:50%;background:#16a34a;display:flex;align-items:center;justify-content:center;font-size:22px}.brand-text{display:flex;flex-direction:column;line-height:1.2}.brand-text strong{font-size:17px;font-weight:800}.brand-text span{font-size:11px;color:#a7f3d0}.menu{display:flex;flex-direction:column;gap:2px;padding:6px 12px}.menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#e5e7eb;font-size:14px;font-weight:500;text-align:left}.menu-item:hover{background:#ffffff14}.menu-item.active{background:#d1fae5;color:#0b3d2e;font-weight:700}.menu-icon{width:20px;text-align:center;font-size:15px}.menu-label{flex:1}.menu-badge{background:#ef4444;color:#fff;font-size:11px;font-weight:700;min-width:20px;height:20px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}.menu-arrow{color:#9ca3af;font-size:12px}.sidebar-foot{margin-top:auto;padding:16px}.sidebar-deco{display:flex;gap:8px;margin-bottom:8px}.sidebar-deco span{width:34px;height:34px;border-radius:50%;background:#16a34a59;display:block}.sidebar-deco span:nth-child(2){background:#16a34a38}.sidebar-deco span:nth-child(3){background:#16a34a1f}.sidebar-foot p{margin:0;color:#a7f3d0;font-size:12px}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 28px;background:#fff;border-bottom:1px solid #e5e7eb}.topbar-left{display:flex;align-items:center;gap:12px}.topbar-icon{width:40px;height:40px;border-radius:10px;background:#dcfce7;display:flex;align-items:center;justify-content:center;font-size:20px}.greet{font-size:13px;color:#6b7280}.topbar-title{font-size:19px;font-weight:800;display:flex;align-items:center;gap:10px}.role-badge{background:#d1fae5;color:#065f46;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px}.topbar-right{display:flex;align-items:center;gap:10px}.topbar-select{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d1d5db;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600}.topbar-select select{border:0;outline:none;background:transparent;font-size:13px;font-weight:600;color:#111827}.icon-btn{position:relative;width:40px;height:40px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;font-size:18px;display:flex;align-items:center;justify-content:center}.bell-badge{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px}.avatar{width:40px;height:40px;border-radius:50%;background:#0b3d2e;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:16px}.period-row{display:flex;align-items:center;justify-content:space-between;padding:12px 28px 0}.btn-refresh{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:7px 16px;font-size:13px;font-weight:600;color:#065f46}.btn-refresh:hover{background:#f0fdf4}.btn-primary{background:#16a34a;color:#fff;border:0;border-radius:999px;padding:9px 18px;font-size:13px;font-weight:700}.btn-primary:hover{background:#15803d}.btn-primary:disabled{opacity:.6;cursor:default}.content{padding:16px 28px 32px}.page{display:flex;flex-direction:column;gap:16px}.page-title{font-size:26px;font-weight:800;margin:0}.page-sub{margin:-10px 0 0;color:#6b7280}.back-link{align-self:flex-start;background:none;border:0;padding:0;font-size:22px;font-weight:800;color:#111827;text-align:left}.back-link:hover{color:#065f46}.muted{color:#6b7280}.small{font-size:12px}.chev{color:#9ca3af;font-size:18px}.link{color:#16a34a;font-size:13px;font-weight:600}.link-btn{background:none;border:0;color:#16a34a;font-weight:700;padding:0}.notice{background:#fef3c7;border:1px solid #fcd34d;color:#92400e;border-radius:10px;padding:12px 16px;font-size:13px}.notice.error{background:#fef2f2;border-color:#fca5a5;color:#991b1b}.empty{color:#6b7280;margin:8px 0}.greet-line{color:#6b7280;font-size:12px;margin:4px 0 0}.hero-row{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:16px}.hero{border-radius:16px;padding:20px 22px;display:flex;gap:14px;align-items:flex-start;justify-content:space-between;min-height:148px;text-align:left;border:0;width:100%}.hero-dark{background:#0b3d2e;color:#fff}.hero-light-green{background:#dcfce7;color:#111827}.hero-light-purple{background:#ede9fe;color:#111827}.hero-left{display:flex;gap:14px;align-items:flex-start}.hero-icon{width:52px;height:52px;border-radius:50%;background:#ffffff29;display:flex;align-items:center;justify-content:center;font-size:26px;flex:0 0 52px}.hero-light-green .hero-icon,.hero-light-purple .hero-icon{background:#ffffffb3}.hero-label{font-size:13px;color:#a7f3d0;font-weight:600}.hero-label.dark{color:#374151}.hero-value{font-size:30px;font-weight:800;line-height:1.15;margin-top:2px}.hero-value.dark{color:#111827}.hero-delta{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}.hero-sub{font-size:12px;color:#a7f3d0}.hero-sub.dark{color:#4b5563}.hero-link{margin-top:8px;font-size:13px;font-weight:700;color:#6d28d9}.pill{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px}.pill-light{background:#a7f3d0;color:#065f46}.pill-green{background:#bbf7d0;color:#065f46}.hero-bars{display:flex;align-items:flex-end;gap:4px;height:64px;margin-top:8px}.hero-bar{width:12px;background:#22c55e;border-radius:3px 3px 0 0;opacity:.85}.kpi-row{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.kpi-row-6{grid-template-columns:repeat(6,1fr)}.kpi{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px 18px;display:flex;gap:12px;align-items:flex-start}.kpi-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:19px;flex:0 0 40px}.kpi-red .kpi-icon{background:#fee2e2}.kpi-green .kpi-icon{background:#dcfce7}.kpi-blue .kpi-icon{background:#dbeafe}.kpi-mint .kpi-icon{background:#d1fae5}.kpi-amber .kpi-icon{background:#fef3c7}.kpi-purple .kpi-icon{background:#ede9fe}.kpi-label{font-size:12px;color:#6b7280;font-weight:600}.kpi-value{font-size:22px;font-weight:800;line-height:1.2}.kpi-delta{font-size:12px;color:#6b7280;margin-top:2px}.two-col{display:grid;grid-template-columns:1.55fr 1fr;gap:16px}.three-col{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px}.panel{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px 20px}.panel-wide{min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.panel-head h2{font-size:16px;font-weight:800;margin:0}.panel-note{color:#6b7280;font-size:12px;margin:10px 0 0}.seg{display:flex;gap:8px;flex-wrap:wrap}.seg-btn{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;color:#374151}.seg-btn.active{background:#16a34a;border-color:#16a34a;color:#fff}.legend{display:flex;gap:18px;font-size:12px;color:#6b7280;margin:4px 0 8px}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}.dot-green{background:#16a34a}.dot-purple{background:#8b5cf6}.chart-box{width:100%}.chart-note{color:#6b7280;font-size:12px;margin:6px 0 0}.donut-wrap{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.donut{position:relative;flex:1;min-width:220px}.donut-sm{min-width:200px}.donut-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none}.donut-center span{font-size:12px;color:#6b7280}.donut-center strong{font-size:18px}.donut-legend{flex:1;min-width:200px;display:flex;flex-direction:column;gap:10px}.donut-row{display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap}.donut-row strong{margin-left:auto}.donut-row em{font-style:normal;color:#6b7280}.win-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.win-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f3f4f6}.win-list li:last-child{border-bottom:0}.win-name{font-weight:600}.win-badge{background:#dcfce7;color:#065f46;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}.order-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.os-box{border-radius:12px;padding:14px 10px;text-align:center;display:flex;flex-direction:column;gap:2px}.os-box strong{font-size:24px}.os-box span{font-size:12px;color:#4b5563}.os-green{background:#dcfce7}.os-blue{background:#dbeafe}.os-purple{background:#ede9fe}.os-gray{background:#f3f4f6}.alert-row{display:flex;align-items:center;gap:10px;border-radius:10px;padding:12px 14px;margin-bottom:8px;font-weight:600}.alert-row strong{margin-left:auto;font-size:18px}.alert-red{background:#fee2e2;color:#991b1b}.alert-amber{background:#fef3c7;color:#92400e}.alert-amber2{background:#fef9c3;color:#854d0e}.tabs{display:flex;gap:10px;flex-wrap:wrap}.tab{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:8px 18px;font-size:13px;font-weight:600;color:#374151}.tab.active{background:#16a34a;border-color:#16a34a;color:#fff}.ai-panel{border:1px solid #c7d2fe;background:#f5f3ff}.ai-controls{display:flex;gap:10px;align-items:center}.ai-controls select{border:1px solid #d1d5db;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:600;background:#fff}.ai-summary{font-size:14px;margin:4px 0}.ai-highlights{margin:8px 0 0;padding-left:4px;list-style:none;display:flex;flex-direction:column;gap:4px}.ai-result{display:flex;flex-direction:column;gap:6px}.ads-grid{display:grid;grid-template-columns:300px 1fr 340px;gap:16px;align-items:start}.ads-col{display:flex;flex-direction:column;gap:16px;min-width:0}.ads-col-wide{min-width:0}.store-card{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:12px 14px;margin-bottom:10px;text-align:left}.store-card.active{border-color:#16a34a;background:#f0fdf4;box-shadow:0 0 0 1px #16a34a inset}.store-badge{width:40px;height:40px;border-radius:10px;flex:0 0 40px;background:#fee2e2;color:#dc2626;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:18px}.store-info{flex:1;display:flex;flex-direction:column;min-width:0}.store-info strong{font-size:14px}.store-nums{font-size:12px;color:#6b7280}.store-roas{text-align:right;font-size:11px;color:#6b7280}.store-roas strong{font-size:16px;color:#16a34a}.tbl{width:100%;border-collapse:collapse;font-size:13px;margin-top:6px}.tbl th{text-align:left;color:#6b7280;font-weight:600;padding:8px 6px;border-bottom:1px solid #e5e7eb}.tbl td{padding:10px 6px;border-bottom:1px solid #f3f4f6;vertical-align:top}.tbl tr:last-child td{border-bottom:0}.tbl-compact td,.tbl-compact th{padding:8px 4px}.status-active{color:#16a34a;font-weight:600}.roas-good,.price-down{color:#16a34a}.ai-note{margin-top:12px;font-size:12px;color:#4b5563}.ai-note ul{margin:6px 0 0;padding-left:16px}.rec-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.rec-list li{display:flex;flex-direction:column;gap:2px;border-bottom:1px solid #f3f4f6;padding-bottom:10px}.rec-list li:last-child{border-bottom:0;padding-bottom:0}.rec-list em{color:#6b7280;font-size:12px}.check-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.check-list li{display:flex;gap:10px;align-items:flex-start}.check{width:22px;height:22px;border-radius:50%;flex:0 0 22px;background:#16a34a;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:13px}.filter-bar{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-end}.filter-group{display:flex;flex-direction:column;gap:6px}.filter-label{font-size:12px;font-weight:700;color:#6b7280}.filter-search{flex:1;min-width:240px}.input{border:1px solid #d1d5db;border-radius:999px;padding:8px 14px;font-size:13px;width:100%;outline:none;background:#fff;color:#111827}.input:focus{border-color:#16a34a;box-shadow:0 0 0 2px #dcfce7}.stat-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.stat-box{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}.stat-box strong{font-size:24px}.stat-box span{font-size:12px;color:#4b5563}.stat-amber{background:#fffbeb;border-color:#fde68a}.stat-blue{background:#eff6ff;border-color:#bfdbfe}.stat-purple{background:#f5f3ff;border-color:#ddd6fe}.stat-green{background:#f0fdf4;border-color:#bbf7d0}.stat-red{background:#fef2f2;border-color:#fecaca}.stat-gray{background:#f9fafb;border-color:#e5e7eb}.badge{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}.badge-green{background:#dcfce7;color:#065f46}.badge-amber{background:#fef3c7;color:#92400e}.badge-blue{background:#dbeafe;color:#1e40af}.badge-purple{background:#ede9fe;color:#5b21b6}.badge-red{background:#fee2e2;color:#991b1b}.badge-gray{background:#f3f4f6;color:#4b5563}.tag-green{background:#dcfce7;color:#065f46}.tag-amber{background:#fef3c7;color:#92400e}.tag-gray{background:#f3f4f6;color:#4b5563}.row-click{cursor:pointer}.row-click:hover td{background:#f9fafb}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#11182780;display:flex;align-items:flex-start;justify-content:center;padding:40px 20px;overflow-y:auto}.modal{background:#fff;border-radius:16px;width:100%;max-width:860px;box-shadow:0 20px 50px #00000040}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px 0}.modal-head h2{margin:0;font-size:20px;font-weight:800}.modal-head p{margin:2px 0 0}.modal-close{border:1px solid #e5e7eb;background:#fff;border-radius:50%;width:34px;height:34px;font-size:15px;line-height:1}.modal-body{padding:16px 24px 24px;display:flex;flex-direction:column;gap:12px}.modal-body h3{margin:8px 0 0;font-size:15px;font-weight:800}.modal-body p{margin:0}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 18px;background:#f9fafb;border-radius:12px;padding:16px 18px}.shop-balance-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.shop-balance-card{border:1px solid #e5e7eb;border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:8px;background:#fff}.shop-balance-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.shop-balance-head strong{font-size:15px}.shop-balance-row{display:flex;justify-content:space-between;gap:10px;font-size:13px}.shop-balance-row span{color:#6b7280}.supplier-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.supplier-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:10px}.supplier-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.supplier-head strong{font-size:16px}.supplier-row{display:flex;justify-content:space-between;gap:10px;font-size:13px}.supplier-row span{color:#6b7280}.supplier-row strong{text-align:right}.supplier-actions{display:flex;gap:8px;margin-top:4px}.btn-small{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:6px 14px;font-size:12px;font-weight:700;color:#065f46}.btn-small:hover{background:#f0fdf4}.btn-danger{color:#991b1b}.btn-danger:hover{background:#fef2f2}.type-breakdown{border-top:1px solid #f3f4f6;margin-top:12px;padding-top:12px;display:flex;flex-direction:column;gap:8px}.type-breakdown h3{font-size:13px;font-weight:800;margin:0}
