    :root{
      --us:#0057b8;
      --us-soft:#9ec5ff;
      --jp:#c46a00;
      --jp-soft:#f0c48a;
      --kr:#7a3db8;
      --kr-soft:#c9afe5;
      --ink:#1f2328;
      --muted:#66707a;
      --line:#e5e7eb;
      --panel:#ffffff;
      --panel-soft:#f8f9fb;
      --panel-strong:#f2f4f7;
      --bg:#f6f7f9;
      --shadow:0 16px 40px rgba(15, 23, 42, .06);
      --good:#137333;
      --bad:#b42318;
      --partial:#b26a00;
      --link:#0057b8;
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans KR',sans-serif;
      background:
        radial-gradient(circle at top left, rgba(0,87,184,.08), transparent 28%),
        radial-gradient(circle at top right, rgba(122,61,184,.08), transparent 30%),
        linear-gradient(180deg,#fafbfc 0%,#f4f6f8 100%);
      color:var(--ink);
    }
    .wrap{max-width:1240px;margin:0 auto;padding:28px 18px 56px}
    .hero{
      display:grid;grid-template-columns:1.45fr .95fr;gap:18px;margin-bottom:18px
    }
    .hero-main,.hero-side{
      background:var(--panel);
      border:1px solid rgba(229,231,235,.9);
      border-radius:24px;
      box-shadow:var(--shadow);
    }
    .hero-main{
      padding:26px 24px 22px;
      background:
        linear-gradient(135deg, rgba(0,87,184,.09) 0%, rgba(0,87,184,0) 35%),
        linear-gradient(225deg, rgba(122,61,184,.08) 0%, rgba(122,61,184,0) 32%),
        var(--panel);
    }
    .hero-side{padding:18px}
    .eyebrow{
      font-size:11px;
      letter-spacing:.12em;
      text-transform:uppercase;
      color:var(--muted);
      font-weight:700;
    }
    h1{
      margin:10px 0 12px;
      font-size:38px;
      line-height:1.02;
      letter-spacing:-.03em;
    }
    .hero-copy{
      margin:0;
      font-size:15px;
      line-height:1.6;
      color:var(--muted);
      max-width:56ch;
    }
    .hero-meta{
      margin-top:18px;
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }
    .chip{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:8px 12px;
      border-radius:999px;
      background:var(--panel-soft);
      border:1px solid #eceff3;
      font-size:12px;
      color:var(--muted);
      font-weight:600;
    }
    .chip strong{color:var(--ink)}
    .hero-side h2,.chart-head h2,.side h2,.market-panel h2{
      margin:0;
      font-size:17px;
      letter-spacing:-.01em;
    }
    .stamp{
      display:flex;
      justify-content:space-between;
      gap:14px;
      align-items:center;
      margin-bottom:14px;
      font-size:13px;
      color:var(--muted);
    }
    .overview-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:12px;
    }
    .overview-card{
      background:var(--panel-soft);
      border:1px solid #edf0f3;
      border-radius:18px;
      padding:14px;
    }
    .overview-card .k{
      font-size:11px;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.08em;
    }
    .overview-card .v{
      margin-top:8px;
      font-size:24px;
      font-weight:800;
      line-height:1;
      color:var(--ink);
    }
    .overview-card .s{
      margin-top:6px;
      font-size:12px;
      color:var(--muted);
      line-height:1.4;
    }
    .summary{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:14px;
      margin-bottom:18px;
    }
    .panel{
      background:var(--panel);
      border:1px solid rgba(229,231,235,.95);
      border-radius:22px;
      box-shadow:var(--shadow);
    }
    .summary-card{
      position:relative;
      overflow:hidden;
      padding:18px 18px 16px;
      background:
        linear-gradient(180deg, rgba(248,249,251,.96), rgba(255,255,255,.98));
    }
    .summary-card.t20{
      background:
        linear-gradient(180deg, rgba(255,247,237,.95), rgba(255,255,255,.98));
      box-shadow:0 18px 40px rgba(245,158,11,.14);
    }
    .summary-card.t10{
      background:
        linear-gradient(180deg, rgba(255,241,242,.96), rgba(255,255,255,.98));
      box-shadow:0 20px 44px rgba(220,38,38,.16);
    }
    .summary-card::before{
      content:'';
      position:absolute;
      left:0;
      top:0;
      bottom:0;
      width:5px;
      background:var(--accent,#999);
    }
    .summary-top{
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:flex-start;
    }
    .label{
      font-size:11px;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.11em;
      font-weight:700;
    }
    .status-tag{
      border-radius:999px;
      padding:5px 10px;
      font-size:11px;
      font-weight:700;
      background:#eef2f7;
      color:#4b5563;
    }
    .status-tag.ok{background:#e6f4ea;color:var(--good)}
    .status-tag.error{background:#fdecec;color:var(--bad)}
    .status-tag.partial{background:#fef7e0;color:var(--partial)}
    .market-name{
      margin:8px 0 12px;
      font-size:21px;
      font-weight:800;
      letter-spacing:-.02em;
    }
    .big{
      font-size:38px;
      line-height:1;
      font-weight:800;
      color:var(--accent,#202124);
      letter-spacing:-.03em;
    }
    .summary-metrics{
      margin-top:16px;
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
    }
    .metric{
      padding:12px 12px 10px;
      border-radius:16px;
      background:rgba(255,255,255,.9);
      border:1px solid #eef0f2;
    }
    .metric .k{
      font-size:11px;
      color:var(--muted);
      text-transform:uppercase;
      letter-spacing:.08em;
    }
    .metric .v{
      margin-top:6px;
      font-size:20px;
      font-weight:800;
      color:var(--ink);
    }
    .metric .s{
      margin-top:4px;
      font-size:12px;
      color:var(--muted);
    }
    .basis{
      margin-top:12px;
      font-size:11px;
      color:#8b9095;
    }
    .threshold-row{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin:10px 0 4px;
    }
    .threshold-badge{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:4px 10px;
      border-radius:999px;
      font-size:11px;
      font-weight:700;
      line-height:1;
    }
    .threshold-badge.enter20{background:#f59e0b;color:#fff}
    .threshold-badge.enter10{background:#dc2626;color:#fff}
    .threshold-badge.below20{background:#fff7ed;color:#c2410c;border:1px solid #fdba74}
    .threshold-badge.below10{background:#fff1f2;color:#be123c;border:1px solid #fda4af}
    .unavailable{
      margin-top:12px;
      padding:12px 13px;
      border-radius:14px;
      background:#fdecec;
      color:var(--bad);
      font-size:13px;
      line-height:1.45;
    }
    .layout{
      display:grid;
      grid-template-columns:1.7fr .95fr;
      gap:18px;
      margin-bottom:18px;
    }
    .chart-panel{padding:18px}
    .chart-head{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      margin-bottom:10px;
    }
    .chart-sub{
      margin-top:4px;
      font-size:13px;
      color:var(--muted);
      line-height:1.5;
    }
    .chart-range{
      margin-top:6px;
      font-size:12px;
      color:#4b5563;
      font-weight:700;
    }
    .switch{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
    }
    .switch button{
      border:1px solid var(--line);
      background:#fff;
      color:var(--muted);
      border-radius:999px;
      padding:8px 13px;
      font-size:12px;
      font-weight:700;
      cursor:pointer;
      transition:.18s ease;
    }
    .switch button.on{
      background:var(--ink);
      color:#fff;
      border-color:var(--ink);
      box-shadow:0 8px 18px rgba(31,35,40,.15);
    }
    .legend{
      display:flex;
      gap:14px;
      flex-wrap:wrap;
      margin-bottom:14px;
      font-size:12px;
      color:var(--muted);
    }
    .legend span{
      display:flex;
      align-items:center;
      gap:8px;
      padding:7px 10px;
      border-radius:999px;
      background:var(--panel-soft);
      border:1px solid #edf0f3;
    }
    .legend i{display:inline-block;width:28px;height:0;border-top-style:solid}
    .legend .us{border-top-width:4px;border-top-color:var(--us)}
    .legend .jp{border-top-width:2.8px;border-top-color:var(--jp)}
    .legend .kr{border-top-width:2px;border-top-color:var(--kr)}
    .chart{
      height:392px;
      border-radius:18px;
      background:
        linear-gradient(180deg, rgba(248,249,251,.7), rgba(255,255,255,.96));
      border:1px solid #edf0f3;
      overflow:hidden;
    }
    .chart-fallback{
      min-height:180px;
      display:flex;
      align-items:center;
      justify-content:center;
      padding:18px;
      text-align:center;
      color:var(--muted);
      line-height:1.6;
      font-size:13px;
    }
    .side{
      display:flex;
      flex-direction:column;
      gap:18px;
    }
    .side .panel{padding:18px}
    .status-list{
      display:flex;
      flex-direction:column;
      gap:12px;
      margin-top:14px;
    }
    .status-item{
      display:grid;
      grid-template-columns:auto 1fr auto;
      gap:12px;
      align-items:center;
      padding:12px;
      border-radius:16px;
      background:var(--panel-soft);
      border:1px solid #edf0f3;
    }
    .swatch{
      width:11px;
      height:11px;
      border-radius:999px;
      background:var(--swatch-color,var(--accent,#999));
    }
    .status-title{font-size:14px;font-weight:700}
    .status-meta{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.45}
    .status-pill{
      font-size:11px;
      border-radius:999px;
      padding:5px 10px;
      background:#eef2f7;
      color:#4b5563;
      font-weight:700;
      text-transform:uppercase;
    }
    .status-pill.ok{background:#e7f6ec;color:var(--good)}
    .status-pill.error{background:#fdecec;color:var(--bad)}
    .status-pill.partial{background:#fef7e0;color:var(--partial)}
    .signals{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      margin-top:14px;
    }
    .badge{
      display:inline-block;
      padding:6px 11px;
      border-radius:999px;
      font-size:11px;
      font-weight:800;
      letter-spacing:.01em;
    }
    .b-long{background:#e6f4ea;color:#0d904f}
    .b-short{background:#fce8e6;color:#d93025}
    .b-neut{background:#fef7e0;color:#b26a00}
    .b-off{background:#f1f3f4;color:#5f6368}
    .market-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:18px;
    }
    .market-panel{
      padding:18px;
      background:
        linear-gradient(180deg, rgba(248,249,251,.94), rgba(255,255,255,.98));
    }
    .market-panel.t20{
      background:
        linear-gradient(180deg, rgba(255,247,237,.94), rgba(255,255,255,.98));
      box-shadow:0 18px 40px rgba(245,158,11,.12);
    }
    .market-panel.t10{
      background:
        linear-gradient(180deg, rgba(255,241,242,.96), rgba(255,255,255,.98));
      box-shadow:0 18px 42px rgba(220,38,38,.14);
    }
    .market-panel h2{
      margin:8px 0 2px;
      font-size:24px;
      line-height:1.05;
      letter-spacing:-.03em;
    }
    .market-panel .sub{
      font-size:12px;
      color:var(--muted);
      line-height:1.5;
    }
    .market-header{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
    }
    .market-value{
      margin-top:12px;
      font-size:32px;
      font-weight:800;
      letter-spacing:-.03em;
      color:var(--market-value-color,inherit);
    }
    .market-value small{
      display:block;
      margin-top:6px;
      font-size:13px;
      font-weight:600;
      color:var(--muted);
      letter-spacing:0;
    }
    .metrics{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
      margin-top:14px;
      font-size:12px;
      color:var(--muted);
    }
    .metrics .tile{
      padding:12px;
      border-radius:16px;
      background:rgba(255,255,255,.92);
      border:1px solid #edf0f3;
    }
    .metrics b{
      display:block;
      color:var(--ink);
      font-size:18px;
      margin-top:6px;
    }
    .mini-chart{
      height:230px;
      margin-top:14px;
      border-radius:18px;
      overflow:hidden;
      border:1px solid #edf0f3;
      background:var(--panel-soft);
    }
    .foot{
      margin-top:28px;
      padding-top:16px;
      border-top:1px solid var(--line);
      display:flex;
      justify-content:space-between;
      gap:16px;
      flex-wrap:wrap;
      font-size:12px;
      color:#8b9095;
    }
    .foot a{color:var(--link);text-decoration:none}
    .foot a:hover{text-decoration:underline}
    @media (max-width:1120px){
      .hero,.layout,.market-grid,.summary{grid-template-columns:1fr}
      .hero-main{padding-bottom:24px}
    }
    @media (max-width:720px){
      .wrap{padding:18px 14px 44px}
      h1{font-size:30px}
      .overview-grid,.metrics,.summary-metrics{grid-template-columns:1fr}
      .chart{height:320px}
      .market-value{font-size:28px}
    }
