/* Ten palettes; number-wave and accounting colours remain semantic. */
:root,[data-theme=blue]{--accent:#28649f;--deep:#173e65;--nav:#204f7c;--tint:#e7f1fb;--soft:#f4f8fd;--line:#c9d9e9;--ink:#263b50;--muted:#60758a;--canvas:#f0f5fa;--surface:#fff;--hover:#dcebf8;--focus:#3986c8;--on-accent:#fff;--green:var(--accent);--radius:12px;--red-wave:#c53550;--blue-wave:#216db2;--green-wave:#21814d}
[data-theme=red]{--accent:#b32f49;--deep:#762637;--nav:#9c2e42;--tint:#fbe9ed;--soft:#fff6f8;--line:#e9cbd3;--ink:#4b3039;--muted:#85626f;--canvas:#fcf2f5;--hover:#f5dce3;--focus:#ce4965}
[data-theme=green]{--accent:#306e5b;--deep:#204b40;--nav:#2b5e50;--tint:#e6f1eb;--soft:#f4f9f6;--line:#c8dcd2;--ink:#293f36;--muted:#617a6e;--canvas:#f0f6f2;--hover:#d8eade;--focus:#39866d}
[data-theme=gold]{--accent:#80642d;--deep:#594722;--nav:#70582b;--tint:#f4efdf;--soft:#fbf9f2;--line:#e0d7be;--ink:#443c2d;--muted:#7c715b;--canvas:#f7f5ed;--hover:#ebe2c8;--focus:#9a7734}
[data-theme=violet]{--accent:#71609d;--deep:#483c69;--nav:#5c4c84;--tint:#f0ebfa;--soft:#faf7ff;--line:#dcd2ec;--ink:#40364f;--muted:#7c6f8e;--canvas:#f6f3fb;--hover:#e8dff6;--focus:#8d73bf}
[data-theme=white]{--accent:#485b70;--deep:#2e4053;--nav:#3b4e61;--tint:#edf1f5;--soft:#fafbfc;--line:#d9e0e7;--ink:#2a3643;--muted:#687786;--canvas:#f7f8fa;--hover:#e7edf3;--focus:#587a9d}
[data-theme=teal]{--accent:#227b81;--deep:#195358;--nav:#24666b;--tint:#e4f3f2;--soft:#f2faf9;--line:#c2deda;--ink:#274548;--muted:#5a7979;--canvas:#eef7f6;--hover:#d5eae8;--focus:#31979d}
[data-theme=black]{--accent:#b8c6d7;--deep:#eef3fa;--nav:#090b0e;--tint:#20262e;--soft:#14191f;--line:#343e4b;--ink:#e1e8f0;--muted:#a5b2c2;--canvas:#000;--surface:#0d1116;--hover:#293441;--focus:#8ec7ff;--on-accent:#101720;--red-wave:#ff8292;--blue-wave:#79baff;--green-wave:#75dba0;color-scheme:dark}
[data-theme=ocean]{--accent:#72bbdf;--deep:#c5e8fb;--nav:#0b2135;--tint:#193a52;--soft:#102c41;--line:#31516b;--ink:#dfedf7;--muted:#a0bdcf;--canvas:#081b2a;--surface:#102638;--hover:#24465e;--focus:#78d2ff;--on-accent:#112c3e;--red-wave:#ff8a9b;--blue-wave:#82c6ff;--green-wave:#7bdbb0;color-scheme:dark}
[data-theme=graphite]{--accent:#b2b6d0;--deep:#ececf5;--nav:#20212b;--tint:#343642;--soft:#2a2c37;--line:#4c5061;--ink:#e8e9f1;--muted:#b5b7ca;--canvas:#1c1d25;--surface:#262832;--hover:#404354;--focus:#c1beff;--on-accent:#272838;--red-wave:#ff92a2;--blue-wave:#92c8ff;--green-wave:#91dbac;color-scheme:dark}
.cy-number-wave{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px;min-width:28px;height:28px;padding:0;border:1px solid #ffffff80;border-radius:50%;font-family:"Microsoft YaHei","微软雅黑",Arial,sans-serif;font-weight:400;font-size:15px;line-height:1;text-align:center;letter-spacing:0;color:#fff!important;text-shadow:0 1px 1px #0009;vertical-align:middle;position:relative;overflow:hidden;box-shadow:inset -4px -5px 7px #0006,inset 3px 3px 6px #fff9,0 2px 4px #10203055;transition:transform .15s ease,box-shadow .15s ease}
.cy-number-wave::before{content:"";position:absolute;top:4px;left:6px;width:36%;height:22%;border-radius:50%;background:#ffffff90;pointer-events:none}
.cy-number-wave.wave-r{background:linear-gradient(145deg,#ff6b78 0%,#dc263f 48%,#941c31 100%)}
.cy-number-wave.wave-b{background:linear-gradient(145deg,#62b8ff 0%,#2877d1 48%,#164d91 100%)}
.cy-number-wave.wave-g{background:linear-gradient(145deg,#6edb98 0%,#16803d 48%,#0b522d 100%)}
.cy-number-wave:hover,.cy-number-wave:focus-visible{transform:translateY(-1px);box-shadow:inset -4px -5px 7px #0006,inset 3px 3px 6px #fff9,0 4px 8px #10203066}
@media(max-width:700px){
  .cy-number-wave{width:21px;min-width:21px;height:21px;font-size:12px}
  .cy-number-wave::before{top:3px;left:4px}
  /* Zodiac columns are narrow on phones. Let four balls form two tidy
     lines instead of painting over the next row. */
  .dvTeamNo .txt{display:inline-block;max-width:100%;white-space:normal;line-height:1.05}
  .dvTeamNo{height:auto!important;min-height:44px!important;line-height:1.05!important}
  .dvTeamNo .cy-number-wave{vertical-align:middle;margin:1px 0}
}
@media(prefers-reduced-motion:reduce){.cy-number-wave{transition:none!important}}
.cy-preferences{display:inline-flex!important;align-items:center;gap:3px;vertical-align:middle;white-space:nowrap;color:var(--ink);line-height:20px}
.cy-preferences select{box-sizing:border-box!important;width:98px;height:22px!important;min-height:0!important;padding:0 2px!important;font:12px Arial,"Microsoft YaHei",sans-serif!important;border:1px solid var(--line)!important;border-radius:5px!important;background:var(--surface)!important;color:var(--ink)!important;cursor:pointer}
.cy-preferences select[data-font-size-select]{width:64px}
.cy-preferences button{box-sizing:border-box!important;width:23px!important;height:22px!important;min-height:0!important;margin:0!important;padding:0!important;border:1px solid var(--line)!important;border-radius:5px!important;background:var(--surface)!important;color:var(--ink)!important;font:12px Arial,"Microsoft YaHei",sans-serif!important;cursor:pointer}
.styleDv .cy-preferences select,#topTable .cy-preferences select{width:47px}
.styleDv .cy-preferences button,#topTable .cy-preferences button{width:18px!important}
.cy-preferences:focus-within{outline:1px solid var(--focus);outline-offset:2px;border-radius:5px}

/* A persistent, user-controlled reading scale shared by portal and legacy frames. */
html[data-font-size="small"]{font-size:92%}
html[data-font-size="normal"]{font-size:100%}
html[data-font-size="large"]{font-size:112%}
html[data-font-size="xlarge"]{font-size:125%}
html[data-font-size="large"] body{line-height:1.7}
html[data-font-size="xlarge"] body{line-height:1.8}
html[data-font-size="large"] .cy-preferences select{font-size:13px!important}
html[data-font-size="xlarge"] .cy-preferences select{font-size:14px!important}
