/* ---------- Clarity (0.16.0): calm and clear, like a Mac app ----------
   Studio's layout (the JS gives Clarity's screens both classes, e.g. .appbar.studio.clarity) dressed plainly: a toolbar
   across the top, white cards on a soft grey window, one blue accent, hairlines, segmented controls, no games.
   Light and dark: <html data-scheme="light|dark"> when chosen, else the computer's setting (prefers-color-scheme). The
   dark tokens are written twice (the media query and data-scheme="dark"): keep the two blocks the same. Colours are
   variables, so the accents keep working. Motion stops with Calm and "reduce motion" (motion.css). */

/* ---------- tokens: light ---------- */
:root[data-style="clarity"] {
  --bg: #f5f5f7; --panel: #ffffff; --panel2: #f2f2f5; --sunken: #f7f7f9; --chrome: #fbfbfd;
  --hover: #f0f0f3; --rowline: #efeff2; --menu: #ffffff; --float: #fffffff2;
  --line: #e4e4e9; --line2: #d2d2d8; --faint: #c7c7cc;
  --text: #1d1d1f; --text-hi: #000000; --muted: #636366; --dim: #68686d; --soft: #3a3a3c;
  --accent-text: color-mix(in srgb, var(--accent) 82%, #000000);
  --green: #1f9d5b; --red: #e0443a; --up-text: #147a46; --down-text: #c93229;
  --buy-bg: #1f9d5b; --buy-ink: #ffffff; --sell-bg: #e0443a; --sell-ink: #ffffff;
  --orange: #f08a24; --yellow: #d9a400; --gold: #c9971f; --warn: #c77c02; --warn-text: #945b00;
  --mode-text: #6b47d6;
  --sess-asia: #8e6cf0; --sess-london: #2f86e8; --sess-ny: #f07a2d;
  --font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: var(--font-body); /* numbers in the body font with even-width digits (body is tabular-nums), like a Mac app */
  --font-serif: ui-serif, 'New York', 'Newsreader', Georgia, serif;
  --radius: 8px; --radius-lg: 12px; --radius-btn: 8px; --lip: none;
  --hero-muted: #6e6e73; --seg-off: #e5e5ea; --open-ring: #aeaeb2; --sand: #8e8e93;
  --flame: #ff9f0a; --shield: var(--accent); --lipc: transparent; --icon-stroke: 1.75;
  /* Clarity's own */
  --sel: color-mix(in srgb, var(--accent) 13%, transparent);
  --track: #e8e8ed; --knob: #ffffff; --glass: color-mix(in srgb, var(--panel) 78%, transparent);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .08);
  --scrim: rgba(28, 28, 32, .28); --ring: color-mix(in srgb, var(--accent) 32%, transparent);
  --seg-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .05); --switch-knob: #ffffff; --inset: inset 0 .5px 1px rgba(0, 0, 0, .04);
  color-scheme: light;
}
:root[data-style="clarity"]:not([data-accent]) { --accent: #0071e3; --accent-ink: #ffffff; } /* white on it: 4.7:1, light and dark */

/* ---------- tokens: dark (twice: the computer's setting, then the choice) ---------- */
@media (prefers-color-scheme: dark) {
  :root[data-style="clarity"]:not([data-scheme="light"]) {
    --bg: #161618; --panel: #1f1f22; --panel2: #29292d; --sunken: #1a1a1d; --chrome: #1c1c1f;
    --hover: #28282c; --rowline: #29292d; --menu: #28282c; --float: #28282cf2;
    --line: #2f2f34; --line2: #3d3d43; --faint: #4c4c52;
    --text: #f5f5f7; --text-hi: #ffffff; --muted: #a1a1a6; --dim: #98989d; --soft: #d1d1d6;
    --accent-text: color-mix(in srgb, var(--accent) 70%, #ffffff);
    --green: #32c55e; --red: #ff5147; --up-text: #4fd97a; --down-text: #ff6f66;
    --buy-bg: #28a64e; --buy-ink: #ffffff; --sell-bg: #e8433a; --sell-ink: #ffffff;
    --orange: #ff9f0a; --yellow: #ffd60a; --gold: #e6b640; --warn: #ffb340; --warn-text: #ffcf85;
    --mode-text: #b69cff;
    --sess-asia: #a48bff; --sess-london: #5eaaff; --sess-ny: #ff9a5c;
    --hero-muted: #a1a1a6; --seg-off: #333338; --open-ring: #636366; --sand: #85858b;
    --sel: color-mix(in srgb, var(--accent) 24%, transparent);
    --track: #2c2c30; --knob: #5b5b61;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .04);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .08);
    --scrim: rgba(0, 0, 0, .5);
    --seg-shadow: 0 1px 2px rgba(0, 0, 0, .4); --inset: none;
    color-scheme: dark;
  }
}
:root[data-style="clarity"][data-scheme="dark"] {
  --bg: #161618; --panel: #1f1f22; --panel2: #29292d; --sunken: #1a1a1d; --chrome: #1c1c1f;
  --hover: #28282c; --rowline: #29292d; --menu: #28282c; --float: #28282cf2;
  --line: #2f2f34; --line2: #3d3d43; --faint: #4c4c52;
  --text: #f5f5f7; --text-hi: #ffffff; --muted: #a1a1a6; --dim: #98989d; --soft: #d1d1d6;
  --accent-text: color-mix(in srgb, var(--accent) 70%, #ffffff);
  --green: #32c55e; --red: #ff5147; --up-text: #4fd97a; --down-text: #ff6f66;
  --buy-bg: #28a64e; --buy-ink: #ffffff; --sell-bg: #e8433a; --sell-ink: #ffffff;
  --orange: #ff9f0a; --yellow: #ffd60a; --gold: #e6b640; --warn: #ffb340; --warn-text: #ffcf85;
  --mode-text: #b69cff;
  --sess-asia: #a48bff; --sess-london: #5eaaff; --sess-ny: #ff9a5c;
  --hero-muted: #a1a1a6; --seg-off: #333338; --open-ring: #636366; --sand: #85858b;
  --sel: color-mix(in srgb, var(--accent) 24%, transparent);
  --track: #2c2c30; --knob: #5b5b61;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .08);
  --scrim: rgba(0, 0, 0, .5);
  --seg-shadow: 0 1px 2px rgba(0, 0, 0, .4); --inset: none;
  color-scheme: dark;
}
/* no warm lamp, no hero tint: Clarity's cards are plain */
:root[data-style="clarity"] { --lamp: linear-gradient(transparent, transparent); --hero: var(--panel); --hero-edge: var(--line); --accent-hi: var(--accent-text); }

/* ---------- the page ---------- */
:root[data-style="clarity"] body { -webkit-font-smoothing: antialiased; font-size: 13px; letter-spacing: -.003em; }
/* even-width digits where numbers line up or change (not on the whole page: Inter's tabular hyphen is wide) */
:root[data-style="clarity"] :is(.mchip b, .clock, .table td, .tile-value, .cl-stat b, .cl-chips span, .dl-ticks, .cal-pnl, .spd, .skip-n, .ticket input, .lt-time, .lt-big, .rules-count, .ts-chip, .hbar-val, .sc-stats, .cl-cap, .cl-bt-when) { font-variant-numeric: tabular-nums; }
/* money and results in the text shades (the fills are for bars and buttons) */
:root[data-style="clarity"] .pos { color: var(--up-text); } :root[data-style="clarity"] .neg { color: var(--down-text); }
:root[data-style="clarity"] :where(a:not([class])), :root[data-style="clarity"] .link-btn { color: var(--accent-text); }
:root[data-style="clarity"] h1, :root[data-style="clarity"] h2, :root[data-style="clarity"] h3 { letter-spacing: -.015em; }
:root[data-style="clarity"] h4 { letter-spacing: .02em; text-transform: none; font-size: 12px; font-weight: 600; color: var(--muted); }
:root[data-style="clarity"] ::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }
:root[data-style="clarity"] * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent; }
:root[data-style="clarity"] ::-webkit-scrollbar { width: 10px; height: 10px; }
:root[data-style="clarity"] ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 20%, transparent); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
:root[data-style="clarity"] ::-webkit-scrollbar-track { background: transparent; }
/* controls: rounded rectangles, a white face in light, a soft focus ring */
:root[data-style="clarity"] input, :root[data-style="clarity"] select, :root[data-style="clarity"] textarea { background: var(--panel); border: 1px solid var(--line2); border-radius: 7px; box-shadow: var(--inset); transition: border-color .15s, box-shadow .15s; }
:root[data-style="clarity"] input:focus, :root[data-style="clarity"] select:focus, :root[data-style="clarity"] textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--ring); }
:root[data-style="clarity"] .btn { background: var(--panel); border: 1px solid var(--line2); border-radius: 7px; box-shadow: var(--shadow-sm); font-weight: 500; transition: background-color .15s, border-color .15s; }
:root[data-style="clarity"] .btn:hover:not(:disabled) { background: var(--hover); }
:root[data-style="clarity"] .btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 35%, transparent); }
:root[data-style="clarity"] .btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
:root[data-style="clarity"] .btn.ghost { background: transparent; box-shadow: none; }
:root[data-style="clarity"] .segs { background: var(--track); border: 0; border-radius: 8px; padding: 2px; gap: 2px; }
:root[data-style="clarity"] .segs .seg, :root[data-style="clarity"] .segs button { border: 0; border-radius: 6px; background: transparent; color: var(--soft); }
:root[data-style="clarity"] .segs .seg.active, :root[data-style="clarity"] .segs button.on, :root[data-style="clarity"] .segs .seg.on { background: var(--knob); color: var(--text); box-shadow: var(--seg-shadow); font-weight: 600; }
:root[data-style="clarity"] .card { border-radius: 12px; box-shadow: var(--shadow-sm); }
:root[data-style="clarity"] .table th { font-weight: 600; color: var(--dim); }
:root[data-style="clarity"] .table tbody tr:hover { background: var(--hover); }
/* windows and menus: sheets with a soft shadow */
:root[data-style="clarity"] .modal-wrap { background: var(--scrim); backdrop-filter: blur(2px); }
:root[data-style="clarity"] .modal { border-radius: 14px; border: 0; box-shadow: var(--shadow-lg); overflow: hidden; }
:root[data-style="clarity"] .modal-head { border-bottom: 0; padding: 18px 20px 6px; }
:root[data-style="clarity"] .modal-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
:root[data-style="clarity"] .modal-head .icon-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); color: var(--muted); font-size: 11px; padding: 0; }
:root[data-style="clarity"] .modal-body { padding: 12px 20px 18px; }
:root[data-style="clarity"] .modal-foot { border-top: 0; padding: 4px 20px 18px; }
:root[data-style="clarity"] .cmenu { border-radius: 10px; border: .5px solid var(--line2); background: var(--float); backdrop-filter: blur(24px) saturate(1.6); box-shadow: var(--shadow-lg); padding: 5px; }
:root[data-style="clarity"] .cmenu-item { border-radius: 6px; }
:root[data-style="clarity"] .cmenu-item:not(.disabled):hover { background: var(--accent); color: var(--accent-ink); }
:root[data-style="clarity"] .cmenu-item:not(.disabled):hover > :is(.cmenu-hint, .fav-star:not(.on)) { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
/* the tick, arrow, icon and a kept ★ take the highlighted row's text colour (accent on the accent fill vanished) */
:root[data-style="clarity"] .cmenu-item:not(.disabled):hover > :is(.cmenu-check, .cmenu-arrow, .cmenu-icon, .fav-star.on) { color: inherit; }
:root[data-style="clarity"] .toast { border-radius: 12px; border: .5px solid var(--line2); border-left-width: .5px; background: var(--float); backdrop-filter: blur(20px); box-shadow: var(--shadow-lg); padding: 11px 14px; }
:root[data-style="clarity"] .toast::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
:root[data-style="clarity"] .toast.success::before { background: var(--green); }
:root[data-style="clarity"] .toast.error::before { background: var(--red); }
:root[data-style="clarity"] .toast.warn::before { background: var(--orange); }
:root[data-style="clarity"] #boot { background: var(--bg); }

/* ---------- the logo: a rounded square in the accent with three candles ---------- */
.cl-logo { position: relative; display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; width: 24px; height: 24px; padding-bottom: 5px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #ffffff), var(--accent)); box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 .5px 0 rgba(255, 255, 255, .35); }
.cl-logo i { display: block; width: 3px; border-radius: 1px; background: var(--accent-ink); }
.cl-logo i:nth-child(1) { height: 7px; opacity: .7; } .cl-logo i:nth-child(2) { height: 12px; } .cl-logo i:nth-child(3) { height: 9px; opacity: .85; }
.wt-top .cl-logo { width: 22px; height: 22px; }

/* ---------- the top bar (0.22.0; a sidebar before): a Mac app's toolbar, the same height and dress as the replay's and
   Charts' bars, so going from page to page the bar stays put. It stays at the top while the page scrolls. ---------- */
.appbar.clarity { position: sticky; top: 0; z-index: 20; height: 52px; padding: 0 16px; gap: 14px;
  background: color-mix(in srgb, var(--chrome) 86%, transparent); backdrop-filter: blur(20px) saturate(1.5); border-bottom: 1px solid var(--line); }
.appbar.clarity .ab-lead { gap: 14px; }
.appbar.clarity .ab-brand { gap: 9px; }
.appbar.clarity .ab-brand span { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.appbar.clarity .cat-switch { background: var(--track); border: 0; border-radius: 8px; padding: 2px; }
.appbar.clarity .cat-switch .cat { padding: 5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--soft); }
.appbar.clarity .cat-switch .cat:not(.on):hover { background: transparent; color: var(--text); }
.appbar.clarity .cat-switch .cat.on { background: var(--knob); color: var(--text); font-weight: 600; box-shadow: var(--seg-shadow); }
/* the part's pages: plain buttons with their icon, the open one tinted (a hairline keeps them apart from the switch) */
.appbar.clarity .ab-nav { height: 30px; padding: 0 0 0 14px; gap: 2px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; }
.appbar.clarity .ab-tab { height: 30px; padding: 0 10px; gap: 6px; border-radius: 7px; color: var(--soft); font-size: 13px; font-weight: 500; }
.appbar.clarity .ab-tab .icw { color: var(--accent); }
.appbar.clarity .ab-tab .icw svg { width: 16px; height: 16px; }
.appbar.clarity .ab-tab:not(.on):not(.off):hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.appbar.clarity .ab-tab.on { background: var(--sel); color: var(--accent-text); font-weight: 600; }
.appbar.clarity .ab-tab .pro-tag, .appbar.clarity .ab-tab.on .pro-tag { font-family: var(--font-body); font-size: 10px; background: var(--panel2); color: var(--muted); }
.appbar.clarity .ab-right { gap: 4px; }
.appbar.clarity .ab-saved { font-size: 11.5px; color: var(--dim); margin-right: 6px; }
.appbar.clarity .ab-new { height: 30px; padding: 0 12px 0 10px; gap: 6px; margin-right: 6px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.appbar.clarity .ab-new:hover { background: var(--accent-hover); }
.appbar.clarity .ab-new .icw svg { width: 15px; height: 15px; }
.appbar.clarity .ab-circ { width: 30px; height: 30px; border: 0; border-radius: 7px; color: var(--muted); }
.appbar.clarity .ab-circ svg { width: 18px; height: 18px; }
.appbar.clarity .ab-circ:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.appbar.clarity .ab-acct { height: 30px; padding: 0; margin-left: 2px; border: 0; background: none; }
.appbar.clarity .ab-avatar { width: 28px; height: 28px; font-size: 12px; background: var(--sel); color: var(--accent-text); }
/* narrower windows (the steps every top bar shares are in looks.css and live.css: the word "Replaybook" and "Saved on
   this PC" go first); then the pages keep only their icons (the open one its name too) and New backtest its + */
@media (max-width: 1240px) { .appbar.clarity .ab-tab { padding: 0 8px; } }
@media (max-width: 1040px) {
  .appbar.clarity { gap: 10px; padding: 0 12px; }
  .appbar.clarity .ab-nav { padding-left: 10px; }
  .appbar.clarity .ab-tab:not(.on) :is(.ab-tab-l, .pro-tag) { display: none; }
  .appbar.clarity .ab-tab:not(.on) { padding: 0 7px; gap: 0; }
  .appbar.clarity .ab-new { font-size: 0; gap: 0; width: 30px; padding: 0; justify-content: center; } /* just its +, the name is its tooltip */
}

/* ---------- Home ---------- */
.cl-home { width: 100%; max-width: 1240px; margin: 0 auto; padding: 30px 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.cl-top { display: flex; align-items: flex-end; gap: 16px; }
.cl-date { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.cl-greet { margin-top: 4px; color: var(--muted); font-size: 14px; }
.cl-greet .greet-name, .cl-greet .greet-ask { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.cl-greet .greet-ask { color: var(--dim); margin-left: 4px; }
.cl-greet .greet-name:hover, .cl-greet .greet-ask:hover { color: var(--accent-text); }
.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px; border: 0; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, transform .1s; }
.cl-btn:active:not(:disabled) { transform: scale(.98); }
.cl-btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.cl-btn.primary:hover { background: var(--accent-hover); }
.cl-btn.soft { background: var(--sel); color: var(--accent-text); }
.cl-btn.soft:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.cl-btn:disabled { opacity: .5; cursor: default; }
.cl-link { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
.cl-link:hover { text-decoration: underline; }
.cl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cl-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px 22px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); border: .5px solid color-mix(in srgb, var(--line) 70%, transparent); }
.cl-card h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.cl-kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cl-kicker.accent { color: var(--accent-text); }
.cl-kicker .grow { flex: 1; }
.cl-sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cl-sub b { color: var(--text); font-weight: 600; }
.cl-note { color: var(--dim); font-size: 12px; }
.cl-grow { flex: 1; min-height: 4px; }
.cl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-card .mk-row { margin: 4px 0 2px; }
.cl-card .mk-seg { background: var(--track); border-radius: 8px; padding: 2px; gap: 2px; }
.cl-card .mk { height: 26px; padding: 0 10px; border-radius: 6px; border: 0; background: none; color: var(--soft); font-size: 12px; }
.cl-card .mk.on { background: var(--knob); color: var(--text); font-weight: 600; box-shadow: var(--seg-shadow); }
.cl-card .mk-more { height: 30px; border-radius: 7px; font-size: 12px; }
.cl-daily { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--panel)), var(--panel) 60%); }
/* your week: five days */
.cl-wds { display: flex; gap: 8px; margin: 6px 0 4px; }
.cl-wd { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cl-wd-dot { width: 100%; max-width: 44px; height: 40px; border-radius: 10px; background: var(--track); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); }
.cl-wd.done .cl-wd-dot { background: var(--accent); }
.cl-wd.today:not(.done) .cl-wd-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.cl-wd.later .cl-wd-dot { opacity: .55; }
.cl-wd-l { font-size: 11px; font-weight: 600; color: var(--dim); }
.cl-wd.today .cl-wd-l { color: var(--accent-text); }
/* continue */
.cl-spark { margin: 2px 0 6px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--sunken); }
.cl-spark .mini-chart { height: 70px; }
.cl-spark .mini-chart svg { width: 100%; height: 100%; }
.cl-cont .cl-btn { align-self: flex-start; }
.cl-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cl-serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }
.cl-card h2.cl-serif { font-family: var(--font-serif); font-weight: 500; font-size: 26px; letter-spacing: -.01em; }
.cl-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0; }
.cl-day .cl-thumbs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cl-thumb { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 5px; cursor: pointer; border-radius: 8px; }
.cl-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-more { align-self: center; }
.cl-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: .5px solid var(--line2); background: var(--sunken); transition: transform .2s, box-shadow .2s; }
.cl-thumb:hover img { transform: translateY(-1px); box-shadow: var(--shadow); }
.cl-thumb .cl-cap { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-said { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--rowline); }
.cl-q { font-size: 12px; font-weight: 600; color: var(--muted); }
.cl-a { margin: 3px 0 0; font-family: var(--font-serif); font-size: 16px; line-height: 1.5; color: var(--text); }
.cl-write { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 2px; border: 0; background: none; padding: 0; color: var(--accent-text); font: inherit; font-size: 14px; cursor: pointer; }
/* backtests */
.cl-rows { display: flex; flex-direction: column; margin: 0 -10px; }
.cl-bt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: background-color .12s; }
.cl-bt + .cl-bt { box-shadow: 0 -1px 0 var(--rowline); }
.cl-bt:hover, .cl-bt:focus-visible { background: var(--hover); box-shadow: none; outline: none; }
.cl-bt:hover + .cl-bt { box-shadow: none; }
.cl-bt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-bt-t b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-bt-t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-bt-when { font-size: 12px; color: var(--dim); white-space: nowrap; }
.cl-bt-more { width: 28px; height: 28px; border-radius: 6px; border: 0; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: .45; transition: opacity .12s; } /* faint until the row is hovered, never hidden: it holds rename, copy and delete */
.cl-bt:hover .cl-bt-more, .cl-bt-more:focus-visible { opacity: 1; }
.cl-bt-more:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
/* Getting started in Clarity's card */
.cl-home .s-card.s-start-steps { border-radius: 14px; border: .5px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: var(--shadow); padding: 18px 22px; }
.cl-home .s-card-head h2 { font-size: 16px; }
.cl-home .gs-meter { height: 6px; }
.cl-home .gs-meter i { border-radius: 3px; }
.cl-home .pill-btn { height: 32px; border-radius: 8px; font-size: 13px; }
@media (max-width: 1380px) {
  .cl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-cards .cl-daily { grid-column: 1 / -1; }
}
@media (max-width: 1000px) { .cl-two { grid-template-columns: minmax(0, 1fr); } .cl-home { padding: 24px 20px 32px; } }

/* ---------- Your week: the recap sheet ---------- */
.cl-sheet .modal { width: 680px !important; }
.cl-sheet .modal-head { padding-bottom: 0; }
.cl-recap { display: flex; flex-direction: column; gap: 16px; }
.cl-recap > h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; margin: -4px 0 0; }
.cl-moment { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cl-moment img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: .5px solid var(--line2); }
.cl-moment figcaption { font-size: 12px; color: var(--muted); }
.cl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cl-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--panel2); }
.cl-stat b { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cl-stat span { font-size: 12px; color: var(--muted); }
.cl-stats.small .cl-stat { padding: 8px 10px; }
.cl-stats.small .cl-stat b { font-size: 17px; }
.cl-stats.small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cl-recap-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cl-quote { margin: 4px 0 2px; font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.45; }
.cl-recap .cl-sub { margin-top: 4px; font-size: 14px; }
.cl-net { margin: 0; padding-top: 10px; border-top: 1px solid var(--rowline); }

/* ---------- the replay screen: a unified toolbar, a white chart card, a glass player bar ---------- */
.ws.styled.clarity { background: var(--bg); }
.wt-top.clarity { height: 52px; padding: 0 12px; gap: 10px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.wt-top.clarity .wt-back, .wt-top.clarity .help-btn, .wt-top.clarity .wt-mute { width: 30px; height: 30px; border-radius: 7px; border: 0; color: var(--muted); background: transparent; }
.wt-top.clarity .wt-back:hover, .wt-top.clarity .help-btn:hover, .wt-top.clarity .wt-mute:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.wt-top.clarity .wt-name .ws-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.wt-top.clarity .wt-sub { font-size: 11.5px; color: var(--dim); }
.wt-top.clarity .wt-chip { font-family: var(--font-body); font-size: 11px; font-weight: 600; background: var(--sel); color: var(--accent-text); border-radius: 5px; }
.wt-top.clarity .wt-tabs { height: 30px; padding: 2px; margin-left: 6px; border-radius: 8px; background: var(--track); border: 0; }
.wt-top.clarity .wt-tabs .tab { height: 26px; padding: 0 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--soft); }
.wt-top.clarity .wt-tabs .tab.active { background: var(--knob); color: var(--text); font-weight: 600; box-shadow: var(--seg-shadow); }
.wt-top.clarity .wt-clock { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--track); }
.wt-top.clarity .wt-clock .icw { color: var(--dim); }
.wt-top.clarity .mchips { height: 30px; padding: 0; border: 0; background: none; gap: 0; }
.wt-top.clarity .mchip { padding: 0 10px; font-size: 10.5px; color: var(--dim); }
.wt-top.clarity .mchip + .mchip { border-left: 1px solid var(--line); }
.wt-top.clarity .mchip b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wt-top.clarity .wt-finish { height: 30px; border-radius: 7px; }
.ws.styled.clarity .ch-bar { margin: 10px 12px 0; border-radius: 12px; background: var(--panel); border: .5px solid var(--line); box-shadow: var(--shadow-sm); min-height: 44px; }
.ws.styled.clarity .ch-track { border-radius: 99px; -webkit-mask: none; mask: none; }
.ws.styled.clarity .ch-meter:not([data-k="target"]) .ch-track { -webkit-mask: none; mask: none; }
.ws.styled.clarity .ch-meter:not([data-k="target"]):not(.warn):not(.bad) .ch-fill { background: var(--dim); }
.ws.styled.clarity .ch-fill { border-radius: 99px; }
.ws.styled.clarity .ch-name { border-radius: 6px; background: var(--sel); color: var(--accent-text); }
.ws.styled.clarity .ws-body { padding: 10px 12px 12px; gap: 10px; }
.ws.styled.clarity .chart-card { border-radius: 12px; background: var(--panel); border: .5px solid var(--line2); box-shadow: var(--shadow); }
.ws.styled.clarity .cc-head { height: 42px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--rowline); background: var(--panel); }
.ws.styled.clarity .cc-sym { font-size: 13.5px; font-weight: 700; }
.ws.styled.clarity .cc-head .tf-group { background: var(--track); border-radius: 8px; padding: 2px; }
.ws.styled.clarity .cc-head .tf { height: 24px; min-width: 34px; border-radius: 6px; color: var(--soft); font-size: 11.5px; }
.ws.styled.clarity .cc-head .tf.active { background: var(--knob); color: var(--text); font-weight: 600; box-shadow: var(--seg-shadow); }
.ws.styled.clarity .cc-head .ctl { height: 28px; padding: 0 10px; border-radius: 7px; border: 0; background: transparent; color: var(--soft); font-size: 12.5px; }
.ws.styled.clarity .cc-head .ctl:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.ws.styled.clarity .cc-head .ctl.icon-only { width: 28px; padding: 0; }
.ws.styled.clarity .cc-day { border-bottom: 1px solid var(--rowline); background: var(--panel); }
.ws.styled.clarity .dl-slot, .ws.styled.clarity .cc-day { --dl-ring: var(--panel); }
.ws.styled.clarity .dl-track { height: 3px; background: var(--track); }
.ws.styled.clarity .dl-fill { background: color-mix(in srgb, var(--accent) 55%, var(--track)); }
.ws.styled.clarity .dl-thumb { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--knob); box-shadow: var(--seg-shadow), 0 1px 3px rgba(0, 0, 0, .2); }
.ws.styled.clarity .dl-hover { border-radius: 7px; border: .5px solid var(--line2); background: var(--float); backdrop-filter: blur(20px) saturate(1.6); box-shadow: var(--shadow-lg); font-family: var(--font-body); }
.ws.styled.clarity .toolbox { width: 40px; margin: 8px 0 8px 8px; padding: 4px 0; gap: 2px; border-radius: 10px; background: var(--panel2); border: 0; }
.ws.styled.clarity .tool { width: 32px; height: 32px; border-radius: 7px; color: var(--soft); }
.ws.styled.clarity .tool:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.ws.styled.clarity .tool.active { background: var(--accent); color: var(--accent-ink); }
.transport.clarity { min-height: 52px; padding: 6px 10px; gap: 6px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); border-top: 1px solid var(--rowline); }
.transport.clarity .ctl { height: 30px; padding: 0 11px; border-radius: 7px; background: transparent; color: var(--soft); font-weight: 500; }
.transport.clarity .ctl:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.transport.clarity .ctl.big-play, .transport.clarity .ctl.big-play.on { width: 38px; height: 38px; margin: 0 4px; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.transport.clarity .ctl.big-play:hover:not(:disabled) { background: var(--accent-hover); color: var(--accent-ink); }
.transport.clarity .speed-seg { background: var(--track); border-radius: 8px; padding: 2px; }
.transport.clarity .spd { height: 24px; min-width: 32px; border-radius: 6px; color: var(--soft); }
.transport.clarity .spd.on { background: var(--knob); color: var(--text); font-weight: 600; box-shadow: var(--seg-shadow); }
.transport.clarity .skip-n { height: 26px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line2); }
.transport.clarity .ctl.jump { border: 1px solid var(--line2); background: var(--panel); box-shadow: var(--shadow-sm); }
.ws.styled.clarity .side { width: 330px; border-radius: 12px; border: .5px solid var(--line2); background: var(--panel); box-shadow: var(--shadow); }
.ws.styled.clarity .stabs { margin: 10px 10px 4px; height: 30px; padding: 2px; border-radius: 8px; background: var(--track); }
.ws.styled.clarity .stab { border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--soft); }
.ws.styled.clarity .stab.active { background: var(--knob); color: var(--text); font-weight: 600; box-shadow: var(--seg-shadow); }
.ws.styled.clarity .tk-card { border-radius: 12px; background: var(--panel2); border: 0; }
.ws.styled.clarity .side-btn { height: 48px; border-radius: 10px; }
.ws.styled.clarity .side-btn b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.ws.styled.clarity .ticket .segs { border-radius: 8px; padding: 2px; background: var(--track); }
.ws.styled.clarity .ticket .segs .seg { border-radius: 6px; padding: 5px; }
.ws.styled.clarity .ticket input, .ws.styled.clarity .ticket select { height: 32px; border-radius: 7px; }
.ws.styled.clarity .place { height: 46px; border-radius: 10px; }
.ws.styled.clarity .place.ready { box-shadow: 0 1px 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.ws.styled.clarity .bottom { border-radius: 12px; border: .5px solid var(--line2); background: var(--panel); box-shadow: var(--shadow-sm); }
.ws.styled.clarity .last-trade { border-radius: 12px; background: var(--panel2); border: 0; }
.ws.styled.clarity .lt-big { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
:root[data-style="clarity"] .rules-check.styled { border-radius: 12px; background: var(--panel2); border: 0; }
:root[data-style="clarity"] .rule-row { border-radius: 9px; border: 0; background: var(--panel); box-shadow: var(--shadow-sm); }
:root[data-style="clarity"] .rule-row .tick { width: 22px; height: 22px; border-width: 1.5px; }
:root[data-style="clarity"] .fx-pill-main { background: var(--float); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
:root[data-style="clarity"] .plan-chip { background: var(--float); backdrop-filter: blur(16px); box-shadow: var(--shadow-sm); border-color: var(--line); }
:root[data-style="clarity"] .line-act { box-shadow: var(--shadow-sm); }

/* ---------- the journal: a timeline of days ---------- */
.ws.styled.clarity .journal { gap: 16px; padding: 14px 18px 28px; }
.ws.styled.clarity .cal, .ws.styled.clarity .day-list, .ws.styled.clarity .day-detail { border-radius: 14px; background: var(--panel); border: .5px solid var(--line); box-shadow: var(--shadow-sm); }
.ws.styled.clarity .day-detail .tile { background: var(--panel2); border: 0; }
.ws.styled.clarity .cal-head b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.ws.styled.clarity .cal-head .icon-btn { border: 0; background: var(--panel2); }
.ws.styled.clarity .cal-cell { border-radius: 9px; border-color: var(--rowline); }
.ws.styled.clarity .cal-cell.win { background: var(--up-soft); border-color: transparent; }
.ws.styled.clarity .cal-cell.loss { background: var(--down-soft); border-color: transparent; }
.ws.styled.clarity .cal-seal { width: 8px; height: 8px; top: 8px; right: 8px; }
.ws.styled.clarity .cal-seal.sealed::after { display: none; }
.ws.styled.clarity .dd-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 26px; }
.cl-jwrap { display: flex !important; flex-direction: column; gap: 14px; }
.ws.styled.clarity .journal.cl-jwrap { max-width: 1180px; margin: 0 auto; width: 100%; }
.cl-jhead { display: flex; align-items: center; gap: 10px; }
.journal-left .cl-jhead { margin-bottom: 2px; }
.cl-view { display: inline-flex; }
.cl-view .seg { padding: 4px 14px; font-size: 12.5px; }
.cl-journal { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.cl-tl { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 30px; }
.cl-tl::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--line); }
.cl-tl-empty { padding: 30px 0; }
.cl-day { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 20px; border-radius: 14px; background: var(--panel); border: .5px solid var(--line); box-shadow: var(--shadow-sm); }
.cl-node { position: absolute; left: -28px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--faint); }
.cl-day.written .cl-node { background: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px color-mix(in srgb, var(--accent) 30%, transparent); }
.cl-day header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cl-day h2 { font-size: 22px; margin: 0; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-chips span { height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 6px; background: var(--panel2); color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.cl-trade-rows { display: flex; flex-direction: column; gap: 4px; }
.cl-trade-rows button { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--panel2); color: var(--soft); font: inherit; font-size: 12.5px; cursor: pointer; }
.cl-trade-rows button:hover { background: var(--hover); color: var(--text); }
.cl-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; padding-top: 12px; border-top: 1px solid var(--rowline); }
.cl-words .cl-a { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.cl-a.small { font-size: 14.5px; color: var(--soft); }
.cl-prompts { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rowline); }
.cl-prompt { display: flex; flex-direction: column; gap: 4px; }
.cl-prompt .cl-q { font-size: 12.5px; }
:root[data-style="clarity"] .cl-answer { min-height: 38px; resize: none; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 4px 0 6px;
  font-family: var(--font-serif); font-size: 16px; line-height: 1.5; color: var(--text); border-bottom: 1px dashed var(--line2); }
:root[data-style="clarity"] .cl-answer:focus { box-shadow: none; border-bottom: 1px solid var(--accent); }
.cl-answer::placeholder { color: var(--faint); font-style: italic; }
.cl-tl-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 14px; }
.home.styled.clarity .cl-tl-side { top: 64px; } /* below the sticky 52 px toolbar (a Live account's journal) */
.cl-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.cl-toggle-row + .cl-toggle-row { border-top: 1px solid var(--rowline); }
.cl-serif-s { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.35; }
.cl-switch { position: relative; flex-shrink: 0; width: 38px; height: 23px; border-radius: 99px; border: 0; padding: 0; background: var(--track); cursor: pointer; transition: background-color .2s; }
.cl-switch i { position: absolute; left: 2px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--switch-knob); box-shadow: var(--shadow-sm); transition: transform .22s cubic-bezier(.3, 1.3, .5, 1); }
.cl-switch.on { background: var(--green); }
.cl-switch.on i { transform: translateX(15px); }
.cl-prompt-set .cl-note { margin: 6px 0 0; line-height: 1.45; }
.cl-dprompts { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--panel2); }
.cl-dprompts h4 { margin: 0; }
.cl-dprompt { display: flex; flex-direction: column; gap: 4px; }
.cl-dprompt span { font-family: var(--font-serif); font-size: 14.5px; }
:root[data-style="clarity"] .cl-dprompt textarea { font-family: var(--font-serif); font-size: 15px; line-height: 1.45; }
@media (max-width: 1100px) { .cl-journal { grid-template-columns: minmax(0, 1fr); } .cl-tl-side { position: static; } }

/* ---------- the welcome page, moments and windows ---------- */
:root[data-style="clarity"] .lv, :root[data-style="clarity"] .dm { font-family: var(--font-body); }
:root[data-style="clarity"] .dm.studio { background: var(--panel); border: 0; box-shadow: var(--shadow-lg); }
:root[data-style="clarity"] .look-card { border-radius: 12px; }
:root[data-style="clarity"] .look-card.on { box-shadow: 0 0 0 3px var(--ring); }
:root[data-style="clarity"] .day-pop b { font-family: var(--font-serif); font-weight: 500; font-size: 16px; }

/* ---------- the ticket, like a form on a Mac ---------- */
:root[data-style="clarity"] .ticket.styled .trow, :root[data-style="clarity"] .ticket.styled .tp-row { border-radius: 9px; }
:root[data-style="clarity"] .ticket.styled .trow { background: var(--panel); border-color: var(--line); }
:root[data-style="clarity"] .ticket.styled .tk-stop { background: color-mix(in srgb, var(--red) 7%, var(--panel)); border-color: color-mix(in srgb, var(--red) 30%, var(--panel)); }
:root[data-style="clarity"] .ticket.styled .tp-row { background: color-mix(in srgb, var(--green) 7%, var(--panel)); border-color: color-mix(in srgb, var(--green) 30%, var(--panel)); }
:root[data-style="clarity"] .ticket.styled .tp-block > .btn { border-radius: 7px; }
:root[data-style="clarity"] .size-picks .sp { border-radius: 7px; height: 28px; }
:root[data-style="clarity"] .size-picks .sp.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:root[data-style="clarity"] .ticket.styled .be-row input[type=checkbox], :root[data-style="clarity"] .ticket.styled .tk-pause input[type=checkbox] { width: 34px; height: 21px; background: var(--track); }
:root[data-style="clarity"] .ticket.styled .be-row input[type=checkbox]::after, :root[data-style="clarity"] .ticket.styled .tk-pause input[type=checkbox]::after { top: 2px; left: 2px; width: 17px; height: 17px; background: var(--switch-knob); box-shadow: var(--shadow-sm); }
:root[data-style="clarity"] .ticket.styled .be-row input[type=checkbox]:checked, :root[data-style="clarity"] .ticket.styled .tk-pause input[type=checkbox]:checked { background: var(--green); }
:root[data-style="clarity"] .ticket.styled .be-row input[type=checkbox]:checked::after, :root[data-style="clarity"] .ticket.styled .tk-pause input[type=checkbox]:checked::after { transform: translateX(13px); background: var(--switch-knob); }
:root[data-style="clarity"] .ts-chip { border-radius: 8px; background: var(--track); }
:root[data-style="clarity"] .chip, :root[data-style="clarity"] .wt-chip { border-radius: 6px; }
:root[data-style="clarity"] .conf-check.styled .conf-chip { border-radius: 7px; }

/* ---------- Charts and Live ---------- */
.ws.lc.clarity .lc-top { height: 52px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.ws.lc.clarity .lc-main { margin: 10px; border: .5px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); }
.ws.lc.clarity .lc-foot { background: transparent; border-top: 0; }
.ws.lc.clarity .cat-switch { background: var(--track); border: 0; border-radius: 8px; padding: 2px; }
.ws.lc.clarity .cat-switch .cat { border-radius: 6px; font-size: 12.5px; }
.ws.lc.clarity .cat-switch .cat.on { background: var(--knob); color: var(--text); box-shadow: var(--seg-shadow); }
.ws.lc.clarity .lc-sym { border-radius: 6px; font-family: var(--font-body); }
.ws.lc.clarity .lc-sym.on { background: var(--sel); border-color: transparent; color: var(--accent-text); }
.ws.lc.clarity .lc-tfs { background: var(--track); border-radius: 8px; padding: 2px; }
.ws.lc.clarity .lc-tfs .tf { border-radius: 6px; }
.ws.lc.clarity .lc-tfs .tf.on { background: var(--knob); color: var(--text); box-shadow: var(--seg-shadow); }
.ws.lc.clarity .lc-src { border-radius: 8px; background: var(--panel); box-shadow: var(--shadow-sm); }
:root[data-style="clarity"] .lv-card { border-radius: 14px; box-shadow: var(--shadow); border: .5px solid var(--line); }
:root[data-style="clarity"] .mo-mark { box-shadow: none; }
:root[data-style="clarity"] .mo-title { letter-spacing: -.02em; }
:root[data-style="clarity"] .dj-3field textarea, :root[data-style="clarity"] .cl-dprompt textarea { overflow: hidden; resize: none; }

/* ---------- motion: soft springs, sheets that glide (Calm and "reduce motion" keep it still) ---------- */
@media (prefers-reduced-motion: no-preference) {
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-home > *, :root[data-style="clarity"]:not([data-motion="calm"]) .cl-cards > .cl-card,
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-two > .cl-card { animation: cl-rise .55s cubic-bezier(.2, .9, .25, 1.05) both; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-cards > .cl-card:nth-child(2) { animation-delay: .05s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-cards > .cl-card:nth-child(3) { animation-delay: .1s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-two > .cl-card { animation-delay: .14s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-two > .cl-card + .cl-card { animation-delay: .18s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .modal-wrap { animation: cl-fade .2s ease-out both; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .modal { animation: cl-sheet .34s cubic-bezier(.2, .95, .3, 1.08) both; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cmenu { animation: cl-menu .16s cubic-bezier(.2, .9, .3, 1) both; transform-origin: top left; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-day { animation: cl-rise .5s cubic-bezier(.2, .9, .25, 1.05) both; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-day:nth-child(2) { animation-delay: .06s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-day:nth-child(3) { animation-delay: .12s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-day:nth-child(n + 4) { animation-delay: .16s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-node { transition: background-color .35s, box-shadow .35s cubic-bezier(.2, 1.4, .4, 1); }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-wd.done .cl-wd-dot { animation: cl-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-wd:nth-child(2) .cl-wd-dot { animation-delay: .05s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-wd:nth-child(3) .cl-wd-dot { animation-delay: .1s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-wd:nth-child(4) .cl-wd-dot { animation-delay: .15s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-wd:nth-child(5) .cl-wd-dot { animation-delay: .2s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-thumb img { transition: transform .35s cubic-bezier(.2, .9, .3, 1.1), box-shadow .35s; }
  :root[data-style="clarity"]:not([data-motion="calm"]) .cl-thumb:hover img { transform: translateY(-2px) scale(1.01); }
  :root[data-style="clarity"]:not([data-motion="calm"]) .appbar.clarity .ab-tab, :root[data-style="clarity"]:not([data-motion="calm"]) .appbar.clarity .cat { transition: background-color .18s, color .18s; }
}
@keyframes cl-rise { from { opacity: 0; transform: translateY(10px) scale(.99); } }
@keyframes cl-fade { from { opacity: 0; } }
@keyframes cl-sheet { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes cl-menu { from { opacity: 0; transform: scale(.96); } }
@keyframes cl-pop { from { transform: scale(.6); opacity: 0; } }
/* the play button breathes very gently while it plays */
.transport.clarity .ctl.big-play.on { animation: cl-breathe 2.8s ease-in-out infinite; }
@keyframes cl-breathe { 50% { box-shadow: 0 1px 3px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 7px color-mix(in srgb, var(--accent) 8%, transparent); } }
.cl-logo.wel-cl { width: 56px; height: 56px; border-radius: 15px; gap: 5px; padding-bottom: 12px; }
.cl-logo.wel-cl i { width: 7px; border-radius: 2px; }
.cl-logo.wel-cl i:nth-child(1) { height: 16px; } .cl-logo.wel-cl i:nth-child(2) { height: 27px; } .cl-logo.wel-cl i:nth-child(3) { height: 20px; }
:root[data-style="clarity"] .wel-door { border-radius: 14px; box-shadow: var(--shadow); border: .5px solid var(--line); }
:root[data-style="clarity"] .wel-ico { border-radius: 9px; }
.ws.styled.clarity .cal-d .dot { display: none; } /* the blue dot at the corner already says the day has words */
.transport.clarity .skip-n { width: 40px; padding: 0 4px; text-align: center; font-size: 12px; }

/* ---------- audit fixes: session labels, the ticket's foot, the more-speeds menu ---------- */
.ws.styled.clarity .dl-tick.asia { color: color-mix(in srgb, var(--sess-asia) 60%, var(--text)); }
.ws.styled.clarity .dl-tick.london { color: color-mix(in srgb, var(--sess-london) 60%, var(--text)); }
.ws.styled.clarity .dl-tick.ny { color: color-mix(in srgb, var(--sess-ny) 60%, var(--text)); }
.ws.styled.clarity .ticket.styled > .tk-foot { background: var(--panel2); border: 0; border-radius: 0 0 12px 12px; }
:root[data-style="clarity"] .ticket.styled .tp-row .tp-price { flex: 1 1 0; min-width: 0; }
:root[data-style="clarity"] .transport .spd-more { border: 0; background: transparent; box-shadow: none; padding: 0 0 0 2px; }
:root[data-style="clarity"] .ticket.styled .tp-row { gap: 2px; padding-left: 10px; }
:root[data-style="clarity"] .ticket.styled .tp-row .tp-price { padding: 0 4px; }
:root[data-style="clarity"] .ticket.styled .tp-pct { width: 40px; }
/* 0.17.0: narrower windows show Layout / Indicators as icons in the chart's bar (looks.css), at this look's button size */
@media (max-width: 1499px) { .ws.styled.clarity .cc-head .ctl.cc-lbl { width: 28px; padding: 0; } }
