


html:root {
  --cv4-surface-2: color-mix(in srgb, var(--text) 6%, var(--surface));
  --cv4-hover: color-mix(in srgb, var(--text) 8%, var(--surface));
  --cv4-wash: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --cv4-faint: var(--soft);
  --cv4-on-accent: var(--on-accent, #fff);
  --i1: #fbe4d8; --i1t: #a92f0f; --i2: #e6eef9; --i2t: #2a5698; --i3: #e4f1e7; --i3t: #1b6e3f;
  --i4: #f6ecd6; --i4t: #83500a; --i5: #efe6f7; --i5t: #6a3fa0; --i6: #e3f0f1; --i6t: #1f6467;
}
html:root[data-theme="dark"] {
  --i1: rgba(255,122,82,.16); --i1t: #ff9f80; --i2: rgba(96,165,250,.16); --i2t: #9cc5ff; --i3: rgba(95,211,154,.14); --i3t: #7fe0b0;
  --i4: rgba(230,180,92,.14); --i4t: #efc77d; --i5: rgba(200,160,255,.15); --i5t: #d2b6ff; --i6: rgba(94,214,214,.14); --i6t: #8fe3e3;
}


html:root[data-skin="night"]:not([data-brand="echoteka"]) {
  --bg: #0e0e17; --surface: #171724; --line: #3e3e58; --line-soft: #2b2b3e; --text: #ececf6; --soft: #b3b3cc;
  --accent: #7c3aed; --accent-text: #c4b2ff; --icon-bg: rgba(124,58,237,.22); --on-accent: #fff;
  --ok: #5fd39a; --bad: #ff9a9a; --warn: #e6b45c; --warn-bg: #2a2313; --warn-line: #7a6125;
  --cv4-wash: rgba(124,58,237,.24);
  --i1: rgba(124,58,237,.24); --i1t: #c9b6ff; --i5: rgba(236,121,197,.15); --i5t: #f3a6d8;
  color-scheme: dark;
}


html:root[data-skin="soft"]:not([data-brand="echoteka"]) {
  --bg: #f3f1f7; --surface: #ffffff; --line: #cfc8de; --line-soft: #e7e3ef; --text: #28252f; --soft: #57536a;
  --accent: #5f45c8; --accent-text: #4f37b0; --icon-bg: #ebe6fb; --on-accent: #fff;
  --ok: #1f6b45; --bad: #a3281a; --warn: #8a5300;
  --cv4-wash: #ebe6fb;
}

html:root[data-skin="soft"][data-brand="echoteka"] {
  --bg: #f1f5f3; --surface: #ffffff; --surface-2: #e6eeea; --line: #c4d2cb; --line-soft: #e0e8e4; --border: #c4d2cb; --border-soft: #e0e8e4;
  --text: #1c2421; --soft: #4b5852; --text-soft: #4b5852; --accent: #2f9e72; --on-accent: #06140e; --accent-text: #0f6b47; --text-accent: #0f6b47;
  --icon-bg: #e3f2ea; --ok: #0f6b47; --bad: #a3281a; --warn: #8a5300;
  --cv4-wash: #e3f2ea; color-scheme: light;
}


html:root[data-skin="contrast"]:not([data-brand="echoteka"]) {
  --bg: #ffffff; --surface: #ffffff; --line: #000000; --line-soft: #000000; --text: #000000; --soft: #1f1f1f;
  --accent: #8f2408; --accent-text: #8f2408; --icon-bg: #ffe6dc; --on-accent: #fff; --ok: #0b5a2e; --bad: #8f1d0a; --warn: #6b3a00;
  --cv4-wash: #ffe6dc; --cv4-surface-2: #f1f1f1; --cv4-hover: #ececec;
  --i1: #ffe6dc; --i1t: #8f2408; --i2: #e3ecfa; --i2t: #123f80; --i3: #e3f3e8; --i3t: #0b5a2e; --i4: #fff0d6; --i4t: #6b3a00; --i5: #f1e6fa; --i5t: #4f2386; --i6: #e0f1f2; --i6t: #0f4f52;
}
html:root[data-skin="contrast"][data-brand="echoteka"] {
  --bg: #000; --surface: #000; --surface-2: #111; --line: #fff; --line-soft: #fff; --border: #fff; --border-soft: #fff;
  --text: #fff; --soft: #e6e6e6; --text-soft: #e6e6e6; --accent: #7cffb2; --on-accent: #000; --accent-text: #7cffb2; --text-accent: #7cffb2;
  --icon-bg: #0d2a1b; --ok: #7cffb2; --bad: #ffa3a3; --warn: #ffcf70; --cv4-wash: #0d2a1b; --cv4-surface-2: #111; --cv4-hover: #1a1a1a;
  --i1: #0d2a1b; --i1t: #7cffb2; --i2: #0d1b2a; --i2t: #9cc8ff; --i3: #2a1f05; --i3t: #ffcf70; --i4: #1d1030; --i4t: #d2b6ff; --i5: #2a0d16; --i5t: #ffa3bb; --i6: #0a2626; --i6t: #8fecec;
  color-scheme: dark;
}
html:root[data-skin="contrast"] body { font-size: 16px; }
html:root[data-skin="contrast"] .cv4-cube,
html:root[data-skin="contrast"] .ui-cubegrid > button,
html:root[data-skin="contrast"] .uw-v3-track,
html:root[data-skin="contrast"] .uw-v3-step,
html:root[data-skin="contrast"] .card { border-width: 2px !important; border-color: var(--line) !important; }
html:root[data-skin="contrast"] .cv4-cn { font-size: 16px; }
html:root[data-skin="contrast"] .cv4-cv,
html:root[data-skin="contrast"] .cv4-mn,
html:root[data-skin="contrast"] .ui-hint,
html:root[data-skin="contrast"] .muted { font-size: 15px; }
html:root[data-skin="contrast"] :focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }


.cv4-cubes { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.cv4-cube {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 92px; min-width: 44px; padding: 10px 6px 8px; box-sizing: border-box; border-radius: 14px;
  background: var(--surface); border: 2px solid var(--line-soft); color: var(--text); text-decoration: none; cursor: pointer;
  text-align: center; font: inherit; line-height: 1.2;
}
.cv4-cube:hover { background: var(--cv4-hover); }
.cv4-cube:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.cv4-ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 2px; flex: none; }
.cv4-ci svg { width: 19px; height: 19px; display: block; }
.cv4-cn { font-size: 14px; font-weight: 500; letter-spacing: -.01em; max-width: 100%; overflow: hidden; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cv4-cv { font-size: 13px; color: var(--soft); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cv4-cube.is-on { border-color: var(--accent); background: var(--cv4-wash); }
.cv4-cube.is-on .cv4-cv { color: var(--accent-text); font-weight: 500; }
.cv4-cube.is-on::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cv4-cube.is-lock { cursor: default; }
.cv4-cube.is-lock::after { display: none; }
.cv4-clk { position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; color: var(--accent-text); }
.cv4-clk svg { width: 14px; height: 14px; display: block; }
.cv4-cb { position: absolute; top: 6px; left: 6px; font-size: 13px; font-weight: 500; color: var(--accent-text); background: var(--surface); border-radius: 999px; padding: 0 6px; line-height: 18px; }
.cv4-cube.is-more { background: transparent; border: 2px dashed var(--line); }
.cv4-cube[aria-disabled="true"]:not(.is-lock) { opacity: .55; cursor: not-allowed; }

html:root .ts-steps, html:root .ts-steps *, html:root .drop .s,
html:root .ts .tag, html:root .ts-head .tag, html:root .uw-v3-meta { font-family: var(--font-text); font-size: 13px; letter-spacing: 0; }
.cv4-cube[hidden] { display: none; }
.c0 { background: var(--cv4-surface-2); color: var(--soft); }
.c1 { background: var(--i1); color: var(--i1t); } .c2 { background: var(--i2); color: var(--i2t); } .c3 { background: var(--i3); color: var(--i3t); }
.c4 { background: var(--i4); color: var(--i4t); } .c5 { background: var(--i5); color: var(--i5t); } .c6 { background: var(--i6); color: var(--i6t); }

@media (hover: hover) {
  .cv4-cube[data-hint]:hover::before { content: attr(data-hint); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 220px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 400; line-height: 1.35; padding: 8px 10px; border-radius: 8px; z-index: 20; text-align: left; pointer-events: none; }
  .cv4-cube[title] { }
}
.cv4-cube.is-tip::before { content: attr(data-hint); position: absolute; left: 0; bottom: calc(100% + 8px); width: 200px; background: var(--text); color: var(--bg); font-size: 13px; line-height: 1.35; padding: 8px 10px; border-radius: 8px; z-index: 20; text-align: left; }

.cv4-sec { display: grid; gap: 8px; margin: 0; }
.cv4-h { margin: 0; font-size: 15px; font-weight: 500; color: var(--text); }
.cv4-sub { font-size: 13px; font-weight: 400; color: var(--soft); margin-left: 6px; }


.cv4-tsel { position: relative; display: inline-flex; flex: none; }
.cv4-tsel-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 8px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.cv4-tsel-b:hover { background: var(--cv4-hover); }
.cv4-tsel-b svg { width: 16px; height: 16px; color: var(--soft); }
.cv4-sw { width: 24px; height: 24px; border-radius: 50%; flex: none; border: 1px solid var(--line); box-sizing: border-box; }
.cv4-tpop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; width: 248px; padding: 6px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cv4-tpop[hidden] { display: none; }
.cv4-tpop button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.cv4-tpop button:hover { background: var(--cv4-hover); }
.cv4-tpop button[aria-checked="true"] { background: var(--cv4-wash); }
.cv4-tpop button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent-text); font-weight: 500; }
@media (max-width: 1023px) { .cv4-tname, .cv4-tsel-b > svg:not(.cv4-ticon) { display: none; } .cv4-tsel-b { padding: 0 9px; } }


.cv4-side { display: flex; flex-direction: column; gap: 2px; }
.cv4-mi { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 12px; color: var(--text); font: inherit; font-size: 15px; line-height: 1.25; text-decoration: none; background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; box-sizing: border-box; }
.cv4-mi:hover { background: var(--cv4-hover); }
.cv4-mi svg { width: 18px; height: 18px; flex: none; color: var(--soft); }
.cv4-mi.is-cur { background: var(--cv4-wash); color: var(--accent-text); font-weight: 500; }
.cv4-mi.is-cur svg { color: var(--accent-text); }
.cv4-mn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv4-ml { margin-left: auto; font-size: 13px; color: var(--soft); white-space: nowrap; }
.cv4-mh { margin: 12px 10px 4px; font-size: 13px; font-weight: 500; color: var(--soft); }
.cv4-msep { height: 1px; background: var(--line-soft); margin: 8px 10px; }
.cv4-legal { margin: 14px 10px 0; font-size: 13px; color: var(--soft); line-height: 1.6; }
.cv4-legal a { color: var(--soft); }
html:root .sh-side .fb-foot { margin-top: 2px; }
html:root .sh-side .fb-foot .nav { min-height: 44px; font-size: 15px; }
html:root .sh-side .fb-legal { display: none; }


.cv4-home { display: grid; gap: 10px; }
.cv4-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.cv4-tabs button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--soft); font: inherit; font-size: 15px; cursor: pointer; }
.cv4-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 500; border-color: var(--line); }
.cv4-cubes--tools { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }

html:root .uw-v3-hero { display: block; padding: 0; border: 0; background: transparent; }
html:root .uw-v3-hero-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:root .uw-v3-hero .drop { width: 100%; min-height: 112px; display: flex; flex-direction: row; align-items: center; gap: 18px; text-align: left; border: 2px dashed var(--line); border-radius: 18px; background: var(--surface); padding: 20px 24px; box-sizing: border-box; }
html:root .uw-v3-hero .drop .min0 { flex: 1; min-width: 0; display: grid; gap: 4px; }
html:root .uw-v3-hero .drop .t { font-size: 19px; font-weight: 500; }
html:root .uw-v3-hero .drop .s { font-family: var(--font-text); font-size: 13px; letter-spacing: 0; color: var(--soft); }
html:root .uw-v3-hero .drop .cta { min-height: 48px; margin: 0 0 0 auto; flex: none; }
@media (max-width: 1023px) {
  html:root .uw-v3-hero .drop { flex-direction: column; text-align: center; padding: 18px 16px; gap: 10px; min-height: 0; }
  html:root .uw-v3-hero .drop .cta { margin: 0; }
}
html:root .uw-v3-offer { font-size: 14px; }
html:root .uw-v3-link { min-height: 44px; font-size: 14px; }

html:root .uw-v3-right { border-left: 1px solid var(--line-soft); padding-left: 16px; gap: 22px; }
html:root .uw-v3-right .uw-h,
html:root .uw-v3-right h2 { font-family: var(--font-text); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
html:root .uw-v3-news, html:root .uw-v3-vote, html:root .uw-v3-recbox { border: 0 !important; background: transparent !important; padding: 0 !important; }
html:root .uw-v3-right .cta:not(.ghost) { background: var(--cv4-surface-2); color: var(--text); border: 1px solid var(--line); }
html:root .uw-v3-rplay { min-width: 44px; min-height: 44px; }


.cv4-rail { display: grid; gap: 18px; margin-bottom: 14px; }
.cv4-hintbox { background: var(--cv4-surface-2); border-radius: 14px; padding: 14px 16px; }
.cv4-rh { margin: 0 0 6px; font-family: var(--font-text); font-size: 15px; font-weight: 500; color: var(--text); }
.cv4-hn { margin: 0; font-size: 15px; font-weight: 500; }
.cv4-ht { margin: 4px 0 0; font-size: 14px; color: var(--soft); line-height: 1.45; }
.cv4-sum { margin: 0; font-size: 14px; color: var(--soft); line-height: 1.6; }
@media (max-width: 1023px) { .cv4-hintbox { display: none; } }


.cv4-master { display: grid; gap: 20px; }
.cv4-trk { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; }
.cv4-trk-i { flex: 1; min-width: 0; display: grid; gap: 6px; }
.cv4-trk-n { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv4-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cv4-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; background: var(--cv4-surface-2); color: var(--soft); }
.cv4-chip.is-warn { color: var(--warn); }
.cv4-chip.is-ok { color: var(--ok); }
.cv4-go { min-height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; font-weight: 500; }
.cv4-ai { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 10px 14px; border-radius: 12px; background: var(--cv4-wash); color: var(--text); }
.cv4-ai svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; }
.cv4-ai .rc-auto, .cv4-ai p { margin: 0; }
.cv4-pro { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; }
.cv4-pro > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; cursor: pointer; font-size: 15px; }
.cv4-pro > summary::-webkit-details-marker { display: none; }
.cv4-pro > summary svg { width: 20px; height: 20px; color: var(--accent-text); }
.cv4-pro > summary b { font-weight: 500; font-size: 16px; }
.cv4-pro > summary span { font-size: 14px; color: var(--soft); }
.cv4-pro > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 auto; }
.cv4-pro[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.cv4-pro-b { padding: 0 18px 18px; display: grid; gap: 14px; }
.cv4-pro-note { margin: 0; font-size: 14px; color: var(--soft); background: var(--cv4-surface-2); padding: 8px 12px; border-radius: 10px; }
.cv4-pro-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cv4-pro-col { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 1279px) { .cv4-pro-cols { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1023px) {
  html:root .ts .ts-stick { position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); z-index: 6; background: var(--bg); padding: 8px 0; }
  .cv4-trk .cv4-go { display: none; }
  .cv4-cubes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cv4-cube { min-height: 86px; padding: 8px 4px; }
  .cv4-cn { font-size: 13px; }
  .cv4-tabs { flex-wrap: nowrap; overflow-x: auto; }
  html:root .uw-v3-right { border-left: 0; padding-left: 0; }
}


html:root .cv4-done { gap: 12px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
html:root .cv4-done .ts-res-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 22px; }
.cv4-done-name { font: 500 14px/1.3 var(--font-text); color: var(--soft); overflow-wrap: anywhere; min-width: 0; }
.cv4-done-player { display: grid; gap: 8px; min-width: 0; }
.cv4-done-player .ui-hint, .cv4-done-player .notice { font-size: 13px; }
html:root .cv4-done-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
html:root .cv4-done-acts > .cta { min-height: 48px; }
html:root .cv4-done-acts > .cta:first-child { padding: 0 22px; font-size: 16px; font-weight: 500; }
html:root .cv4-fmt { flex: 0 0 auto; }
html:root .cv4-fmt button { min-height: 44px; min-width: 52px; font-size: 13px; }
html:root .cta.cv4-link { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; box-shadow: none; }
html:root .cta.cv4-link:hover { background: var(--cv4-hover); }
html:root .cv4-done .ts-res-tg, html:root .cv4-done .ts-res-clean { font-size: 13px; color: var(--soft); }
html:root .cv4-done .ts-res-tg .cta { min-height: 44px; }
.cv4-res-rate .fb-band { border-top: 0; padding: 8px 4px; }
.cv4-res-rate .fb-segb { min-height: 44px; }
.cv4-res-pass, .cv4-res-clean { display: grid; gap: 10px; min-width: 0; }
.cv4-pp-more { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.cv4-pp-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.cv4-pp-more-b { display: grid; gap: 12px; padding-top: 8px; }
.cv4-res-share { display: grid; gap: 6px; }
.ts-done.cv4-gone { display: none; }

.cv4-res-rate .fb-lab { font-size: 13px; }
.cv4-res-rate .fb-segb { font-size: 14px; }
.cv4-res-pass .ts-pp-verdict { font-size: clamp(20px, 2.2vw, 26px); }
.cv4-res-pass .ts-pp-kicker, .cv4-res-pass .ts-pp-ch, .cv4-res-pass .ts-passport-h, .cv4-res-pass .ts-pp-tag, .cv4-res-pass .ts-pp-chips > * { font-size: 13px; }
html:root [data-mod-result] .cta, html:root [data-mod-result] summary { min-height: 44px; }
html:root .uw-v3-center:has(.cv4-done) > #uwGoals .uw-v3-chip { min-height: 44px; font-size: 14px; }

html:root .ts-vars .ts-res-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html:root .ts-vars .ts-res-chips > .cta,
html:root .ts-vars .ts-res-chips > details > summary { min-height: 44px; height: auto; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 500; font-size: 14px; line-height: 1.25; white-space: normal; text-align: left; box-shadow: none; }
html:root .ts-vars .ts-res-chips > details[open] { flex: 1 1 100%; }

html:root .uw-v3-center:has(.cv4-done) > #uwAdvice { display: none !important; }
html:root .uw-v3-center:has(.cv4-done) > #uwGoals { order: 10; }
html:root .uw-v3-center:has(.cv4-done) > #uwGoals::before { content: attr(aria-label); flex: 1 1 100%; width: 100%; font-size: 13px; font-weight: 500; color: var(--soft); }
html:root:has(.cv4-done) .cv4-cons,
html:root:has(.cv4-done) .cv4-sumbox,
html:root:has(.cv4-done) .cv4-hintbox,
html:root:has(.cv4-done) #uwAsk { display: none !important; }
@media (max-width: 640px) {
  html:root .cv4-done { padding: 14px; }
  html:root .cv4-done-acts > .cta:first-child { flex: 1 1 100%; }
}


html:root .ui-cubegrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; width: 100%; background: transparent; border: 0; padding: 0; }
html:root .ui-cubegrid > button {
  min-height: 64px; min-width: 44px; height: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 6px; margin: 0; border-radius: 14px; border: 2px solid var(--line-soft); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; white-space: normal; box-shadow: none;
}
html:root .ui-cubegrid > button[aria-pressed="true"],
html:root .ui-cubegrid > button[aria-checked="true"] { border-color: var(--accent); background: var(--cv4-wash); color: var(--text); }
html:root .ui-cubegrid > button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
html:root .ui-cubegrid .tic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cv4-surface-2); }
html:root .ui-cubegrid .tic svg { width: 19px; height: 19px; }
html:root .ui-cubegrid .tx { display: grid; gap: 2px; }
html:root .ui-cubegrid .tx .d { display: none; }
html:root .ui-cubegrid .tag { font-size: 13px; font-weight: 500; }


html:root .sh-top .pill, html:root .sh-top .av { min-height: 44px; min-width: 44px; }
html:root .sh-tab { min-height: 56px; }


.cv4-ask { display: inline-flex; align-items: center; gap: 6px; border-color: var(--accent); color: var(--accent-text); font-weight: 500; font-size: 14px; cursor: pointer; }
.cv4-ask svg { width: 18px; height: 18px; }
.cv4-askfab { display: none; }
@media (max-width: 1023px) {
  .cv4-ask-l { display: none; }
  .cv4-ask { padding: 0 10px; }
  html:root .cv4-askfab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent, #fff); cursor: pointer; }
  html:root .cv4-askfab svg { width: 24px; height: 24px; }
  html:root .cv4-askfab:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
  html.as-open .cv4-askfab { display: none; }
}
.cv4-tool.is-ai { border-color: var(--accent); background: var(--cv4-wash); }
.cv4-tool.is-ai .cv4-ci { background: var(--accent); color: var(--on-accent, #fff); }
.cv4-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cv4-cons { display: grid; gap: 8px; }
.cv4-cons .cv4-rh { display: flex; align-items: center; gap: 8px; }
.cv4-cons .cv4-rh svg { width: 18px; height: 18px; color: var(--accent-text); }
.cv4-cons-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.cv4-cons-f input { min-height: 44px; min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; box-sizing: border-box; }
.cv4-cons-f .cta { min-height: 44px; }
.cv4-ai-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.cv4-ai-acts .cta { min-height: 44px; }
.cv4-ai { flex-wrap: wrap; }
.cv4-ai .rc-auto { flex: 1; min-width: 220px; }
.cv4-resai { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); }
.cv4-resai .cv4-cons-f { grid-template-columns: minmax(0, 1fr) auto; }
.cv4-resai-q { display: flex; flex-wrap: wrap; gap: 8px; }
.cv4-resai-q button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--cv4-surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }

.as-drawer { position: fixed; inset: 0; z-index: 80; }
.as-drawer[hidden] { display: none; }
.as-drawer .as-scrim { position: absolute; inset: 0; background: rgba(20, 18, 15, .36); }
.as-dbox { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); padding: 16px 18px; box-sizing: border-box; color: var(--text); }
.as-panel .as-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.as-panel .as-ph h2 { margin: 0; flex: 1; font-size: 18px; }
.as-panel .as-x { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.as-panel .chip { min-height: 44px; }
.as-panel .as-log { max-height: 40vh; }
html.as-open { overflow: hidden; }
@media (max-width: 1023px) {
  .as-dbox { top: auto; left: 0; width: 100%; max-height: 86vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

html:root .ts:has(.cv4-trk) .ts-up { display: none; }
.cv4-trk-chg { min-height: 44px; border: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
html:root .ts-stick-sum { font-family: var(--font-text); font-size: 13px; letter-spacing: 0; }
.cv4-rail .cv4-cons-f { grid-template-columns: minmax(0, 1fr); }
.cv4-resai .cv4-h { display: flex; align-items: center; gap: 8px; }
.cv4-resai .cv4-h svg, .cv4-ai > svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); }

html:root .sh-top .pill { font-size: 13px; }
html:root .sh-brand { min-height: 44px; }
html:root .crumb .tag, html:root .ts-head .tag, html:root .ts .tag, html:root .ts-tag-std { font-size: 13px !important; font-family: var(--font-text) !important; letter-spacing: 0 !important; }
html:root .back, html:root .ts-back, html:root [data-crumb-back] { min-height: 44px; min-width: 44px; }

html:root .crumb .back { border-color: transparent; background: transparent; padding: 0 6px; font-size: 18px; }
html:root details > summary { min-height: 44px; box-sizing: border-box; }

html:root .v3-news-m, html:root .v3-news-m span { font-size: 13px; }
html:root .v3-news-new { font-family: var(--font-text); font-size: 13px; color: var(--accent-text); border-color: var(--accent-text); }
html:root .v3-news-a { min-height: 44px; }
html:root .sh-tab span:not(.sh-c) { font-size: 13px; }

@media (max-width: 1023px) {
  html:root .sh.is-v3 .uw-v3.is-home .cv4-home { order: 2; }
  html:root .sh.is-v3 .uw-v3.is-home .uw-v3-offer { order: 3; }
  html:root .sh.is-v3 .uw-v3.is-home .uw-v3-vote { order: 4; }
}

html:root .ui-cubegrid { grid-template-columns: repeat(auto-fill, minmax(120px, 160px)) !important; }
html:root .ui-cubegrid > button { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
html:root .ts .ui-note, html:root .ts .ui-hint { font-family: var(--font-text); font-size: 13px; letter-spacing: 0; }
html:root .uw-v3-link { color: var(--accent-text); }


.cv4-tw { position: relative; display: grid; min-width: 0; }
.cv4-tw[hidden] { display: none; }
.cv4-tw > .cv4-cube { width: 100%; }
.cv4-pin { display: none; position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--soft); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.cv4-cubes.is-all .cv4-pin { display: inline-flex; align-items: center; justify-content: center; }
.cv4-pin:hover { background: var(--cv4-hover); color: var(--text); }
.cv4-pin[aria-pressed="true"] { color: var(--accent-text); }
.cv4-pin:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 1px; }

.cv4-cubes.is-all .cv4-tool::after { display: none; }
.cv4-mrest[hidden] { display: none; }
.cv4-mrest { display: flex; flex-direction: column; gap: 2px; }


@media (max-width: 1023px) {
  html:root .sh-top .cv4-ask { display: none; }
}
@media (max-width: 640px) {
  html:root .sh-top { height: 52px; padding: 0 10px 0 14px; gap: 4px; }
  html:root .sh-top .pills { gap: 4px; flex-wrap: nowrap; align-items: center; }
  html:root .sh-top .pill, html:root .sh-top .av,
  html:root .sh-top .cv4-tsel-b, html:root .sh-top .sh-find { box-sizing: border-box; min-width: 0; min-height: 0; }
  html:root .sh-top .sh-find { width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: transparent; }
  html:root .sh-top .sh-find svg { width: 20px; height: 20px; }
  html:root .sh-top #shBal { height: 32px; width: auto; padding: 0 10px; gap: 5px; white-space: nowrap; flex: none;
    border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; font-weight: 500; }
  html:root .sh-top #shBal svg { width: 14px; height: 14px; }
  html:root .sh-top .cv4-tsel-b { width: 36px; height: 36px; padding: 0; justify-content: center; border: 0; border-radius: 10px; background: transparent; }
  html:root .sh-top .cv4-tsel-b .cv4-sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
  html:root .sh-top .av { width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 14px; margin-left: 2px; }
  html:root .sh-top .sh-brand .logo { width: 88px; height: auto; }
}
@media (max-width: 430px) {
  html:root .sh-top #shBal .bal-w { display: none; }
}


html:root .ts :is(b, strong, h1, h2, h3, h4, th, summary, button, label, a),
html:root .ts :is(.n, .ui-sec-t, [class$="-t"], [class$="-h"], [class*="title"], [class*="verdict"], [class*="-name"], [class$="-n"], [class*="kicker"]),
html:root .cv4-master :is(b, strong, h1, h2, h3, button, .n),
html:root .cv4-home :is(b, strong, h1, h2, h3, button, .n) { font-weight: 500 !important; }

@media (max-width: 640px) {
  html:root .ts-steps { flex-wrap: nowrap; overflow: hidden; max-height: 28px; gap: 6px; }
  html:root .ts-step:not(.is-cur) { font-size: 0; gap: 0; }
  html:root .ts-step:not(.is-cur) b { font-size: 13px; }
  html:root .ts-sep { font-size: 13px; }
}

.cv4-tsel-b .cv4-ticon { width: 20px; height: 20px; color: var(--accent-text); flex: none; }
html:root .sh-top .sh-find svg { width: 20px; height: 20px; stroke-width: 1.8; }
html:root .sh-top .cv4-tsel-b:hover { background: var(--cv4-hover); }


.sh-sheet-set--skins { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.cv4-skins { display: flex; flex-wrap: wrap; gap: 6px; }
.cv4-skin { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.cv4-skin .cv4-sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); }
.cv4-skin[aria-checked="true"] { border-color: var(--accent); background: var(--cv4-wash); color: var(--accent-text); }
.cv4-skin:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

.cv4-refine { display: grid; gap: 8px; }
.cv4-refine-b { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--accent-text); font: inherit; font-size: 14px; cursor: pointer; }
.cv4-refine-b svg { width: 16px; height: 16px; flex: none; }
.cv4-refine-b:disabled { opacity: .6; cursor: progress; }
.cv4-refine-st { margin: 0; font-size: 13px; color: var(--soft); }
.cv4-refine-plan { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--cv4-surface-2); }
.cv4-refine-l, .cv4-refine-w { margin: 0; font-size: 14px; line-height: 1.4; }
.cv4-refine-l span { font-weight: 500; color: var(--accent-text); }
.cv4-refine-w { color: var(--soft); font-size: 13px; }
.cv4-refine-acts { display: flex; flex-wrap: wrap; gap: 8px; }

html:root :is(.sh-main, .sh-top, .sh-side, .uw-v3-right, .sh-sheet) :is(b, strong, h1, h2, h3, h4, h5, th, summary, button, label, a, .ui-btn, .ui-seg-b, .cta, .pill),
html:root :is(.sh-main, .sh-side, .uw-v3-right, .sh-sheet) :is([class*="title"], [class*="-h"], [class$="-t"], [class$="-n"], [class*="name"], [class*="verdict"], [class*="kicker"], .n) { font-weight: 500 !important; }

.cv4-warn { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.45; }
