:root{color:#1f2933;background:#f4f6f8;font-family:Inter,PingFang SC,Hiragino Sans GB,Microsoft YaHei,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.sidebar{background:#15202b;color:#f8fafc;padding:26px 22px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;align-self:start;height:100vh;overflow-y:auto}.brand-block{display:flex;align-items:center;gap:14px}.brand-mark{width:44px;height:44px;border-radius:8px;display:grid;place-items:center;background:#2dd4bf;color:#06211f}h1,h2,h3,p{margin:0}.brand-block h1{font-size:22px;letter-spacing:0}.brand-block p,.source-line small,.nav-item{color:#b8c5d4}.nav-list{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border-radius:8px;text-decoration:none}.nav-item.active,.nav-item:hover{background:#253342;color:#fff}.source-rail{display:grid;gap:12px}.source-rail h2{font-size:15px}.source-line{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-top:1px solid #2f3e4d}.source-line strong,.source-line small{display:block}.source-line strong{font-size:13px}.source-line small{margin-top:4px;line-height:1.4}.status-dot{width:9px;height:9px;border-radius:50%;margin-top:5px}.status-dot.ready{background:#34d399}.status-dot.pending{background:#fbbf24}.empty-hint{padding:18px;text-align:center;color:#94a3b8;font-size:13px}.workspace{padding:28px;display:grid;gap:20px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px}.eyebrow{color:#0f766e;font-size:13px;font-weight:700;margin-bottom:6px}.topbar h2{font-size:28px;color:#111827;letter-spacing:0}.filters{display:grid;grid-template-columns:1fr;gap:14px}.field{display:grid;gap:6px;color:#52616f;font-size:13px;font-weight:700}.sidebar .field{color:#b8c5d4}.field select,.field input[type=date]{height:42px;border:1px solid #d7dee8;border-radius:8px;color:#111827;background:#fff;padding:0 12px;font:inherit}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.table-panel,.history-panel,.new-products,.pipeline,.modal-card{background:#fff;border:1px solid #dce3ec;border-radius:8px;padding:18px;box-shadow:0 8px 22px #1118270d}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.panel-heading h3{font-size:18px;color:#111827}.panel-heading p{color:#667789;font-size:13px;margin-top:4px}.pill,.metric-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border-radius:999px;background:#e7f8f5;color:#0f766e;font-size:13px;font-weight:700}.rank-table{display:grid;gap:6px}.rank-row{display:grid;grid-template-columns:56px minmax(190px,1.4fr) minmax(140px,.9fr) 110px;gap:12px;align-items:center;width:100%;min-height:58px;border:1px solid transparent;border-radius:8px;background:#f8fafc;color:#22303d;padding:8px 10px;text-align:left}.rank-row>span:nth-child(3),.rank-row>span:nth-child(4){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-row:not(.table-head){cursor:pointer}.rank-row:not(.table-head):hover,.rank-row.selected{border-color:#14b8a6;background:#f0fdfa}.table-head{min-height:36px;background:transparent;color:#6b7b8c;font-size:12px;font-weight:700}.rank-num{font-size:22px;font-weight:800;color:#0f172a}.product-cell{display:flex;align-items:center;gap:12px;min-width:0}.product-cell strong,.product-card strong{display:block;color:#111827;overflow-wrap:anywhere}.product-cell small,.product-card small{display:block;color:#657488;margin-top:3px}.app-icon{width:38px;height:38px;border-radius:8px;overflow:hidden;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-weight:800;flex:0 0 auto}.app-icon.large{width:54px;height:54px}.app-icon img{width:100%;height:100%;object-fit:cover}.change{display:inline-flex;align-items:center;gap:4px;font-weight:700}.change.up{color:#059669}.change.down{color:#dc2626}.change.neutral{color:#7a8696}.chart-wrap{background:#f8fafc;border-radius:8px;padding:14px 8px 8px}.chart-wrap.empty-hint{padding:18px}.product-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.product-facts div{background:#f7f9fb;border-radius:8px;padding:10px}.product-facts small{color:#6b7280}.product-facts strong{display:block;margin-top:4px;color:#111827;overflow-wrap:anywhere}.segmented{display:inline-flex;background:#edf2f7;border-radius:8px;padding:3px}.segmented button{border:0;background:transparent;min-width:48px;height:32px;border-radius:6px;color:#52616f;cursor:pointer}.segmented button.active{background:#fff;color:#0f766e;font-weight:800;box-shadow:0 1px 4px #0f172a1f}.new-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px}#charts,#new,#game-new{scroll-margin-top:16px}.topbar-filter{display:flex;align-items:center;gap:10px}.topbar-filter-label{font-size:13px;font-weight:700;color:#52616f;white-space:nowrap}.game-new{background:#fff;border:1px solid #dce3ec;border-radius:8px;padding:18px;box-shadow:0 8px 22px #1118270d}.region-group{padding:14px 0;border-top:1px solid #eef2f7}.region-group:first-of-type{border-top:0;padding-top:4px}.region-title{font-size:16px;color:#111827;margin-bottom:10px}.subgroup{margin-bottom:12px}.subgroup-title{font-size:13px;font-weight:700;color:#0f766e;margin:6px 0 8px}.product-card{position:relative;border:1px solid #dce3ec;border-radius:8px;background:#fff;padding:12px 10px;display:grid;gap:6px;justify-items:center;align-content:start;text-align:center;cursor:pointer}.new-rank{position:absolute;top:8px;left:8px;font-size:13px;font-weight:800;color:#0f766e;background:#ecfdf5;border:1px solid #99f6e4;border-radius:999px;padding:1px 8px;line-height:1.5}.product-card:hover{border-color:#14b8a6}.product-card strong{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card small{font-size:11px}.product-card .metric-badge{font-size:11px;min-height:22px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pipeline-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.pipeline-steps span{min-height:48px;display:grid;place-items:center;text-align:center;background:#eff6ff;color:#1e3a8a;border-radius:8px;font-weight:700;font-size:13px}@media(max-width:1120px){.app-shell{grid-template-columns:1fr}.sidebar{position:static}.filters{grid-template-columns:repeat(4,minmax(140px,1fr))}.new-grid,.pipeline-steps{grid-template-columns:1fr 1fr}}@media(max-width:760px){.workspace,.sidebar{padding:18px}.topbar,.panel-heading{align-items:stretch;flex-direction:column}.topbar h2{font-size:22px}.dashboard-grid,.new-grid,.product-facts,.pipeline-steps{grid-template-columns:1fr;min-width:0}.filters{grid-template-columns:1fr 1fr;min-width:0}.rank-table{overflow-x:auto;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.rank-row{min-width:680px}}@media(max-width:480px){.workspace,.sidebar{padding:14px}.sidebar{flex-flow:row wrap;align-items:center;justify-content:space-between;gap:10px;height:auto;position:sticky;top:0;z-index:50}.brand-block{display:none}.sidebar .nav-list{grid-auto-flow:column;gap:6px}.sidebar .filters{flex-basis:100%;width:100%;grid-template-columns:repeat(4,1fr);gap:6px}.sidebar .field{font-size:10px;gap:3px}.sidebar .field select,.sidebar .field input[type=date]{height:36px;padding:0 5px;font-size:12px;min-width:0;width:100%}#charts,#new,#game-new{scroll-margin-top:150px}.nav-item{padding:0 10px}.panel-heading .segmented{flex-wrap:wrap;width:100%}.segmented button{flex:1 1 auto;min-height:44px;min-width:52px}.rank-table{overflow-x:visible}.table-head{display:none}.rank-row{min-width:0;grid-template-columns:auto 1fr auto;grid-template-areas:"rank product product" "rank pub     date";column-gap:10px;row-gap:2px;padding:10px}.rank-row>.rank-num{grid-area:rank;align-self:center;font-size:20px;min-width:26px;text-align:center}.rank-row>.product-cell{grid-area:product}.rank-row>span:nth-child(3){grid-area:pub}.rank-row>span:nth-child(4){grid-area:date;text-align:right}.rank-row>span:nth-child(3),.rank-row>span:nth-child(4){font-size:12px;color:#657488;align-self:center}.product-cell strong{font-size:14px}.new-grid{grid-template-columns:1fr 1fr;gap:10px}.modal-overlay{padding:10px}.modal-card{padding:14px;max-height:92vh}.modal-header .app-icon{width:56px;height:56px}.modal-header h2{font-size:18px}.shots-rail img{height:220px}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:grid;place-items:center;padding:24px;z-index:50}.modal-card{width:min(860px,100%);max-height:88vh;overflow-y:auto;position:relative}.modal-close{position:absolute;top:14px;right:14px;border:none;background:#f1f5f9;color:#334155;width:32px;height:32px;border-radius:50%;cursor:pointer;display:grid;place-items:center}.modal-close:hover{background:#e2e8f0}.modal-header{display:flex;gap:16px;align-items:center;padding-right:40px}.modal-header .app-icon{width:72px;height:72px}.modal-header h2{margin:0 0 4px;font-size:20px}.modal-header .modal-sub{color:#64748b;font-size:13px}.modal-actions{margin-top:6px}.store-link{display:inline-block;font-size:12px;color:#2563eb;text-decoration:none;font-weight:600}.store-link:hover{text-decoration:underline}.modal-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:18px 0}.modal-meta>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px}.modal-meta small{color:#94a3b8;font-size:11px;display:block}.modal-meta strong{font-size:14px}.modal-section-title{font-size:13px;font-weight:700;color:#475569;margin:18px 0 10px}.shots-rail{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px}.shots-rail img{height:320px;border-radius:12px;border:1px solid #e2e8f0;flex:0 0 auto}.modal-desc{white-space:pre-wrap;font-size:13px;line-height:1.6;color:#334155;max-height:180px;overflow-y:auto}.rank-row.clickable{cursor:pointer}.rating-inline{display:inline-flex;align-items:center;gap:4px}.rating-inline small{color:#94a3b8;font-weight:500}.rank-tooltip{background:#0f172a;color:#f8fafc;border-radius:8px;padding:6px 10px;font-size:12px;box-shadow:0 6px 18px #0f172a40}.rank-tooltip-date{color:#94a3b8}.rank-tooltip-rank{font-size:16px;font-weight:800;margin-top:2px}
