/* Player workspace. Presentation for the player dashboard. */
#page-dashboard { --muted:#969696; --muted2:#747474; }
#page-dashboard [hidden] { display:none !important; }
.db-eyebrow { color:var(--accent); font-size:.63rem; font-weight:750; letter-spacing:.14em; margin-bottom:.4rem; }
#page-dashboard .dashboard-page-header { align-items:center; margin-bottom:.9rem; padding-bottom:.85rem; }
#page-dashboard .page-title { font-size:1.65rem; letter-spacing:-.04em; }
.dash-page-intro { color:var(--muted); font-size:.83rem; margin-top:.35rem; }
.dash-demo-bar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.65rem; padding:.6rem .8rem; margin-bottom:1rem; border:1px solid #4b3b22; border-radius:7px; color:#d2b684; background:#211b12; font-size:.72rem; }
.dash-demo-bar i { display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--accent); vertical-align:middle; margin-right:.4rem; }
.dash-demo-note { color:#b8a281; }
.dash-demo-bar label { display:flex; align-items:center; gap:.5rem; white-space:nowrap; }
.dash-demo-bar select { font:inherit; color:var(--text); background:#191714; border:1px solid #4b3b22; border-radius:5px; padding:.25rem .45rem; }
#page-dashboard .dash-header { align-items:center; margin:0 0 1rem; gap:1rem; }
.dash-identity { display:flex; align-items:center; gap:.8rem; min-width:0; }
.dash-avatar { display:grid; place-items:center; flex:0 0 42px; height:42px; border:1px solid #4a3a23; background:#241d13; border-radius:11px; font-size:.86rem; font-weight:750; color:#edc989; }
#page-dashboard .dash-name { font-size:1.05rem; letter-spacing:-.025em; font-weight:650; overflow-wrap:anywhere; }
#page-dashboard .dash-sub { font-size:.73rem; margin-top:.25rem; }
.dash-sub span { margin:0 .25rem; color:var(--muted2); }
.dash-header-actions { display:flex; align-items:center; gap:1rem; }
.dash-season-mark { font-size:.7rem; color:var(--muted); }
.dash-tabs { display:flex; gap:1.5rem; border-bottom:1px solid var(--border2); margin-bottom:1.2rem; }
.dash-tabs button { appearance:none; position:relative; padding:.6rem .05rem .8rem; border:0; border-radius:0; background:none; color:var(--muted); font:inherit; font-size:.81rem; cursor:pointer; min-height:44px; }
.dash-tabs button[aria-selected="true"] { color:var(--text); font-weight:650; }
.dash-tabs button[aria-selected="true"]::after { position:absolute; content:''; height:2px; background:var(--accent); bottom:-1px; left:0; right:0; }
.dash-tabs button:focus-visible,.dash-channel-link:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.dash-workspace { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:1.1rem; align-items:start; }
.dash-main,.dash-sidebar { display:flex; flex-direction:column; gap:1rem; min-width:0; }
.dash-main>#dash-viewer-slot { display:flex; flex-direction:column; gap:1rem; min-width:0; }
#page-dashboard .dash-section { padding:1.1rem; border-radius:9px; min-width:0; }
.dash-card-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.6rem; margin-bottom:1.1rem; }
.dash-card-head h3 { font-size:.85rem; font-weight:650; letter-spacing:-.015em; color:var(--text); margin:0; }
.dash-small-label { color:var(--muted); font-size:.68rem; }
#page-dashboard .dash-primary-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:0 0 1.25rem; }
#page-dashboard .dash-primary-stats .dash-stat { background:none; border:0; border-radius:0; text-align:left; padding:.15rem .9rem; border-left:1px solid var(--border2); min-width:0; }
#page-dashboard .dash-primary-stats .dash-stat:first-child { padding-left:0; border:0; }
#page-dashboard .dash-primary-stats .dash-stat:last-child { padding-right:0; }
#page-dashboard .dash-primary-stats .dash-stat-num { font-size:clamp(1.3rem,2.4vw,2rem); color:var(--text); font-weight:650; letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
#page-dashboard .dash-primary-stats .dash-stat:first-child .dash-stat-num { color:#e8b65d; }
#page-dashboard .dash-stat-lbl { text-transform:none; letter-spacing:0; font-size:.68rem; margin-top:.5rem; line-height:1.4; }
.dash-mode-breakdown { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding-top:1rem; border-top:1px solid var(--border); gap:1rem; }
.dash-mode-breakdown>div>span { font-size:.68rem; color:var(--muted); }
.dash-mode-breakdown strong { display:block; margin-top:.35rem; font-size:1rem; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.dash-mode-breakdown strong small { font-size:.63rem; color:var(--muted); font-weight:400; }
.dash-mode-breakdown p { margin-top:.25rem; color:var(--muted); font-size:.64rem; line-height:1.5; }
#page-dashboard .dash-countdown { display:grid; grid-template-columns:1fr auto; gap:.35rem 1rem; padding:.8rem 1rem; margin:0; text-align:left; border-radius:8px; border:1px solid #38301f; background:#19160f; }
#page-dashboard .countdown-label { font-size:.73rem; grid-column:1; }
#page-dashboard .countdown-timer { font-size:1.1rem; font-weight:650; grid-column:2; grid-row:1 / span 2; align-self:center; font-variant-numeric:tabular-nums; margin:0; }
#page-dashboard .countdown-bar { grid-column:1; margin:0; height:3px; max-width:180px; }
#page-dashboard .countdown-hint { grid-column:1 / -1; font-size:.62rem; color:var(--muted); margin:0; }
#page-dashboard .dash-recent { padding:1.1rem 0 .1rem; overflow:hidden; }
.dash-recent>.dash-card-head { padding:0 1.1rem; }
.dash-races-wrap { max-height:370px; overflow:auto; scrollbar-width:thin; scrollbar-color:#3b3b3b transparent; }
.dash-races-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.dash-races-table thead { position:sticky; top:0; z-index:1; background:var(--surface2); }
.dash-races-table th { font-size:.67rem; text-transform:none; letter-spacing:0; font-weight:500; color:var(--muted); padding:.65rem .6rem; }
.dash-races-table td { padding:.75rem .6rem; font-size:.73rem; border-bottom:1px solid var(--border); vertical-align:middle; }
.dash-races-table tr:last-child td { border-bottom:0; }
.dash-races-table th:first-child,.dash-races-table td:first-child { width:58px; padding-left:1.1rem; }
.dash-races-table th:nth-child(3) { width:73px; }
.dash-races-table th:nth-child(4) { width:70px; }
.dash-races-table th:last-child { width:72px; }
.dash-races-table th:last-child,.dash-races-table td:last-child { padding-right:1.1rem; }
.dash-race-name>strong { display:block; font-size:.75rem; font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dash-race-name>span { display:block; margin-top:.35rem; color:var(--muted); font-size:.67rem; }
.dash-channel-link { appearance:none; padding:0; border:0; color:var(--muted); font:inherit; background:none; cursor:pointer; }
.dash-channel-link:hover { color:var(--accent); }
.dash-place { display:inline-grid; place-items:center; width:25px; height:25px; font-variant-numeric:tabular-nums; color:#b7b7b7; border-radius:5px; font-size:.7rem; }
.dash-place.is-first { background:#2d2414; color:#efbe69; }
.dash-race-time,.dash-race-when { color:var(--muted); font-variant-numeric:tabular-nums; }
.dash-race-points { color:#cfb17d; font-variant-numeric:tabular-nums; font-weight:600; }
.dash-mobile-time { display:none; }
.dash-rewards-panel { border:1px solid var(--border); border-radius:9px; background:var(--surface); padding:1rem; min-width:0; }
.dash-rewards-panel>.dash-card-head { margin-bottom:.8rem; }
.dash-rewards-panel .xp-bar-section { background:none; border:0; padding:0 0 .85rem; margin:0; border-radius:0; }
.dash-rewards-panel .xp-bar-row { display:grid; grid-template-columns:auto 1fr; gap:.65rem; }
.dash-rewards-panel .xp-level-badge { font-size:.78rem; padding:.25rem .45rem; }
.dash-rewards-panel .xp-bar-track { height:5px; }
.dash-rewards-panel .xp-bar-nums { grid-column:1 / -1; text-align:left; font-size:.65rem; color:var(--muted); }
.dash-rewards-panel .btn--claim-reward { display:block; width:100%; margin:.6rem 0 0; text-align:left; font-size:.73rem; padding:.5rem .65rem; border-radius:6px; box-shadow:none; }
.dash-rewards-panel .xp-bar-section .btn--claim-reward { background:#292217; border:1px solid #514027; color:#edc17a; }
#page-dashboard .dash-rewards-panel .event-card { padding:.85rem 0 0; border:0; border-top:1px solid var(--border); border-radius:0; margin:0; background:transparent; box-shadow:none; }
.dash-rewards-panel #dash-raid-slot:empty { display:none; }
.dash-rewards-panel .event-card-head { display:block; margin:0; }
.dash-rewards-panel .event-card-head .dash-heading { text-transform:none; letter-spacing:0; font-size:.76rem; font-weight:600; color:var(--text); margin:0 0 .2rem; }
.dash-rewards-panel .event-progress { display:block; margin:.75rem 0; }
.dash-rewards-panel .event-progress-track { height:3px; margin-bottom:.45rem; }
.dash-rewards-panel .event-progress>span { font-size:.62rem; color:var(--muted); line-height:1.5; }
.dash-rewards-panel .event-collection { margin:0 0 .75rem; }
.dash-rewards-panel .event-collection>summary { font-size:.65rem; padding:.2rem 0; }
.dash-rewards-panel .event-collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:350px; overflow:auto; margin-top:.8rem; }
.dash-rewards-panel .event-item-preview { height:70px; }
.dash-rewards-panel .event-item-name { font-size:.64rem; }
.dash-reward-caption { font-size:.68rem; color:var(--muted); margin-top:.3rem; }
.dash-rewards-panel .event-card-intro { font-size:.68rem; margin-top:.7rem; }
.dash-rewards-panel .team-raid-action-msg:empty { display:none; }
#page-dashboard .dash-team-card { padding:1rem; border-left:1px solid var(--border); border-radius:8px; background:var(--surface); margin:0; }
#page-dashboard .dash-team-label { text-transform:none; letter-spacing:0; font-size:.72rem; color:var(--muted); margin-bottom:.75rem; }
#page-dashboard .dash-team-hdr { flex-wrap:wrap; gap:.4rem; }
#page-dashboard .dash-team-hdr>span:nth-child(2) { font-size:.85rem !important; }
#page-dashboard .dash-team-meta { font-size:.66rem; gap:.35rem .75rem; margin-top:.65rem; }
.dash-inline-link { display:inline-block; margin-top:.75rem; color:#d5b17c; font-size:.7rem; }
.dash-inline-link:hover { text-decoration:underline; }
.dash-local-card { padding:.9rem 1rem; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.dash-local-card>summary { font-size:.73rem; cursor:pointer; }
.dash-local-card>summary>span { float:right; color:var(--muted); font-size:.65rem; }
.dash-local-search { display:flex; gap:.5rem; margin-top:.8rem; }
.dash-local-search input { min-width:0; flex:1; font-size:.73rem; padding:.5rem .6rem; width:100%; }
.dash-local-result { font-size:.72rem; color:var(--muted); line-height:1.65; margin-top:.4rem; }
.dash-quick-link { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.1rem .2rem; color:var(--muted); font-size:.7rem; }
.dash-quick-link:hover { color:var(--text); }
.dash-style-layout { display:grid; grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr); gap:1.75rem; align-items:start; }
.dash-style-preview { position:sticky; top:80px; min-width:0; }
#page-dashboard .dash-style-preview .celeb-preview { min-height:240px; margin:0; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid var(--border2); background-color:#101010; }
.dash-style-preview .celeb-pv-name { font-size:clamp(1.2rem,2.7vw,2rem); overflow-wrap:anywhere; }
.dash-style-preview .celeb-preview-actions { flex-wrap:wrap; justify-content:center; margin-top:.8rem; gap:.3rem; }
.dash-style-preview .celeb-preview-actions .btn { font-size:.68rem; }
.dash-preview-caption { color:var(--muted); font-size:.65rem; text-align:center; margin-top:.75rem; }
.dash-style-preview .celeb-rarity-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:.4rem; font-size:.6rem; color:var(--muted); margin-top:1rem; }
.dash-style-preview .celeb-rarity-legend span { border:0; background:none; }
.dash-style-controls { min-width:0; }
#page-dashboard .dash-style-controls .celeb-editor-grid { display:block; }
#page-dashboard .dash-style-controls .celeb-editor-group { border:1px solid var(--border); border-radius:7px; background:#171717; margin-bottom:.5rem; padding:0 .85rem; }
#page-dashboard .dash-style-controls .celeb-editor-group>summary { display:list-item; padding:.85rem 0; margin:0; font-size:.74rem; color:var(--text); text-transform:none; letter-spacing:0; cursor:pointer; }
.dash-style-choice { float:right; max-width:48%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:.67rem; font-weight:400; }
#page-dashboard .dash-style-controls .celeb-pills { padding:.1rem 0 .85rem; }
#page-dashboard .celeb-pill { font-size:.68rem; }
#page-dashboard .rarity-common { color:#aaa; } #page-dashboard .rarity-uncommon { color:#69b88a; }
#page-dashboard .rarity-rare { color:#7ea6e8; } #page-dashboard .rarity-epic { color:#b395e3; }
#page-dashboard .rarity-legendary { color:#e1b45c; }
#page-dashboard .celeb-pill.active { border-color:var(--accent); color:var(--accent); }
.dash-empty { padding:1.5rem; line-height:1.7; color:var(--muted); font-size:.8rem; }
.dash-empty strong { color:var(--text); font-weight:600; }
.dash-preview-dialog { background:var(--surface); color:var(--text); padding:1.7rem; border:1px solid var(--border2); border-radius:12px; width:min(400px,calc(100vw - 32px)); margin:auto; }
.dash-preview-dialog::backdrop { background:#000b; }
.dash-preview-dialog h2 { font-size:1.25rem; }
.dash-preview-dialog>p:not(.db-eyebrow) { color:#999; font-size:.8rem; line-height:1.6; margin:1rem 0; }
.dash-preview-dialog .btn { width:100%; }
.dash-example-unlock { display:flex; flex-direction:column; align-items:center; gap:.8rem; padding:1.5rem; margin:1rem 0; border:1px solid #3a465b; border-radius:8px; background:#151a22; }
.dash-example-unlock>span { font-size:.7rem; color:#9aa6bb; }
@media(min-width:1500px) { .dash-workspace { grid-template-columns:minmax(0,1fr) 350px; } }
@media(max-width:1000px) {
  .dash-workspace { grid-template-columns:minmax(0,1fr) 290px; gap:.85rem; }
  #page-dashboard .dash-primary-stats .dash-stat { padding:.15rem .6rem; }
  .dash-races-table th:first-child,.dash-races-table td:first-child { width:45px; padding-left:.7rem; }
  .dash-races-table th:last-child { width:60px; }
  .dash-races-table th:nth-child(4) { width:55px; }
}
@media(max-width:800px) {
  .dash-workspace { grid-template-columns:minmax(0,1fr); }
  .dash-sidebar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .dash-rewards-panel { grid-row:span 3; }
  .dash-style-layout { grid-template-columns:minmax(0,1fr); }
  .dash-style-preview { position:static; }
  #page-dashboard .dash-style-preview .celeb-preview { min-height:180px; }
  .dash-style-preview .celeb-pv-name { font-size:1.6rem; }
}
@media(max-width:540px) {
  #page-dashboard .dashboard-page-header { align-items:flex-start; gap:.4rem; }
  #page-dashboard .page-title { font-size:1.4rem; }
  .dashboard-page-header>.btn { margin-top:1.2rem; font-size:.65rem; padding:.4rem; white-space:nowrap; }
  .dash-page-intro { font-size:.72rem; max-width:200px; line-height:1.5; }
  .dash-demo-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; font-size:.65rem; gap:.5rem; }
  .dash-demo-bar label>span { display:none; }
  .dash-demo-note { display:block; margin-top:.25rem; }
  .dash-demo-bar select { min-height:32px; }
  #page-dashboard .dash-header { flex-direction:row; align-items:center; }
  .dash-avatar { flex-basis:36px; height:36px; border-radius:9px; font-size:.75rem; }
  #page-dashboard .dash-name { font-size:.9rem; }
  #page-dashboard .dash-sub { font-size:.62rem; }
  .dash-identity { gap:.6rem; }
  .dash-season-mark { display:none; }
  .dash-header-actions .btn { font-size:.68rem; padding:.4rem .55rem; }
  .dash-tabs { gap:1.2rem; margin-bottom:1rem; }
  .dash-tabs button { font-size:.75rem; }
  #page-dashboard .dash-section { padding:.9rem; }
  .dash-card-head { margin-bottom:1rem; }
  .dash-card-head h3 { font-size:.79rem; }
  .dash-small-label { font-size:.63rem; }
  #page-dashboard .dash-primary-stats { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:1rem; }
  #page-dashboard .dash-primary-stats .dash-stat:nth-child(odd) { padding-left:0; border-left:0; }
  #page-dashboard .dash-primary-stats .dash-stat-num { font-size:1.6rem; }
  #page-dashboard .dash-stat-lbl { font-size:.65rem; margin-top:.35rem; }
  .dash-mode-breakdown { gap:.6rem; }
  .dash-mode-breakdown>div>span { font-size:.6rem; }
  .dash-mode-breakdown strong { font-size:.85rem; }
  .dash-mode-breakdown p { font-size:.57rem; }
  #page-dashboard .dash-recent { padding:.9rem 0 .1rem; }
  .dash-recent>.dash-card-head { padding:0 .9rem; }
  .dash-race-time { display:none; }
  .dash-mobile-time { display:inline; }
  .dash-races-table th:first-child,.dash-races-table td:first-child { width:37px; padding-left:.6rem; padding-right:.2rem; }
  .dash-races-table th:nth-child(4) { width:51px; }
  .dash-races-table th:last-child { width:49px; }
  .dash-races-table th:last-child,.dash-races-table td:last-child { padding-right:.6rem; }
  .dash-races-table td { padding:.75rem .35rem; font-size:.67rem; }
  .dash-race-name>strong { font-size:.69rem; }
  .dash-race-name>span { font-size:.56rem; line-height:1.65; }
  .dash-sidebar { display:flex; }
  .dash-local-card>summary,.dash-tabs button,.dash-style-controls .celeb-editor-group>summary { min-height:44px; }
  .dash-local-card>summary { display:flex; align-items:center; gap:.6rem; justify-content:space-between; }
  .dash-rewards-panel .btn--claim-reward { min-height:42px; }
  .dash-style-layout { gap:1.2rem; }
}
@media(prefers-reduced-motion:reduce) { #page-dashboard * { scroll-behavior:auto; animation-duration:.01ms !important; } }

/* Victory Style customiser: live stage, saved looks, icon tabs, visual tiles, save bar. */
#page-dashboard .vs { --vs-r-common:#5f6b7a; --vs-r-uncommon:#4ade80; --vs-r-rare:#60a5fa; --vs-r-epic:#c084fc; --vs-r-legendary:#fbbf24;
  max-width:860px; margin:0 auto; padding:0; border:0; background:none; position:relative; }
.vs-stage { position:relative; }
#page-dashboard .vs-stage .celeb-preview--live { border:1px solid var(--border2); border-radius:12px; box-shadow:0 18px 50px -24px rgba(0,0,0,.9); }
.vs-stage-tools { position:absolute; right:.6rem; bottom:.6rem; display:flex; gap:.4rem; z-index:2; }
.vs-icon-btn { appearance:none; width:40px; height:40px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.18);
  background:rgba(10,10,10,.72); color:#fff; font-size:1rem; line-height:1; cursor:pointer; backdrop-filter:blur(4px); transition:transform .12s, border-color .12s, background .12s; }
.vs-icon-btn:hover { transform:scale(1.08); border-color:var(--accent); }
.vs-icon-btn--play { background:var(--accent); border-color:var(--accent); color:#1a1205; font-size:.9rem; }
.vs-icon-btn:focus-visible,.vs-tab:focus-visible,.vs-tile:focus-visible,.vs-look-main:focus-visible,.vs-mini-btn:focus-visible { outline:2px solid var(--text); outline-offset:2px; }

/* Saved looks */
.vs-looks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; margin:.9rem 0 1rem; }
.vs-look { position:relative; min-width:0; border:1px solid var(--border2); border-radius:10px; background:#141414; padding:.4rem; }
.vs-look.is-worn { border-color:var(--green); box-shadow:0 0 0 1px rgba(76,175,125,.35); }
.vs-look.is-broken .vs-look-main { opacity:.6; }
.vs-look-main { appearance:none; display:block; position:relative; width:100%; padding:0; border:0; background:none; cursor:pointer; border-radius:7px; }
.vs-look-foot { display:flex; align-items:center; gap:.2rem; margin-top:.35rem; min-width:0; }
.vs-look-label { flex:1; min-width:0; font-size:.72rem; font-weight:650; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vs-look-input { flex:1; min-width:0; font:inherit; font-size:.72rem; color:var(--text); background:#0c0c0c; border:1px solid var(--accent); border-radius:5px; padding:.15rem .3rem; }
.vs-mini-btn { appearance:none; flex:0 0 26px; height:26px; border:1px solid var(--border2); border-radius:6px; background:#1b1b1b; color:var(--muted); cursor:pointer; font-size:.78rem; line-height:1; }
.vs-mini-btn:hover { color:var(--text); border-color:var(--accent); }
.vs-look--empty { appearance:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.2rem; min-height:92px; cursor:pointer;
  border:1px dashed var(--border2); background:transparent; color:var(--muted); font:inherit; }
.vs-look--empty:hover { border-color:var(--accent); color:var(--text); }
.vs-look--empty .vs-look-label { flex:0 0 auto; color:inherit; font-weight:500; }
.vs-look-plus { font-size:1.2rem; }

/* Mini cards (frame tiles and looks) reuse the preview frame classes at a small size. */
#page-dashboard .celeb-preview.vs-minicard { display:flex; align-items:center; justify-content:center; width:100%; min-height:0; height:54px; padding:0 .4rem; margin:0;
  border-radius:8px; gap:0; background-color:#0b0b0b; overflow:hidden; animation:var(--frame-animation, none); }
.celeb-preview.vs-minicard > span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:'Bebas Neue', Impact, sans-serif; font-size:1rem; letter-spacing:.04em; color:#fff; }
#page-dashboard .vs-minicard .vs-look-name { font-size:1.15rem; text-shadow:0 2px 8px rgba(0,0,0,.8); line-height:1.1; }
#page-dashboard .celeb-preview.vs-minicard--look { height:58px; }

/* Icon tabs */
.vs-tabs { display:flex; gap:.35rem; overflow-x:auto; scrollbar-width:none; padding:.1rem .1rem .5rem; margin:0 0 .7rem; border-bottom:1px solid var(--border2); }
.vs-tabs::-webkit-scrollbar { display:none; }
.vs-tab { appearance:none; position:relative; flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:.2rem; min-width:64px; padding:.45rem .5rem .4rem;
  border:1px solid transparent; border-radius:10px; background:none; color:var(--muted); font:inherit; cursor:pointer; transition:background .12s, color .12s; }
.vs-tab:hover { color:var(--text); background:#171717; }
.vs-tab[aria-selected="true"] { color:var(--text); background:#1d1a14; border-color:#4a3a23; }
.vs-tab-ic { font-size:1.25rem; line-height:1; font-weight:800; font-family:Georgia, serif; }
.vs-tab-lb { font-size:.66rem; font-weight:600; letter-spacing:.02em; }
.vs-tab.is-changed::after { content:""; position:absolute; top:5px; right:9px; width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 6px var(--accent); }
#dash-tab-style.has-unsaved::before { content:""; position:absolute; top:.55rem; right:-.55rem; width:6px; height:6px; border-radius:50%; background:var(--accent); }

/* Tiles */
.vs-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:.6rem; padding:.45rem .2rem .4rem; }
.vs-grid--font,.vs-grid--effect,.vs-grid--title,.vs-grid--frame { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
.vs-tile { appearance:none; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem; min-width:0; min-height:96px;
  padding:.65rem .45rem .5rem; border:1.5px solid var(--vs-r, var(--vs-r-common)); border-radius:11px; background:linear-gradient(180deg,#191919,#121212);
  color:var(--text); font:inherit; cursor:pointer; text-decoration:none; transition:transform .12s, box-shadow .15s, background .15s; }
.vs-tile:hover { transform:translateY(-2px); background:linear-gradient(180deg,#202020,#151515); }
.vs-r-common { --vs-r:#3f4752; }
.vs-r-uncommon { --vs-r:rgba(74,222,128,.7); }
.vs-r-rare { --vs-r:rgba(96,165,250,.85); box-shadow:inset 0 -18px 24px -18px rgba(96,165,250,.35); }
.vs-r-epic { --vs-r:var(--vs-r-epic); box-shadow:0 0 12px -3px rgba(192,132,252,.55), inset 0 -18px 24px -18px rgba(192,132,252,.4); }
.vs-r-legendary { --vs-r:var(--vs-r-legendary); box-shadow:0 0 16px -2px rgba(251,191,36,.6), inset 0 -20px 26px -16px rgba(251,191,36,.45); }
.vs-tile.is-picked { outline:3px solid var(--accent); outline-offset:2px; background:linear-gradient(180deg,#2a2112,#16120a); }
.vs-art { display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; min-width:0; }
.vs-label { max-width:100%; font-size:.7rem; font-weight:600; color:#cfcfcf; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vs-lvl { position:absolute; left:6px; top:6px; font-size:.56rem; font-weight:800; color:#1a1205; background:var(--accent); border-radius:5px; padding:.05rem .3rem; }
.vs-mark { position:absolute; top:-7px; right:-7px; z-index:1; min-width:20px; height:20px; padding:0 .3rem; display:grid; place-items:center; border-radius:10px;
  font-size:.62rem; font-weight:850; line-height:1; letter-spacing:.03em; box-shadow:0 2px 6px rgba(0,0,0,.6); }
.vs-mark--on { background:var(--green); color:#04140b; }
.vs-mark--new { background:var(--accent); color:#1a1205; }
.vs-mark--warn { background:var(--red); color:#fff; right:auto; left:-7px; }
.vs-swatch { display:block; width:44px; height:44px; border-radius:50%; border:2px solid rgba(255,255,255,.22); box-shadow:inset 0 -6px 10px rgba(0,0,0,.25); }
#page-dashboard .vs-swatch.celeb-pv-name { font-size:0; -webkit-background-clip:border-box; background-clip:border-box; -webkit-text-fill-color:initial; text-shadow:none; }
.vs-swatch--team { background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.25) 0 4px,transparent 4px 9px); }
.vs-font { max-width:100%; font-size:1.3rem; line-height:1.25; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vs-fx-stage { display:block; max-width:100%; overflow:hidden; padding:.2rem .3rem; }
#page-dashboard .vs-fx-name { display:inline-block; max-width:100%; font-size:1.5rem; overflow:visible; white-space:nowrap; }
/* Tiles skip drop-shadow filters (they can paint as boxes at this size); glow keeps its look as a text-shadow. */
#page-dashboard .vs-fx-name { filter:none !important; }
#page-dashboard .vs-fx-name.ne-glow { text-shadow:0 0 6px currentColor, 0 0 14px currentColor; }
.vs-icon { font-size:1.9rem; line-height:1; filter:drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
@keyframes vs-float { 0%,100% { transform:translateY(0) rotate(-4deg); } 50% { transform:translateY(-5px) rotate(4deg); } }
.vs-icon--float { animation:vs-float 2.6s ease-in-out infinite; }
@keyframes vs-pop { 0% { transform:scale(.4) translateY(10px); opacity:0; } 70% { transform:scale(1.15); opacity:1; } 100% { transform:scale(1); } }
.vs-tile--entry:hover .vs-icon,.vs-tile--entry.is-picked .vs-icon { animation:vs-pop .5s cubic-bezier(.2,.9,.3,1.3); }
.vs-dots { display:flex; align-items:center; justify-content:center; gap:3px; flex-wrap:wrap; max-width:84px; }
.vs-dots i { width:13px; height:13px; border-radius:50%; border:1px solid rgba(255,255,255,.25); }
.vs-dots i:nth-child(even) { transform:translateY(5px); }
.vs-tile--confetti:hover .vs-dots i { animation:vs-float 1.4s ease-in-out infinite; animation-delay:calc(var(--i) * -.2s); }
.vs-title-tag { max-width:100%; padding:.35rem .6rem; border:1px solid rgba(245,166,35,.45); border-radius:6px; background:rgba(245,166,35,.08);
  color:#f8d79a; font-size:.74rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vs-title-tag--none { border-style:dashed; border-color:var(--border2); color:var(--muted); background:none; }
.vs-tile--title { min-height:72px; }
.vs-tile.vs-tile--locked { border:1.5px dashed var(--border2); background:repeating-linear-gradient(135deg,#141414 0 8px,#111 8px 16px); color:var(--muted); box-shadow:none; }
.vs-tile--locked .vs-label { color:var(--muted); }
.vs-tile.vs-tile--locked:hover { color:var(--text); border-color:var(--accent); }
.vs-tile--locked:hover .vs-label { color:var(--accent); }
.vs-tasks-link { display:inline-flex; gap:.35rem; margin-top:.6rem; font-size:.7rem; color:var(--muted); text-decoration:none; }
.vs-tasks-link:hover { color:var(--accent); }

/* Save bar: slides up while the picks differ from the saved look. */
.vs-savebar { position:sticky; bottom:12px; z-index:5; display:flex; align-items:center; gap:.5rem; margin:1rem auto 0; width:fit-content; max-width:100%;
  padding:.5rem .55rem .5rem .95rem; border:1px solid #4a3a23; border-radius:999px; background:rgba(26,21,13,.96); box-shadow:0 14px 40px -10px rgba(0,0,0,.9);
  transform:translateY(160%); opacity:0; pointer-events:none; transition:transform .25s cubic-bezier(.2,.9,.3,1.2), opacity .2s; }
.vs-savebar.is-on { transform:none; opacity:1; pointer-events:auto; }
.vs-bar-msg { font-size:.76rem; font-weight:650; color:#f1d7a8; margin-right:.3rem; }
.vs-savebar.is-ok { border-color:rgba(76,175,125,.6); background:rgba(10,30,19,.96); }
.vs-savebar.is-ok .vs-bar-msg { color:#7fe0ae; }
.vs-savebar.is-err { border-color:rgba(224,85,85,.7); background:rgba(36,12,12,.96); }
.vs-savebar.is-err .vs-bar-msg { color:#ff9c9c; }
.vs-savebar .btn { border-radius:999px; min-height:34px; }

@media(max-width:540px) {
  .vs-stage-tools { right:.4rem; bottom:.4rem; gap:.3rem; }
  .vs-icon-btn { width:36px; height:36px; font-size:.9rem; }
  .vs-looks { gap:.4rem; margin:.7rem 0 .8rem; }
  .vs-look { padding:.3rem; }
  #page-dashboard .celeb-preview.vs-minicard--look { height:46px; }
  #page-dashboard .vs-minicard .vs-look-name { font-size:.9rem; }
  .vs-look-foot .vs-mini-btn { flex-basis:24px; height:24px; }
  .vs-look-foot { flex-wrap:wrap; }
  .vs-look-label { flex-basis:100%; font-size:.66rem; }
  .vs-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; }
  .vs-grid--font,.vs-grid--effect,.vs-grid--title,.vs-grid--frame { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .vs-tile { min-height:86px; padding:.55rem .3rem .45rem; }
  .vs-tab { min-width:56px; padding:.4rem .35rem; }
  .vs-savebar { bottom:8px; padding-left:.8rem; }
  .vs-bar-msg { font-size:.7rem; }
}
@media(prefers-reduced-motion:reduce) { .vs-icon--float,.vs-tile--confetti:hover .vs-dots i { animation:none; } }
