:root {
  color-scheme: dark;
  --background: #0b1220; --foreground: #e8eef9;
  --card: #111c2d; --card-foreground: #e8eef9;
  --popover: #203047; --popover-foreground: #e8eef9;
  --muted-foreground: #9aabc1; --border: #2d3d54;
  --primary: #69afff; --primary-foreground: #071222;
  --viz-series-1: #69afff; --viz-series-2: #ffc36e; --viz-series-3: #59e0b0; --viz-series-4: #bb97ff;
  --destructive: #ff778c; --warning: #ffc36e;
  --state-unaware: #69768b; --state-keep: #c1cbd9; --state-competitor: #f9a8d4;
}
* { box-sizing: border-box; }
body { margin:0!important; padding:22px 28px!important; max-width:1800px; font-family:"Microsoft YaHei",system-ui,sans-serif; background:var(--background); color:var(--foreground); }
#pocket-world-iv { font-size:14px; line-height:1.5; }
#pocket-world-iv h1,#pocket-world-iv h2,#pocket-world-iv h3 { margin:0; line-height:1.35; }
.world-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:20px; }
.world-header h1 { font-size:23px; font-weight:400; letter-spacing:1px; }
.world-header p { color:var(--muted-foreground); margin:5px 0 0; }
.world-context { display:flex; gap:22px; color:var(--muted-foreground); }
.offer-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.offer-tabs button { --offer:var(--viz-series-1); text-align:left; color:var(--foreground); padding:14px 18px; background:var(--card); border:1px solid var(--border); border-left:4px solid var(--offer); border-radius:9px; cursor:pointer; font:inherit; }
.offer-tabs button[data-offer="1"] { --offer:var(--viz-series-2); }
.offer-tabs button[data-offer="2"] { --offer:var(--viz-series-3); }
.offer-tabs button[aria-pressed="true"] { background:color-mix(in srgb,var(--offer) 13%,var(--card)); border-color:var(--offer); }
.offer-tabs button:hover { background:color-mix(in srgb,var(--offer) 9%,var(--card)); }
.offer-tabs b { color:var(--offer); display:flex; gap:12px; align-items:center; font-size:18px; }
.offer-tabs b span { font-size:16px; }
.offer-tabs em { margin-left:auto; font-size:16px; font-style:normal; }
.offer-tabs small { display:block; color:var(--muted-foreground); font-size:13px; margin-top:5px; }
.world-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(430px,1fr); gap:18px; align-items:start; }
.panel { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px; min-width:0; }
.scene-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#pocket-world-iv h2 { font-size:17px; } #pocket-world-iv h3 { font-size:15px; margin:20px 0 12px; }
#pw-clock { color:#d9e9ff; font-size:14px; }
.world-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:16px 0 0; }
.world-metrics span { color:var(--muted-foreground); font-size:13px; }
.world-metrics strong { display:block; font-size:23px; color:var(--foreground); font-weight:500; margin-top:2px; }
.world-metrics span:nth-child(2) strong { color:var(--viz-series-4); }
.world-metrics span:nth-child(3) strong { color:var(--viz-series-3); }
#pocket-world-iv .pw-stage { height:clamp(300px,43vh,550px); margin:4px -10px; border-radius:8px; }
#pocket-world-iv .pw-label { font-size:12px; padding:1px 5px; border-radius:3px; color:#eff6ff; background:#0b1220a8; }
#pocket-world-iv .pw-dot { width:10px; height:10px; margin-right:6px; }
.world-legend { display:flex; flex-wrap:wrap; gap:6px 16px; padding:8px 0 12px; font-size:13px; color:#c0cde0; }
.world-legend span { white-space:nowrap; }
.playback { display:flex; align-items:center; gap:14px; border-top:1px solid var(--border); padding-top:15px; }
.playback .form-range { flex:1; min-width:50px; margin:0; accent-color:var(--primary); }
#pocket-world-iv .form-select { background:#18253a; border:1px solid #374c68; color:var(--foreground); border-radius:6px; min-height:36px; font-size:14px; padding:5px 28px 5px 10px; }
.playback .form-select { width:88px; }
#pw-play { min-width:92px; font-size:14px; background:var(--primary); color:#071222; border:0; padding:8px 12px; border-radius:6px; }
.milestones { display:flex; justify-content:space-between; margin:12px 0; }
.milestones button { background:transparent; color:var(--muted-foreground); border:0; padding:5px 6px; font:inherit; cursor:pointer; }
.milestones button:hover { color:var(--primary); }
.scene-help { display:flex; gap:10px; justify-content:space-between; color:var(--muted-foreground); font-size:12px; }
.scene-help label { white-space:nowrap; } .scene-help input { accent-color:var(--primary); }
.world-results > p { font-size:13px; margin:8px 0 16px; }
#pocket-world-iv .pw-chart { height:280px; }
.pw-chart-legend { flex-direction:column; align-items:flex-start!important; gap:7px!important; margin:12px 0; }
#pocket-world-iv .pw-series-button { font-size:13px; }
#pocket-world-iv .table { width:100%; font-size:13px; font-variant-numeric:tabular-nums; margin:0; }
#pocket-world-iv th,#pocket-world-iv td { padding:12px 5px; white-space:nowrap; }
#pocket-world-iv th { color:var(--muted-foreground); font-size:12px; font-weight:400; }
#pw-table tr:nth-child(1) td:first-child { color:var(--viz-series-1); }
#pw-table tr:nth-child(2) td:first-child { color:var(--viz-series-2); }
#pw-table tr:nth-child(3) td:first-child { color:var(--viz-series-3); }
#pocket-world-iv .result-note { font-size:12px; color:var(--muted-foreground); margin-top:14px; }
.world-events { grid-column:1/-1; }
.world-events .scene-heading label { display:flex; align-items:center; gap:10px; }
#pw-person { max-width:280px; }
#pw-person-info { margin-top:16px; color:var(--muted-foreground); }
#pocket-world-iv #pw-events { font-size:14px; line-height:1.75; }
.case-details { margin:18px 0 0; color:var(--muted-foreground); }
.case-details summary { font-size:14px; padding:7px 0; }
.case-copy { max-width:1000px; font-size:14px; line-height:1.8; padding:10px 0; }
button:focus-visible,select:focus-visible,summary:focus-visible,input:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
@media(min-width:1800px) { body { margin:auto!important; } }
@media(max-width:1050px) { .world-grid { grid-template-columns:1fr; } .world-context { gap:12px; font-size:13px; } #pocket-world-iv .pw-stage { height:440px; } .world-results .pw-chart-legend { flex-direction:row; } }
@media(max-width:620px) { body { padding:16px 12px!important; } .world-header { display:block; margin-bottom:16px; } .world-context { margin-top:10px; } .offer-tabs { gap:6px; } .offer-tabs button { padding:10px 8px; border-left-width:3px; } .offer-tabs b { flex-wrap:wrap; gap:3px 7px; font-size:16px; } .offer-tabs b span { font-size:14px; } .offer-tabs em { margin:0; display:block; width:100%; font-size:14px; } .offer-tabs small { display:none; } .panel { padding:14px; } #pocket-world-iv .pw-stage { height:300px; } .world-metrics strong { font-size:20px; } .scene-help { flex-direction:column; gap:5px; } .scene-heading { flex-wrap:wrap; } .world-events .scene-heading label { width:100%; } #pw-person { max-width:calc(100vw - 110px); } .table-responsive { overflow-x:auto; } .playback { gap:8px; } #pw-play { min-width:80px; } }
