:root{--bg: #f1f5f9;--surface: #ffffff;--border: #e2e8f0;--border-light: #f1f5f9;--text: #0f172a;--text-2: #475569;--text-3: #94a3b8;--accent: #2563eb;--accent-hover: #1d4ed8;--accent-bg: #eff6ff;--positive: #16a34a;--negative: #dc2626;--pos-bg: #f0fdf4;--neg-bg: #fef2f2;--header-bg: #0f172a;--header-h: 56px;--filter-h: 56px;--radius: 8px;--radius-sm: 5px;--shadow: 0 1px 3px 0 rgb(0 0 0 / .08), 0 1px 2px -1px rgb(0 0 0 / .06);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .08), 0 2px 4px -2px rgb(0 0 0 / .06);--transition: .14s ease}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:14px;-webkit-font-smoothing:antialiased}body{font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text)}button{cursor:pointer;border:none;background:none;font:inherit}input,select{font:inherit}table{border-collapse:collapse}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{position:sticky;top:0;z-index:50;background:var(--header-bg);height:var(--header-h);box-shadow:0 1px #ffffff0f}.header-inner{max-width:1440px;margin:0 auto;padding:0 24px;height:100%;display:flex;align-items:center;justify-content:space-between}.header-brand{display:flex;align-items:center;gap:10px}.header-icon{width:32px;height:32px;background:var(--accent);border-radius:7px;display:grid;place-items:center;color:#fff;flex-shrink:0}.header-title{font-size:15px;font-weight:600;color:#f8fafc;letter-spacing:-.01em}.header-meta{display:flex;align-items:center;gap:12px}.header-updated{font-size:12px;color:#94a3b8}.header-refresh{padding:6px 14px;background:#ffffff14;color:#e2e8f0;border-radius:var(--radius-sm);font-size:13px;font-weight:500;transition:background var(--transition)}.header-refresh:hover:not(:disabled){background:#ffffff24}.header-refresh:disabled{opacity:.5;cursor:not-allowed}.filter-bar{position:sticky;top:var(--header-h);z-index:40;background:var(--surface);border-bottom:1px solid var(--border);box-shadow:var(--shadow)}.filter-bar-inner{max-width:1440px;margin:0 auto;padding:10px 24px;display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.filter-label{display:block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);margin-bottom:4px}.filter-field{display:flex;flex-direction:column}.filter-date,.filter-select{height:34px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:13px;outline:none;transition:border-color var(--transition),box-shadow var(--transition)}.filter-date:focus,.filter-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb1f}.filter-select{padding-right:28px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.tag-input{display:flex;flex-direction:column;position:relative}.tag-trigger{display:flex;align-items:center;gap:6px;height:34px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:13px;white-space:nowrap;min-width:120px;max-width:200px;transition:border-color var(--transition),box-shadow var(--transition)}.tag-trigger:hover{border-color:#cbd5e1}.tag-trigger.open,.tag-trigger:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb1f;outline:none}.tag-trigger.active{border-color:var(--accent);background:var(--accent-bg);color:var(--accent)}.tag-trigger-text{flex:1;overflow:hidden;text-overflow:ellipsis;text-align:left}.tag-clear{font-size:16px;line-height:1;color:var(--text-3);flex-shrink:0;padding:0 2px}.tag-clear:hover{color:var(--negative)}.tag-caret{font-size:10px;color:var(--text-3);flex-shrink:0}.tag-dropdown{position:absolute;top:calc(100% + 4px);left:0;min-width:180px;max-width:240px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);z-index:100;overflow:hidden}.tag-search-wrap{padding:8px;border-bottom:1px solid var(--border-light)}.tag-search{width:100%;height:30px;padding:0 8px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12px;outline:none}.tag-search:focus{border-color:var(--accent)}.tag-list{list-style:none;max-height:220px;overflow-y:auto;padding:4px 0}.tag-option{display:flex;align-items:center;gap:8px;padding:7px 12px;font-size:13px;cursor:pointer;transition:background var(--transition)}.tag-option:hover{background:var(--bg)}.tag-option.selected{color:var(--accent);background:var(--accent-bg)}.tag-check{width:14px;font-size:12px;flex-shrink:0;color:var(--accent)}.tag-empty{padding:10px 12px;font-size:12px;color:var(--text-3)}.app-main{flex:1;max-width:1440px;margin:0 auto;width:100%;padding:24px;display:flex;flex-direction:column;gap:20px}.state-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:80px 24px;color:var(--text-2)}.spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-box{background:var(--neg-bg);border:1px solid #fca5a5;border-radius:var(--radius);padding:20px 24px;max-width:520px;display:flex;flex-direction:column;gap:10px}.error-box strong{color:var(--negative)}.error-box pre{font-size:12px;color:var(--text-2);white-space:pre-wrap}.kpi-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.kpi-header{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 20px;border-bottom:1px solid var(--border-light);background:#fafbfd}.kpi-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-3)}.kpi-range{font-size:13px;font-weight:500;color:var(--text)}.kpi-prev-label{font-size:12px;color:var(--text-3);margin-left:auto}.kpi-grid{display:grid;grid-template-columns:repeat(10,1fr);divide-x:1px solid var(--border-light)}@media (max-width: 1200px){.kpi-grid{grid-template-columns:repeat(5,1fr)}}@media (max-width: 640px){.kpi-grid{grid-template-columns:repeat(2,1fr)}}.kpi-card{padding:16px 20px;border-right:1px solid var(--border-light);display:flex;flex-direction:column;gap:4px;transition:background var(--transition)}.kpi-card:last-child{border-right:none}.kpi-card:hover{background:#fafbfd}.kpi-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3)}.kpi-value{font-size:20px;font-weight:700;color:var(--text);letter-spacing:-.02em;line-height:1.2}.kpi-delta{font-size:11px;font-weight:600}.kpi-delta.good{color:var(--positive)}.kpi-delta.bad{color:var(--negative)}.kpi-delta-placeholder{height:16px}.charts-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media (max-width: 900px){.charts-grid{grid-template-columns:1fr}}.chart-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.chart-card-title{font-size:13px;font-weight:600;color:var(--text);margin-bottom:16px}.chart-body{height:220px}.charts-empty{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:48px 24px;text-align:center;color:var(--text-3);font-size:14px}.chart-tooltip{background:var(--header-bg);color:#f1f5f9;border-radius:var(--radius-sm);padding:10px 14px;font-size:12px;box-shadow:var(--shadow-md);min-width:160px}.chart-tooltip-date{font-weight:600;margin-bottom:6px;color:#94a3b8}.chart-tooltip-row{display:flex;align-items:center;gap:6px;margin-top:4px}.chart-tooltip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.chart-tooltip-name{color:#94a3b8;flex:1}.chart-tooltip-val{font-weight:600}.top10-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.top10-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 20px;border-bottom:1px solid var(--border-light);background:#fafbfd}.top10-heading{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-3)}.top10-period-label{font-size:12px;color:var(--text-3)}.top10-toggles{display:flex;align-items:center;gap:10px;margin-left:auto}.top10-ctrl-label{font-size:12px;font-weight:500;color:var(--text-2)}.top10-select{height:32px;padding:0 28px 0 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-weight:500;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E") no-repeat right 9px center;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer}.top10-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb1a}.top10-tables{display:grid;grid-template-columns:1fr 1fr;divide-x:1px solid var(--border-light)}@media (max-width: 900px){.top10-tables{grid-template-columns:1fr}}.rank-table-wrap{padding:20px}.rank-table-wrap+.rank-table-wrap{border-left:1px solid var(--border-light)}@media (max-width: 900px){.rank-table-wrap+.rank-table-wrap{border-left:none;border-top:1px solid var(--border-light)}}.rank-table-title{font-size:13px;font-weight:600;margin-bottom:12px}.rank-table{width:100%;font-size:13px}.rank-table thead tr{border-bottom:2px solid var(--border)}.rank-table th{padding:8px 10px;text-align:right;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-3);white-space:nowrap}.rank-table th:first-child,.rank-table th:nth-child(2){text-align:left}.rank-table td{padding:7px 10px}.rank-table tr.even{background:#fafbfd}.rank-table tr:hover td{background:var(--accent-bg)}.rank-num{text-align:right;font-variant-numeric:tabular-nums;color:var(--text-2)}.rank-iata{font-weight:600;color:var(--text);text-align:left}.rank-empty{text-align:center;color:var(--text-3);padding:24px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#cbd5e1}
