// Mock data for Track B — Market Intelligence desk.
// Three streams: SKU price monitoring, PR/news aggregation, school tender monitoring.

// — SKU price monitoring ————————————————————————————————————

const TL_TRACKED_SKUS = [
  {
    id: 'sku-yam-u1j',
    sku: 'YAM-U1J-PE',
    name: 'Yamaha U1J Upright Piano',
    nameZh: 'Yamaha U1J 直立式鋼琴',
    category: 'Piano',
    image: '🎹',
    ourPrice: 89800,
    ourPriceLabel: 'HK$89,800',
    rrp: 92000,
    competitors: [
      { site: 'Tom Lee Music',     price: 89800, url: 'tomleemusic.com.hk',     ours: true,  checkedAt: '2026-04-29 09:14' },
      { site: 'Parsons Music',     price: 88500, url: 'parsonsmusic.com',                    checkedAt: '2026-04-29 09:14', delta: -1300 },
      { site: 'Carlsbro HK',       price: 91200, url: 'carlsbro.com.hk',                     checkedAt: '2026-04-29 09:14', delta:  1400 },
      { site: 'Yamaha Music HK',   price: 92000, url: 'hk.yamaha.com',                       checkedAt: '2026-04-29 09:14', delta:  2200 },
      { site: 'Taobao (HK ship)',  price: 84200, url: 'taobao.com',           grey: true,    checkedAt: '2026-04-29 08:02', delta: -5600 },
    ],
    lowest: { site: 'Taobao (HK ship)', price: 84200, grey: true },
    lowestNonGrey: { site: 'Parsons Music', price: 88500 },
    alert: 'critical',
    alertReason: 'Parsons undercutting by HK$1,300 (1.4%)',
    alertReasonZh: '柏斯音樂低於我方 HK$1,300（1.4%）',
    history: [89800, 89800, 89800, 89800, 89800, 89800, 89800, 89800, 88500, 88500, 88500, 88500],
    competitorHistory: [90100, 90100, 90100, 89800, 89800, 89500, 89500, 89000, 88500, 88500, 88500, 88500],
  },
  {
    id: 'sku-fender-strat',
    sku: 'FNDR-PSTRAT-3TS',
    name: 'Fender Player Stratocaster · 3-Tone Sunburst',
    nameZh: 'Fender Player Stratocaster · 三色漸層',
    category: 'Guitar',
    image: '🎸',
    ourPrice: 6480,
    ourPriceLabel: 'HK$6,480',
    rrp: 6800,
    competitors: [
      { site: 'Tom Lee Music',    price: 6480, url: 'tomleemusic.com.hk', ours: true,  checkedAt: '2026-04-29 09:14' },
      { site: 'Parsons Music',    price: 6580, url: 'parsonsmusic.com',                checkedAt: '2026-04-29 09:14', delta: 100 },
      { site: 'Tom Lee TaiPo',    price: 6480, url: 'tomleemusic.com.hk', ours: true,  checkedAt: '2026-04-29 09:14', delta: 0 },
      { site: 'Sweetwater (intl)',price: 5990, url: 'sweetwater.com',     grey: true,  checkedAt: '2026-04-29 08:02', delta: -490 },
      { site: 'Thomann (intl)',   price: 5740, url: 'thomann.de',         grey: true,  checkedAt: '2026-04-29 08:02', delta: -740 },
    ],
    lowest: { site: 'Thomann (intl)', price: 5740, grey: true },
    lowestNonGrey: { site: 'Tom Lee Music', price: 6480 },
    alert: 'ok',
    alertReason: 'Lowest in HK market',
    alertReasonZh: '本地最低價',
    history: [6680, 6680, 6680, 6580, 6580, 6580, 6480, 6480, 6480, 6480, 6480, 6480],
    competitorHistory: [6800, 6800, 6800, 6680, 6680, 6680, 6580, 6580, 6580, 6580, 6580, 6580],
  },
  {
    id: 'sku-roland-fp30',
    sku: 'RLD-FP30X-BK',
    name: 'Roland FP-30X Digital Piano · Black',
    nameZh: 'Roland FP-30X 數碼鋼琴 · 黑',
    category: 'Digital Piano',
    image: '🎹',
    ourPrice: 6280,
    ourPriceLabel: 'HK$6,280',
    rrp: 6580,
    competitors: [
      { site: 'Tom Lee Music',    price: 6280, url: 'tomleemusic.com.hk', ours: true,  checkedAt: '2026-04-29 09:14' },
      { site: 'Parsons Music',    price: 6180, url: 'parsonsmusic.com',                checkedAt: '2026-04-29 09:14', delta: -100 },
      { site: 'Roland HK',        price: 6580, url: 'roland.com',                      checkedAt: '2026-04-29 09:14', delta:  300 },
      { site: 'HKTVMall',         price: 5980, url: 'hktvmall.com',                    checkedAt: '2026-04-29 09:14', delta: -300 },
    ],
    lowest: { site: 'HKTVMall', price: 5980 },
    lowestNonGrey: { site: 'HKTVMall', price: 5980 },
    alert: 'warning',
    alertReason: 'HKTVMall HK$300 cheaper · Parsons HK$100 cheaper',
    alertReasonZh: 'HKTVMall 平 HK$300 · 柏斯 平 HK$100',
    history: [6580, 6580, 6580, 6480, 6480, 6480, 6280, 6280, 6280, 6280, 6280, 6280],
    competitorHistory: [6680, 6680, 6580, 6480, 6480, 6280, 6180, 6180, 6080, 6080, 5980, 5980],
  },
  {
    id: 'sku-shure-sm58',
    sku: 'SHR-SM58',
    name: 'Shure SM58 Dynamic Microphone',
    nameZh: 'Shure SM58 動圈麥克風',
    category: 'Audio',
    image: '🎤',
    ourPrice: 1180,
    ourPriceLabel: 'HK$1,180',
    rrp: 1280,
    competitors: [
      { site: 'Tom Lee Music',  price: 1180, url: 'tomleemusic.com.hk', ours: true,  checkedAt: '2026-04-29 09:14' },
      { site: 'Parsons Music',  price: 1180, url: 'parsonsmusic.com',                checkedAt: '2026-04-29 09:14', delta: 0 },
      { site: 'DigitalRev',     price: 1090, url: 'digitalrev.com',                  checkedAt: '2026-04-29 09:14', delta: -90 },
      { site: 'B&H (intl)',     price:  950, url: 'bhphotovideo.com',  grey: true,   checkedAt: '2026-04-29 08:02', delta: -230 },
    ],
    lowest: { site: 'B&H (intl)', price: 950, grey: true },
    lowestNonGrey: { site: 'DigitalRev', price: 1090 },
    alert: 'warning',
    alertReason: 'DigitalRev HK$90 cheaper',
    alertReasonZh: 'DigitalRev 平 HK$90',
    history: [1280, 1280, 1280, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1180, 1180],
    competitorHistory: [1280, 1280, 1280, 1280, 1280, 1180, 1180, 1180, 1090, 1090, 1090, 1090],
  },
  {
    id: 'sku-kawai-k300',
    sku: 'KWAI-K300-EP',
    name: 'Kawai K-300 Upright Piano',
    nameZh: 'Kawai K-300 直立式鋼琴',
    category: 'Piano',
    image: '🎹',
    ourPrice: 78500,
    ourPriceLabel: 'HK$78,500',
    rrp: 82000,
    competitors: [
      { site: 'Tom Lee Music',  price: 78500, url: 'tomleemusic.com.hk', ours: true,  checkedAt: '2026-04-29 09:14' },
      { site: 'Parsons Music',  price: 79800, url: 'parsonsmusic.com',                checkedAt: '2026-04-29 09:14', delta:  1300 },
      { site: 'Kawai HK',       price: 82000, url: 'kawai-global.com',                checkedAt: '2026-04-29 09:14', delta:  3500 },
    ],
    lowest: { site: 'Tom Lee Music', price: 78500, ours: true },
    lowestNonGrey: { site: 'Tom Lee Music', price: 78500, ours: true },
    alert: 'ok',
    alertReason: 'Lowest tracked price',
    alertReasonZh: '所有渠道中最低',
    history: [82000, 82000, 80500, 80500, 79800, 79800, 78500, 78500, 78500, 78500, 78500, 78500],
    competitorHistory: [82000, 82000, 82000, 81500, 81500, 80800, 80500, 80500, 79800, 79800, 79800, 79800],
  },
  {
    id: 'sku-rode-nt1',
    sku: 'RODE-NT1-5G',
    name: 'Rode NT1 5th Gen Condenser Mic',
    nameZh: 'Rode NT1 第五代電容麥克風',
    category: 'Audio',
    image: '🎤',
    ourPrice: 2480,
    ourPriceLabel: 'HK$2,480',
    rrp: 2680,
    competitors: [
      { site: 'Tom Lee Music',  price: 2480, url: 'tomleemusic.com.hk', ours: true,  checkedAt: '2026-04-29 09:14' },
      { site: 'Parsons Music',  price: 2580, url: 'parsonsmusic.com',                checkedAt: '2026-04-29 09:14', delta:  100 },
      { site: 'DigitalRev',     price: 2380, url: 'digitalrev.com',                  checkedAt: '2026-04-29 09:14', delta: -100 },
      { site: 'HKTVMall',       price: 2480, url: 'hktvmall.com',                    checkedAt: '2026-04-29 09:14', delta:  0 },
    ],
    lowest: { site: 'DigitalRev', price: 2380 },
    lowestNonGrey: { site: 'DigitalRev', price: 2380 },
    alert: 'warning',
    alertReason: 'DigitalRev HK$100 cheaper',
    alertReasonZh: 'DigitalRev 平 HK$100',
    history: [2680, 2680, 2680, 2580, 2580, 2580, 2480, 2480, 2480, 2480, 2480, 2480],
    competitorHistory: [2680, 2680, 2680, 2580, 2580, 2580, 2580, 2480, 2480, 2380, 2380, 2380],
  },
];

const TL_PRICE_SOURCES = [
  { id: 'parsons',    name: 'Parsons Music',     domain: 'parsonsmusic.com',     enabled: true,  region: 'HK',   skus: 142, lastRun: '09:14',  status: 'ok' },
  { id: 'yamaha',     name: 'Yamaha Music HK',   domain: 'hk.yamaha.com',        enabled: true,  region: 'HK',   skus: 38,  lastRun: '09:14',  status: 'ok' },
  { id: 'roland',     name: 'Roland HK',         domain: 'roland.com',           enabled: true,  region: 'HK',   skus: 24,  lastRun: '09:14',  status: 'ok' },
  { id: 'kawai',      name: 'Kawai HK',          domain: 'kawai-global.com',     enabled: true,  region: 'HK',   skus: 12,  lastRun: '09:14',  status: 'ok' },
  { id: 'hktvmall',   name: 'HKTVMall',          domain: 'hktvmall.com',         enabled: true,  region: 'HK',   skus: 89,  lastRun: '09:14',  status: 'ok' },
  { id: 'digitalrev', name: 'DigitalRev',        domain: 'digitalrev.com',       enabled: true,  region: 'HK',   skus: 47,  lastRun: '09:14',  status: 'ok' },
  { id: 'carlsbro',   name: 'Carlsbro HK',       domain: 'carlsbro.com.hk',      enabled: true,  region: 'HK',   skus: 23,  lastRun: '09:14',  status: 'ok' },
  { id: 'taobao',     name: 'Taobao (HK ship)',  domain: 'taobao.com',           enabled: true,  region: 'CN',   skus: 64,  lastRun: '08:02',  status: 'grey', note: 'Grey market — informational' },
  { id: 'thomann',    name: 'Thomann',           domain: 'thomann.de',           enabled: true,  region: 'INTL', skus: 31,  lastRun: '08:02',  status: 'grey', note: 'Intl shipping reference' },
  { id: 'sweetwater', name: 'Sweetwater',        domain: 'sweetwater.com',       enabled: true,  region: 'INTL', skus: 28,  lastRun: '08:02',  status: 'grey' },
  { id: 'bh',         name: 'B&H Photo',         domain: 'bhphotovideo.com',     enabled: true,  region: 'INTL', skus: 19,  lastRun: '08:02',  status: 'grey' },
  { id: 'amazon',     name: 'Amazon Japan',      domain: 'amazon.co.jp',         enabled: false, region: 'INTL', skus: 0,   lastRun: '—',      status: 'off' },
];

const TL_PRICE_ALERTS_LOG = [
  { id: 1, ts: '2026-04-29 09:14', sku: 'YAM-U1J-PE',     msg: 'Parsons dropped to HK$88,500 (-HK$1,300 vs ours)', severity: 'critical', dept: 'Piano · Retail', ack: false },
  { id: 2, ts: '2026-04-29 09:14', sku: 'RLD-FP30X-BK',   msg: 'HKTVMall flash sale: HK$5,980 (-HK$300)',          severity: 'critical', dept: 'Digital Piano',  ack: false },
  { id: 3, ts: '2026-04-29 09:14', sku: 'SHR-SM58',       msg: 'DigitalRev dropped to HK$1,090 (-HK$90)',          severity: 'warning',  dept: 'Audio · Retail', ack: false },
  { id: 4, ts: '2026-04-29 09:14', sku: 'RODE-NT1-5G',    msg: 'DigitalRev dropped to HK$2,380 (-HK$100)',         severity: 'warning',  dept: 'Audio · Retail', ack: true  },
  { id: 5, ts: '2026-04-28 17:42', sku: 'YAM-U1J-PE',     msg: 'Carlsbro raised to HK$91,200 (+HK$200)',           severity: 'info',     dept: 'Piano · Retail', ack: true  },
  { id: 6, ts: '2026-04-28 09:14', sku: 'FNDR-PSTRAT-3TS',msg: 'Parsons matched our HK$6,480',                     severity: 'info',     dept: 'Guitar',         ack: true  },
];

// — News & PR aggregation ————————————————————————————————————

const TL_NEWS_SOURCES_BREAKDOWN = [
  { kind: 'News',        count: 142, color: '#141414' },
  { kind: 'Social',      count: 318, color: '#6B6B6B' },
  { kind: 'Video',       count:  47, color: '#A0A0A0' },
  { kind: 'Forums',      count:  28, color: '#C8C8C8' },
];

const TL_TRENDING_TOPICS = [
  { rank: 1, topic: 'Acoustic guitar lessons',    topicZh: '木結他課程',     mentions: 412, change:  0.34, sentiment: 'pos' },
  { rank: 2, topic: 'Piano graded exams (ABRSM)', topicZh: '鋼琴英皇考試',   mentions: 287, change:  0.18, sentiment: 'pos' },
  { rank: 3, topic: 'Adult violin beginners',     topicZh: '成人小提琴初學', mentions: 198, change:  0.51, sentiment: 'pos' },
  { rank: 4, topic: 'Ukulele · K-pop covers',     topicZh: 'Ukulele · K-pop',mentions: 184, change:  0.92, sentiment: 'pos' },
  { rank: 5, topic: 'Drum lessons children',      topicZh: '兒童鼓課',       mentions: 156, change:  0.08, sentiment: 'pos' },
  { rank: 6, topic: 'Music room rental Mongkok',  topicZh: '旺角琴房租用',   mentions: 121, change: -0.12, sentiment: 'neu' },
  { rank: 7, topic: 'Yamaha Clavinova review',    topicZh: 'Yamaha Clavinova',mentions: 94, change:  0.22, sentiment: 'pos' },
];

const TL_TRENDING_INSTRUMENTS = [
  { name: 'Acoustic Guitar', share: 0.28, change:  0.04 },
  { name: 'Piano',           share: 0.24, change:  0.02 },
  { name: 'Ukulele',         share: 0.14, change:  0.06 },
  { name: 'Violin',          share: 0.11, change:  0.03 },
  { name: 'Electric Guitar', share: 0.08, change: -0.01 },
  { name: 'Drums',           share: 0.07, change:  0.01 },
  { name: 'Other',           share: 0.08, change:  0.00 },
];

const TL_BRAND_MENTIONS = [
  { brand: 'Tom Lee Music',  mentions: 184, sentiment: 0.62, change:  0.09 },
  { brand: 'Parsons Music',  mentions: 121, sentiment: 0.51, change: -0.04 },
  { brand: 'Yamaha',         mentions: 287, sentiment: 0.71, change:  0.02 },
  { brand: 'Roland',         mentions:  98, sentiment: 0.68, change:  0.00 },
  { brand: 'Fender',         mentions:  76, sentiment: 0.74, change:  0.05 },
];

const TL_NEWS_FEED = [
  {
    id: 'n1',
    source: 'SCMP',
    sourceKind: 'news',
    favicon: '📰',
    title: 'Hong Kong music education sector sees 18% rebound as adult learners return',
    summary: 'Industry leaders cite post-pandemic demand and a wave of adult beginners picking up guitar and piano. Tom Lee Music quoted on enrolment trends.',
    url: 'scmp.com/business/article/...',
    publishedAt: '2026-04-29 06:30',
    sentiment: 'pos',
    mentions: ['Tom Lee Music', 'Yamaha'],
    instrument: 'Multi',
  },
  {
    id: 'n2',
    source: 'Instagram',
    sourceKind: 'social',
    favicon: '📸',
    title: '@hkmusicgrams · "Adult guitar class @ Tom Lee Wanchai is the best"',
    summary: 'Lifestyle influencer post (43k followers) tagging Tom Lee Wanchai branch. 2.1k likes. Comments mostly positive — pricing & evening slots praised.',
    url: 'instagram.com/p/...',
    publishedAt: '2026-04-28 19:14',
    sentiment: 'pos',
    mentions: ['Tom Lee Music'],
    instrument: 'Acoustic Guitar',
  },
  {
    id: 'n3',
    source: 'YouTube',
    sourceKind: 'video',
    favicon: '▶️',
    title: 'I tried learning Ukulele in 30 days — Hong Kong edition (812k views)',
    summary: 'Local creator @LearnInHK ran a 30-day ukulele challenge. Tom Lee class featured at 04:12. Drove a 22% spike in ukulele search traffic this week.',
    url: 'youtube.com/watch?v=...',
    publishedAt: '2026-04-28 11:00',
    sentiment: 'pos',
    mentions: ['Tom Lee Music'],
    instrument: 'Ukulele',
  },
  {
    id: 'n4',
    source: 'HK01',
    sourceKind: 'news',
    favicon: '📰',
    title: 'Parsons Music opens new TST flagship — pressure on retail piano segment',
    summary: 'Competitor opened a 4,000 sqft showroom. Article notes aggressive pricing on Yamaha U-series uprights — confirmed by our SKU monitor (-HK$1,300).',
    url: 'hk01.com/...',
    publishedAt: '2026-04-28 08:45',
    sentiment: 'neg',
    mentions: ['Parsons Music', 'Yamaha'],
    instrument: 'Piano',
  },
  {
    id: 'n5',
    source: 'Threads',
    sourceKind: 'social',
    favicon: '🧵',
    title: 'Discussion thread: "Best place for kids violin lessons in Causeway Bay?"',
    summary: '47 replies. Tom Lee mentioned 12 times — 9 positive, 2 neutral, 1 negative (waitlist complaint). Sentiment trending positive vs last month.',
    url: 'threads.net/...',
    publishedAt: '2026-04-28 10:22',
    sentiment: 'pos',
    mentions: ['Tom Lee Music'],
    instrument: 'Violin',
  },
  {
    id: 'n6',
    source: 'Apple Daily Music',
    sourceKind: 'news',
    favicon: '📰',
    title: 'Hong Kong Schools Music Festival 2026 — entries open, 280+ schools registered',
    summary: 'Annual festival expanding by 14% YoY. Suggests robust pipeline for instrument sales and exam-prep services through Q3.',
    url: 'appledaily.com/...',
    publishedAt: '2026-04-27 14:10',
    sentiment: 'pos',
    mentions: [],
    instrument: 'Multi',
  },
  {
    id: 'n7',
    source: 'Xiaohongshu',
    sourceKind: 'social',
    favicon: '📕',
    title: '"Tom Lee 鋼琴老師推薦" · 23 posts this week',
    summary: 'Cluster of recommendation posts in Cantonese / Mandarin. Average rating 4.6/5 across 23 posts. Top mentioned branches: Wanchai, TST, Mongkok.',
    url: 'xiaohongshu.com/...',
    publishedAt: '2026-04-27 09:00',
    sentiment: 'pos',
    mentions: ['Tom Lee Music'],
    instrument: 'Piano',
  },
  {
    id: 'n8',
    source: 'YouTube',
    sourceKind: 'video',
    favicon: '▶️',
    title: 'Yamaha U1 vs Kawai K-300 — which is better for ABRSM Grade 8?',
    summary: 'Comparison review (38k views). Strong purchase intent in comments — 64% considering the U1 within 6 months.',
    url: 'youtube.com/watch?v=...',
    publishedAt: '2026-04-26 18:30',
    sentiment: 'neu',
    mentions: ['Yamaha', 'Kawai'],
    instrument: 'Piano',
  },
];

// — School tender monitoring ————————————————————————————————————

const TL_TENDERS = [
  {
    id: 't1',
    school: 'Diocesan Boys\' School',
    schoolZh: '拔萃男書院',
    district: 'Mong Kok',
    title: 'Supply & install 12 upright pianos for music block refurbishment',
    titleZh: '12 部直立式鋼琴供應及安裝（音樂部翻新）',
    publishedAt: '2026-04-28',
    deadline: '2026-05-19',
    estValue: 1080000,
    estValueLabel: 'HK$1.08M',
    category: 'Piano · Bulk',
    fitScore: 0.94,
    priority: 'high',
    status: 'new',
    keywords: ['Yamaha U-series', 'warranty 10y', 'delivery May'],
    sourceUrl: 'dbs.edu.hk/tenders/...',
    summary: 'Replacement programme. Specs match our Yamaha U1J / Kawai K-300 inventory. Long-standing client (last order 2019, HK$840K).',
    summaryZh: '替換計劃。規格與我方 Yamaha U1J / Kawai K-300 配對。舊客戶（最近一次訂單 2019 年，HK$840K）。',
  },
  {
    id: 't2',
    school: 'St. Paul\'s Co-educational College',
    schoolZh: '聖保羅男女中學',
    district: 'Mid-Levels',
    title: 'Annual instrument maintenance & tuning contract (2026-2027)',
    titleZh: '年度樂器保養及調音合約（2026-2027）',
    publishedAt: '2026-04-28',
    deadline: '2026-05-12',
    estValue: 240000,
    estValueLabel: 'HK$240K',
    category: 'Service · Recurring',
    fitScore: 0.88,
    priority: 'high',
    status: 'new',
    keywords: ['piano tuning', 'string maintenance', 'monthly visits'],
    sourceUrl: 'spcc.edu.hk/procurement/...',
    summary: '12-month service contract — quarterly tunings, on-call repairs. We currently service 3 of 4 schools in this district.',
    summaryZh: '12 個月服務合約 — 每季調音、隨時維修。本區四校中我方服務三校。',
  },
  {
    id: 't3',
    school: 'Hong Kong International School',
    schoolZh: '香港國際學校',
    district: 'Repulse Bay',
    title: 'Audio-visual upgrade for performance hall · mics, mixers, PA',
    titleZh: '表演廳影音升級 · 麥克風、混音器、PA 系統',
    publishedAt: '2026-04-27',
    deadline: '2026-05-25',
    estValue: 680000,
    estValueLabel: 'HK$680K',
    category: 'Audio · System',
    fitScore: 0.72,
    priority: 'med',
    status: 'reviewing',
    keywords: ['Shure', 'Yamaha mixer', 'JBL line array'],
    sourceUrl: 'hkis.edu.hk/...',
    summary: 'PA system replacement. Spec calls for Shure ULX-D wireless and Yamaha CL-series console — both in our authorised distribution.',
    summaryZh: 'PA 系統替換。規格指定 Shure ULX-D 無線及 Yamaha CL 系列混音器 — 我方代理。',
  },
  {
    id: 't4',
    school: 'La Salle College',
    schoolZh: '喇沙書院',
    district: 'Kowloon Tong',
    title: 'Drum kit & percussion package for senior music programme',
    titleZh: '高年級音樂課鼓組及敲擊樂套裝',
    publishedAt: '2026-04-27',
    deadline: '2026-05-18',
    estValue: 165000,
    estValueLabel: 'HK$165K',
    category: 'Drums · Bundle',
    fitScore: 0.81,
    priority: 'med',
    status: 'new',
    keywords: ['Pearl', 'Roland V-Drums', 'orchestral percussion'],
    sourceUrl: 'lasalle.edu.hk/tenders/...',
    summary: '4 acoustic kits + 2 e-drum kits + glockenspiel/xylophone set. We hold Pearl & Roland HK distribution.',
    summaryZh: '4 套原聲鼓 + 2 套電子鼓 + 鐵琴/木琴。我方持有 Pearl 及 Roland 香港分銷權。',
  },
  {
    id: 't5',
    school: 'King George V School',
    schoolZh: '英皇佐治五世學校',
    district: 'Ho Man Tin',
    title: 'String instrument hire programme — violins, violas, cellos',
    titleZh: '弦樂器租用計劃 — 小提琴、中提琴、大提琴',
    publishedAt: '2026-04-26',
    deadline: '2026-05-15',
    estValue: 420000,
    estValueLabel: 'HK$420K',
    category: 'Strings · Hire',
    fitScore: 0.86,
    priority: 'med',
    status: 'reviewing',
    keywords: ['rental fleet', 'sizes 1/4 to 4/4', 'maintenance included'],
    sourceUrl: 'kgv.edu.hk/...',
    summary: 'Annual hire fleet — 60 violins, 12 violas, 8 cellos. Our hire programme already serves 14 ESF schools; logistics established.',
    summaryZh: '年度租用 — 60 支小提琴、12 支中提琴、8 支大提琴。我方租用計劃已服務 14 間英基學校。',
  },
  {
    id: 't6',
    school: 'Po Leung Kuk Choi Kai Yau School',
    schoolZh: '保良局蔡繼有學校',
    district: 'Sham Shui Po',
    title: 'Grand piano for new auditorium — concert grand specification',
    titleZh: '新禮堂大型平台鋼琴 — 演奏級規格',
    publishedAt: '2026-04-26',
    deadline: '2026-06-02',
    estValue: 1850000,
    estValueLabel: 'HK$1.85M',
    category: 'Piano · Concert',
    fitScore: 0.95,
    priority: 'high',
    status: 'new',
    keywords: ['Steinway B', 'Yamaha CFX', 'C7X consideration'],
    sourceUrl: 'plkcky.edu.hk/...',
    summary: 'Single concert grand. Yamaha CFX, C7X, or Steinway B-211. Highest-value tender of the month — direct contact with music dept recommended.',
    summaryZh: '單一演奏級平台鋼琴。Yamaha CFX、C7X 或 Steinway B-211。本月最高金額 — 建議直接聯絡音樂部。',
  },
  {
    id: 't7',
    school: 'Marymount Secondary School',
    schoolZh: '瑪利曼中學',
    district: 'Happy Valley',
    title: 'Music software site licence — notation & DAW',
    titleZh: '音樂軟件校園授權 — 樂譜及 DAW',
    publishedAt: '2026-04-26',
    deadline: '2026-05-10',
    estValue: 48000,
    estValueLabel: 'HK$48K',
    category: 'Software',
    fitScore: 0.42,
    priority: 'low',
    status: 'declined',
    keywords: ['Sibelius', 'Logic Pro', 'GarageBand'],
    sourceUrl: 'marymount.edu.hk/...',
    summary: 'Software-only tender. Low margin, outside our typical scope. Declined — passed reference to AVID partner.',
    summaryZh: '純軟件採購。利潤微薄，非我方核心業務。已轉介至 AVID 合作夥伴。',
  },
  {
    id: 't8',
    school: 'Maryknoll Convent School',
    schoolZh: '瑪利諾修院學校',
    district: 'Kowloon Tong',
    title: 'Choir risers and music stands · 80 units',
    titleZh: '合唱台及譜架 · 80 件',
    publishedAt: '2026-04-25',
    deadline: '2026-05-08',
    estValue: 92000,
    estValueLabel: 'HK$92K',
    category: 'Accessories',
    fitScore: 0.68,
    priority: 'med',
    status: 'submitted',
    keywords: ['choral risers', 'Manhasset stands', 'mobile cart'],
    sourceUrl: 'mcs.edu.hk/...',
    summary: 'Bid submitted on Apr 27 at HK$84,500. Awaiting evaluation. Two competitors known to be bidding.',
    summaryZh: '已於 4 月 27 日以 HK$84,500 投標。待評估。已知兩個競爭對手投標中。',
  },
];

const TL_TENDER_PIPELINE = {
  new:       TL_TENDERS.filter(t => t.status === 'new').length,
  reviewing: TL_TENDERS.filter(t => t.status === 'reviewing').length,
  submitted: TL_TENDERS.filter(t => t.status === 'submitted').length,
  declined:  TL_TENDERS.filter(t => t.status === 'declined').length,
};

// — Stakeholder routing ————————————————————————————————————

const TL_STAKEHOLDERS = [
  { id: 'piano',   name: 'Piano · Retail',     lead: 'Cathy Wong',     email: 'cathy.w@tomlee.com.hk',  alerts: 4 },
  { id: 'guitar',  name: 'Guitar',             lead: 'Marcus Lam',     email: 'marcus.l@tomlee.com.hk', alerts: 1 },
  { id: 'audio',   name: 'Audio · Retail',     lead: 'Vivian Chu',     email: 'vivian.c@tomlee.com.hk', alerts: 3 },
  { id: 'edu',     name: 'Education · Schools',lead: 'Kenneth Ho',     email: 'kenneth.h@tomlee.com.hk',alerts: 6 },
  { id: 'mkt',     name: 'Marketing · PR',     lead: 'Joyce Lee',      email: 'joyce.l@tomlee.com.hk',  alerts: 8 },
  { id: 'exec',    name: 'Executive',          lead: 'Eric Tom',       email: 'eric.t@tomlee.com.hk',   alerts: 2 },
];

window.TL_TRACKED_SKUS = TL_TRACKED_SKUS;
window.TL_PRICE_SOURCES = TL_PRICE_SOURCES;
window.TL_PRICE_ALERTS_LOG = TL_PRICE_ALERTS_LOG;
window.TL_NEWS_SOURCES_BREAKDOWN = TL_NEWS_SOURCES_BREAKDOWN;
window.TL_TRENDING_TOPICS = TL_TRENDING_TOPICS;
window.TL_TRENDING_INSTRUMENTS = TL_TRENDING_INSTRUMENTS;
window.TL_BRAND_MENTIONS = TL_BRAND_MENTIONS;
window.TL_NEWS_FEED = TL_NEWS_FEED;
window.TL_TENDERS = TL_TENDERS;
window.TL_TENDER_PIPELINE = TL_TENDER_PIPELINE;
window.TL_STAKEHOLDERS = TL_STAKEHOLDERS;
