*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#111827;background:#fff}a{color:#e60023}.layout{display:flex;min-height:100vh}.content{flex:1;min-width:0;display:flex;flex-direction:column}.rail{width:88px;flex-shrink:0;background:#fff;border-right:1px solid #e5e7eb;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;align-items:center;padding:12px 0}.rail-logo{display:block;padding:4px 0 12px}.rail-logo img{width:36px;height:36px;display:block}.rail-nav{display:flex;flex-direction:column;gap:4px;flex:1;overflow-y:auto}.rail-bottom{display:flex;flex-direction:column;gap:4px;border-top:1px solid #e5e7eb;padding-top:8px}.rail-item{display:flex;flex-direction:column;align-items:center;gap:3px;width:76px;padding:8px 2px;border-radius:10px;border:0;background:transparent;color:#374151;text-decoration:none;font-size:11px;font-weight:600;cursor:pointer}.rail-item svg{color:#111827}.rail-item:hover{background:#fef2f2;color:#e60023}.rail-item:hover svg{color:#e60023}.rail-item.active{background:#fef2f2;color:#e60023}.rail-item.active svg{color:#e60023}button.rail-item{font:inherit;font-size:11px;font-weight:600}.mobile-header{display:none}.mobile-header .brand{display:flex;align-items:center;gap:8px;padding:12px 16px;font-weight:800;font-size:18px;color:#111827;text-decoration:none}.mobile-header .brand img{width:28px;height:28px}.mobile-header .brand .brand-pin{color:#e60023}.mobile-header .brand .brand-style{color:#111827}.bottom-nav,.menu-sheet-backdrop{display:none}main{flex:1;padding:24px;max-width:1000px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;margin-bottom:16px}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}@media (min-width: 720px){.stats{grid-template-columns:repeat(3,1fr)}}.stat{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.stat-link{color:inherit;text-decoration:none;display:block;cursor:pointer}.stat-link:hover{border-color:#e60023}.stat-link:focus-visible{outline:2px solid #e60023;outline-offset:2px}.stat-head{display:flex;align-items:center;gap:8px;color:#6b7280;font-weight:600;font-size:13px}.stat-head svg{color:#e60023;flex-shrink:0}.stat b{font-size:28px;display:block;margin-top:6px}.trend{font-size:12px;font-weight:700;margin-left:auto;padding:2px 8px;border-radius:999px}.trend.up{color:#15803d;background:#f0fdf4}.trend.down{color:#b91c1c;background:#fef2f2}.trend.flat{color:#6b7280;background:#f3f4f6}.sparkline{display:block;margin-top:10px;width:100%;height:36px}.stat-note{font-size:12px;color:#6b7280;margin:8px 0 0}.time-selector{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}.time-selector button{border:1px solid #e5e7eb;background:#fff;color:#111827;border-radius:999px;padding:6px 14px;cursor:pointer;font-weight:600}.time-selector button.active{background:#e60023;color:#fff;border-color:#e60023}.totals-row{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px;color:#374151;font-size:14px}.totals-row b{color:#111827}label{display:block;margin:12px 0 4px;font-weight:600}input,textarea,select{width:100%;padding:10px;border:1px solid #d1d5db;border-radius:8px;font:inherit}input:focus,textarea:focus,select:focus{outline:2px solid #e60023;outline-offset:0;border-color:#e60023}button{background:#e60023;color:#fff;border:0;border-radius:8px;padding:10px 18px;cursor:pointer;font-weight:600}button:hover{background:#ad081b}button:disabled{opacity:.6;cursor:default}button.secondary{background:#fff;color:#111827;border:1px solid #d1d5db}button.secondary:hover{border-color:#e60023;color:#e60023}.empty{color:#6b7280}.error-text{color:#b91c1c}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:10px;border-bottom:1px solid #e5e7eb}.media-slot{border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin:12px 0}.media-slot h3{margin:0 0 8px;font-size:15px}.media-slot .slot-mode{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}.media-slot .slot-mode button{padding:6px 14px}.media-slot .slot-mode button:not(.active){background:#fff;color:#111827;border:1px solid #d1d5db}.media-slot .slot-mode button.active{background:#e60023;color:#fff}.media-slot .link-row{display:flex;gap:8px}.media-slot .link-row input{flex:1}.media-slot .link-row button{flex-shrink:0}.media-slot .slot-add{background:#e60023;color:#fff}.media-slot .slot-add:hover{background:#ad081b}.media-preview{max-width:160px;max-height:160px;border-radius:8px;margin-top:8px;display:block}.media-file-name{font-size:13px;color:#374151;margin:8px 0 0;word-break:break-all}.upload-progress{font-size:13px;font-weight:700;color:#e60023;margin:8px 0 0}.back-btn{display:none;margin-bottom:12px}.feature-menu{display:none}.chart-box{margin-bottom:16px}.chart-number{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.chart-number b{font-size:36px}.chart-number .trend{margin-left:0}.chart-range{color:#6b7280;font-size:13px;font-weight:600}.big-chart{display:block;width:100%;height:180px;margin-top:12px}.summary-box h2{margin:0 0 8px;font-size:16px}.summary-box tr.selected td{background:#fef2f2;font-weight:700}.summary-box td:last-child{text-align:right;font-weight:600}.ranking-list{padding:8px 16px}.ranking-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e5e7eb}.ranking-row:last-child{border-bottom:0}.ranking-rank{font-weight:800;color:#e60023;min-width:28px}.ranking-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.ranking-name{font-weight:600;word-break:break-word}.ranking-code{font-size:12px;color:#6b7280}.ranking-count{font-weight:700;white-space:nowrap}.share-bar{display:block;height:8px;background:#fee2e2;border-radius:999px;overflow:hidden}.share-bar span{display:block;height:100%;background:#e60023;border-radius:999px}.country-flag{min-width:44px;height:28px;display:inline-flex;align-items:center;justify-content:center;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;font-size:12px;font-weight:800;color:#111827}.signin-wrap{max-width:420px;margin:48px auto 0;text-align:center}.signin-wrap .brand-line{display:inline-flex;align-items:center;gap:8px;font-size:26px;font-weight:800}.signin-wrap .brand-line img{width:32px;height:32px}.signin-wrap .brand-pin{color:#e60023}.signin-wrap .brand-style{color:#111827}.signin-wrap form{text-align:left;margin-top:20px}.signin-wrap form button[type=submit]{width:100%;margin-top:16px;padding:12px;font-size:15px}@media (max-width: 640px){.layout{flex-direction:column}.rail{display:none}.mobile-header{display:block;border-bottom:1px solid #e5e7eb;background:#fff}main{padding:16px 16px 96px}.back-btn{display:inline-flex;align-items:center}.feature-menu{display:flex;flex-direction:column;margin-top:20px;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.feature-menu-item{display:flex;align-items:center;gap:10px;padding:13px 16px;color:#111827;text-decoration:none;font-weight:600;border-bottom:1px solid #e5e7eb}.feature-menu-item:last-child{border-bottom:0}.feature-menu-item svg{color:#e60023}.feature-menu-item span:last-child{margin-left:auto;color:#9ca3af}.bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid #e5e7eb;padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}.bottom-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border:0;background:transparent;color:#374151;text-decoration:none;font-size:11px;font-weight:600;cursor:pointer;font-family:inherit}.bottom-nav-item svg{color:#111827}.bottom-nav-item.active{color:#e60023}.bottom-nav-item.active svg{color:#e60023}.menu-sheet-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0006;display:flex;align-items:flex-end}.menu-sheet{width:100%;background:#fff;border-radius:16px 16px 0 0;padding:12px 16px calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column}.menu-sheet-item{display:flex;align-items:center;gap:10px;padding:13px 8px;color:#111827;text-decoration:none;font-weight:600;background:transparent;border:0;border-bottom:1px solid #e5e7eb;cursor:pointer;font:inherit;text-align:left}.menu-sheet-item svg{color:#e60023}.menu-sheet-close{margin-top:12px}}
