/* ---------- Dojo (0.16.0): washi paper and ink ----------
   Studio's layout (the JS gives Dojo's screens both classes, e.g. .appbar.studio.dojo) dressed like the Dojo artboards:
   washi paper by day, night ink after dark, one red seal colour (the accent, 朱 shu), ink for everything else, square
   corners, brush strokes under the chosen tab, Shippori Mincho for titles and numbers. The dark tokens are written
   twice (the computer's setting, then data-scheme="dark"): keep the two blocks the same. Belts come from practice,
   seals from how you practise, never from profit. Motion stops with Calm and "reduce motion" (motion.css). */

/* ---------- tokens: washi (light) ---------- */
:root[data-style="dojo"] {
  --bg: #efe8da; --panel: #fbf7ee; --panel2: #f2ebdd; --sunken: #f4eee2; --chrome: #f7f2e7;
  --hover: #efe7d7; --rowline: rgba(31, 28, 24, .08); --menu: #fbf7ee; --float: #fbf7eef5;
  --line: rgba(31, 28, 24, .15); --line2: rgba(31, 28, 24, .26); --faint: #aaa092;
  --text: #1f1c18; --text-hi: #0d0b09; --muted: #625a4e; --dim: #6f6658; --soft: #4a443c;
  --accent-text: color-mix(in srgb, var(--accent) 88%, #000000);
  --green: #3d6a4a; --red: #b5382a; --up-text: #325c3e; --down-text: #a23123;
  --buy-bg: #3d6a4a; --buy-ink: #fbf7ee; --sell-bg: #a8392b; --sell-ink: #fbf7ee;
  --orange: #b8651e; --yellow: #a88213; --gold: #a88213; --warn: #a86a0a; --warn-text: #7d4f06;
  --mode-text: #4b4f8c;
  --sess-asia: #4b4f8c; --sess-london: #3d6a4a; --sess-ny: #b5382a;
  --font-body: 'Dojo Signs', 'Zen Kaku Gothic New', 'Yu Gothic', 'Hiragino Sans', 'Inter', system-ui, sans-serif; /* Dojo Signs: + and − from Inter (fonts.css) */
  --font-display: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', 'Newsreader', Georgia, serif;
  --font-mono: 'Inter', 'Zen Kaku Gothic New', system-ui, sans-serif; /* even-width digits (tabular-nums on body) */
  --radius: 3px; --radius-lg: 4px; --radius-btn: 2px; --lip: none;
  --hero-muted: #6a6155; --seg-off: rgba(31, 28, 24, .1); --open-ring: #aaa092; --sand: #857b6c;
  --flame: #b5382a; --shield: #1f1c18; --lipc: transparent; --icon-stroke: 1.6;
  /* Dojo's own */
  --ink: #1f1c18; --on-ink: #faf6ec; --ink-soft: rgba(31, 28, 24, .06); --belt-line: rgba(31, 28, 24, .55);
  --belt-white: #f6f2e8; --belt-yellow: #ddb142; --belt-green: #4e7d52; --belt-blue: #2f5577; --belt-brown: #6a4a30; --belt-black: #1c1a17;
  --fibre-op: .5; --scrim: rgba(40, 30, 20, .3);
  --shadow: 0 1px 0 rgba(31, 28, 24, .08); --shadow-lg: 0 30px 80px rgba(30, 20, 10, .25), 0 1px 0 rgba(31, 28, 24, .1);
  color-scheme: light;
}
:root[data-style="dojo"]:not([data-accent]) { --accent: #b5382a; --accent-ink: #fbf7ee; }

/* ---------- tokens: night ink (twice: the computer's setting, then the choice) ---------- */
@media (prefers-color-scheme: dark) {
  :root[data-style="dojo"]:not([data-scheme="light"]) {
    --bg: #0f0e0c; --panel: #1b1915; --panel2: #211e19; --sunken: #181612; --chrome: #161411;
    --hover: #24211b; --rowline: rgba(236, 228, 211, .07); --menu: #1f1c18; --float: #1f1c18f5;
    --line: rgba(236, 228, 211, .14); --line2: rgba(236, 228, 211, .24); --faint: #6e6658;
    --text: #ece4d3; --text-hi: #fff8ea; --muted: #a69b88; --dim: #8b816f; --soft: #cfc6b4;
    --accent-text: color-mix(in srgb, var(--accent) 80%, #ffffff);
    --green: #8fbf98; --red: #e2604b; --up-text: #a5d1ad; --down-text: #ee8672;
    --buy-bg: #5f9a6c; --buy-ink: #0f0e0c; --sell-bg: #d0563f; --sell-ink: #0f0e0c;
    --orange: #e0914a; --yellow: #d9b24c; --gold: #d9b24c; --warn: #e0a24a; --warn-text: #f0c98a;
    --mode-text: #9da2e0;
    --sess-asia: #9da2e0; --sess-london: #8fbf98; --sess-ny: #e2604b;
    --hero-muted: #a69b88; --seg-off: rgba(236, 228, 211, .1); --open-ring: #6e6658; --sand: #8b816f;
    --flame: #e2604b; --shield: #ece4d3;
    --ink: #ece4d3; --on-ink: #15130f; --ink-soft: rgba(236, 228, 211, .07); --belt-line: rgba(236, 228, 211, .45);
    --belt-white: #e9e3d6; --belt-black: #0a0908;
    --fibre-op: .18; --scrim: rgba(0, 0, 0, .55);
    --shadow: 0 1px 0 rgba(0, 0, 0, .4); --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(236, 228, 211, .08);
    color-scheme: dark;
  }
  :root[data-style="dojo"]:not([data-scheme="light"]):not([data-accent]) { --accent: #e2604b; --accent-ink: #15130f; }
}
:root[data-style="dojo"][data-scheme="dark"] {
  --bg: #0f0e0c; --panel: #1b1915; --panel2: #211e19; --sunken: #181612; --chrome: #161411;
  --hover: #24211b; --rowline: rgba(236, 228, 211, .07); --menu: #1f1c18; --float: #1f1c18f5;
  --line: rgba(236, 228, 211, .14); --line2: rgba(236, 228, 211, .24); --faint: #6e6658;
  --text: #ece4d3; --text-hi: #fff8ea; --muted: #a69b88; --dim: #8b816f; --soft: #cfc6b4;
  --accent-text: color-mix(in srgb, var(--accent) 80%, #ffffff);
  --green: #8fbf98; --red: #e2604b; --up-text: #a5d1ad; --down-text: #ee8672;
  --buy-bg: #5f9a6c; --buy-ink: #0f0e0c; --sell-bg: #d0563f; --sell-ink: #0f0e0c;
  --orange: #e0914a; --yellow: #d9b24c; --gold: #d9b24c; --warn: #e0a24a; --warn-text: #f0c98a;
  --mode-text: #9da2e0;
  --sess-asia: #9da2e0; --sess-london: #8fbf98; --sess-ny: #e2604b;
  --hero-muted: #a69b88; --seg-off: rgba(236, 228, 211, .1); --open-ring: #6e6658; --sand: #8b816f;
  --flame: #e2604b; --shield: #ece4d3;
  --ink: #ece4d3; --on-ink: #15130f; --ink-soft: rgba(236, 228, 211, .07); --belt-line: rgba(236, 228, 211, .45);
  --belt-white: #e9e3d6; --belt-black: #0a0908;
  --fibre-op: .18; --scrim: rgba(0, 0, 0, .55);
  --shadow: 0 1px 0 rgba(0, 0, 0, .4); --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(236, 228, 211, .08);
  color-scheme: dark;
}
:root[data-style="dojo"][data-scheme="dark"]:not([data-accent]) { --accent: #e2604b; --accent-ink: #15130f; }
/* no warm lamp or tinted hero: paper is plain */
:root[data-style="dojo"] { --lamp: linear-gradient(transparent, transparent); --hero: var(--panel); --hero-edge: var(--line); --accent-hi: var(--accent-text);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--panel)); --accent-line: color-mix(in srgb, var(--accent) 40%, var(--panel));
  --brush: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2060%208%27%3E%3Cpath%20d%3D%27M2.0%205.0%20L3.9%205.5%20L5.8%206.0%20L7.6%206.4%20L9.5%206.4%20L11.4%206.3%20L13.2%206.3%20L15.1%206.3%20L17.0%206.3%20L18.8%206.3%20L20.7%206.3%20L22.6%206.4%20L24.4%206.4%20L26.3%206.5%20L28.2%206.6%20L30.0%206.6%20L31.9%206.6%20L33.8%206.5%20L35.6%206.4%20L37.5%206.1%20L39.4%205.9%20L41.2%205.6%20L43.1%205.4%20L45.0%205.1%20L46.8%204.9%20L48.7%204.6%20L50.5%204.4%20L52.4%204.2%20L54.3%204.0%20L56.1%203.7%20L58.0%203.6%20L58.0%203.4%20L56.1%203.5%20L54.3%203.5%20L52.4%203.6%20L50.5%203.6%20L48.7%203.6%20L46.8%203.6%20L44.9%203.6%20L43.1%203.5%20L41.2%203.4%20L39.3%203.3%20L37.5%203.2%20L35.6%203.2%20L33.7%203.1%20L31.9%203.1%20L30.0%203.2%20L28.1%203.3%20L26.3%203.4%20L24.4%203.5%20L22.5%203.5%20L20.7%203.6%20L18.8%203.6%20L16.9%203.5%20L15.1%203.4%20L13.2%203.3%20L11.3%203.2%20L9.4%203.1%20L7.6%203.0%20L5.7%203.3%20L3.9%203.6%20L2.0%204.0%20Z%27%2F%3E%3C%2Fsvg%3E"); }

/* ---------- the page: washi with a few fibres ---------- */
:root[data-style="dojo"] body { font-variant-numeric: tabular-nums; background: var(--bg); }
:root[data-style="dojo"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--fibre-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .47 0 0 0 0 .38 0 0 0 0 .27 0 0 0 .55 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
:root[data-style="dojo"] h1, :root[data-style="dojo"] h2, :root[data-style="dojo"] h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .005em; }
:root[data-style="dojo"] h4 { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
:root[data-style="dojo"] ::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:root[data-style="dojo"] * { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
/* controls: square, ink on paper */
:root[data-style="dojo"] input, :root[data-style="dojo"] select, :root[data-style="dojo"] textarea { background: var(--panel); border: 1px solid var(--line2); border-radius: 2px; }
:root[data-style="dojo"] input:focus, :root[data-style="dojo"] select:focus, :root[data-style="dojo"] textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink-soft); }
:root[data-style="dojo"] .btn { background: transparent; border: 1px solid var(--line2); border-radius: 2px; font-weight: 700; letter-spacing: .03em; transition: background-color .15s, border-color .15s; }
:root[data-style="dojo"] .btn:hover:not(:disabled) { background: var(--ink-soft); border-color: var(--ink); }
:root[data-style="dojo"] .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: none; }
:root[data-style="dojo"] .btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
:root[data-style="dojo"] .btn.danger { color: var(--down-text); }
:root[data-style="dojo"] .segs { border-radius: 2px; border: 1px solid var(--line); background: transparent; padding: 0; gap: 0; }
:root[data-style="dojo"] .segs .seg, :root[data-style="dojo"] .segs button { border: 0; border-radius: 0; background: transparent; color: var(--muted); font-weight: 500; }
:root[data-style="dojo"] .segs .seg + .seg, :root[data-style="dojo"] .segs button + button { border-left: 1px solid var(--line); }
:root[data-style="dojo"] .segs .seg.active, :root[data-style="dojo"] .segs button.on, :root[data-style="dojo"] .segs .seg.on { background: var(--ink); color: var(--on-ink); font-weight: 700; }
:root[data-style="dojo"] .card { border-radius: 3px; box-shadow: var(--shadow); }
:root[data-style="dojo"] .table th { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line2); }
:root[data-style="dojo"] .tile { border-radius: 3px; }
:root[data-style="dojo"] .tile-value { font-family: var(--font-display); font-weight: 600; }
/* windows and menus: a sheet of paper */
:root[data-style="dojo"] .modal-wrap { background: var(--scrim); }
:root[data-style="dojo"] .modal { border-radius: 3px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
:root[data-style="dojo"] .modal-head { padding: 22px 26px 14px; }
:root[data-style="dojo"] .modal-head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
:root[data-style="dojo"] .modal-head .icon-btn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 2px; }
:root[data-style="dojo"] .modal-body { padding: 18px 26px; }
:root[data-style="dojo"] .modal-foot { padding: 14px 26px 20px; }
:root[data-style="dojo"] .cmenu { border-radius: 2px; border: 1px solid var(--line2); background: var(--float); box-shadow: 0 14px 40px rgba(30, 20, 10, .18); }
:root[data-style="dojo"] .cmenu-item { border-radius: 0; }
:root[data-style="dojo"] .cmenu-item:not(.disabled):hover { background: var(--ink); color: var(--on-ink); }
:root[data-style="dojo"] .cmenu-item:not(.disabled):hover > :is(.cmenu-hint, .fav-star:not(.on)) { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
/* the tick, arrow, icon and a kept ★ take the highlighted row's text colour (accent on the accent fill vanished) */
:root[data-style="dojo"] .cmenu-item:not(.disabled):hover > :is(.cmenu-check, .cmenu-arrow, .cmenu-icon, .fav-star.on) { color: inherit; }
:root[data-style="dojo"] .toast { border-radius: 2px; border: 1px solid var(--line2); border-left: 3px solid var(--ink); background: var(--float); box-shadow: 0 10px 30px rgba(30, 20, 10, .18); }
:root[data-style="dojo"] .toast.success { border-left-color: var(--green); }
:root[data-style="dojo"] .toast.error { border-left-color: var(--red); }
:root[data-style="dojo"] .toast.warn { border-left-color: var(--orange); }
:root[data-style="dojo"] .popover { border-radius: 2px; }
:root[data-style="dojo"] .day-pop b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
:root[data-style="dojo"] .day-pop li .icw { color: var(--accent); }
:root[data-style="dojo"] .look-card { border-radius: 3px; }

/* the brush stroke under a chosen tab (a mask, so it takes the ink colour); the top bar's nav may scroll sideways on narrow
   windows (looks.css), which clips what hangs below it, so it gets room for the stroke inside */
:root[data-style="dojo"] .appbar.dojo .ab-nav { padding-bottom: 4px; margin-bottom: -4px; }
:root[data-style="dojo"] :is(.appbar.dojo .ab-tab.on, .wt-top.dojo .wt-tabs .tab.active, .ws.styled.dojo .stab.active, .ws.styled.dojo .cc-head .tf.active)::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: min(46px, 90%); height: 7px; transform: translateX(-50%); background: var(--ink); pointer-events: none;
  -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; }

/* ---------- drawings: seals, the ensō, brush bars, belts ---------- */
.seal { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: var(--s); height: var(--s); box-sizing: border-box; border-radius: max(2px, calc(var(--s) / 9));
  font-family: 'Shippori Mincho', var(--font-display); font-weight: 700; font-size: calc(var(--s) * .64); line-height: 1; transform: rotate(var(--r, -3deg)); user-select: none; }
.seal.filled { background: var(--accent); color: var(--panel); }
.seal.outline { border: max(1.5px, calc(var(--s) / 16)) solid var(--accent); color: var(--accent); }
.seal.ghost { border: 1.5px dashed var(--faint); color: var(--faint); transform: none; font-size: calc(var(--s) * .6); }
.enso .enso-ink { fill: var(--ink); opacity: .92; }
.brush-bar .bb-off { fill: var(--line); }
.brush-bar .bb-on { fill: var(--ink); }
.brush-under path, .dj-stroke-row path { fill: var(--ink); }
.belt { display: inline-flex; flex-shrink: 0; }
.belt svg { display: block; overflow: visible; }
.belt rect, .belt path { fill: var(--belt); stroke: var(--belt-line); stroke-width: 1; }
.belt path.knot { fill: none; stroke-width: .8; }
.practice-book svg { display: block; overflow: visible; }
.practice-book text { font-family: var(--font-body); font-size: 10.5px; fill: var(--muted); }
.practice-book .pb-month { font-family: var(--font-display); font-size: 12px; }
.practice-book .pb-dow.we { fill: var(--faint); }
.pb-dab { fill: var(--ink); cursor: pointer; transition: opacity .15s; }
.pb-dab.l1 { opacity: .55; } .pb-dab.l2 { opacity: .7; } .pb-dab.l3 { opacity: .84; } .pb-dab.l4 { opacity: .96; }
.pb-dab:hover { opacity: 1; }
.pb-kept { fill: var(--accent); pointer-events: none; }
.pb-none { fill: var(--line); } .pb-none.we { fill: var(--rowline); }
.pb-today { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 2.2; }
.dojo-logo { font-size: calc(var(--s) * .62); }

/* ---------- the top bar ---------- */
.appbar.dojo { height: 62px; padding: 0 30px; gap: 22px; border-bottom: 1px solid var(--line); }
.appbar.dojo .ab-lead { display: flex; align-items: center; gap: 22px; }
.appbar.dojo .ab-brand { gap: 11px; }
.appbar.dojo .ab-brand .seal { --s: 28px !important; }
.appbar.dojo .ab-brand span:not(.seal) { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.appbar.dojo .cat-switch { height: auto; padding: 0; gap: 0; border: 1px solid var(--line); border-radius: 2px; background: transparent; box-shadow: none; }
.appbar.dojo .cat-switch .cat { height: 28px; padding: 0 12px; border-radius: 0; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted); background: transparent; box-shadow: none; }
.appbar.dojo .cat-switch .cat + .cat { border-left: 1px solid var(--line); }
.appbar.dojo .cat-switch .cat.on { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.appbar.dojo .cat-switch .cat:not(.on):hover { color: var(--text); background: var(--ink-soft); }
.appbar.dojo .ab-nav { flex: 1; justify-content: center; gap: 26px; height: auto; padding: 0; background: none; border: 0; }
.appbar.dojo + * { position: relative; }
.appbar.dojo .grow { display: none; }
.appbar.dojo .ab-tab { position: relative; height: 34px; padding: 0 2px; border-radius: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.appbar.dojo .ab-tab:not(.on):not(.off):hover { background: none; color: var(--text); }
.appbar.dojo .ab-tab.on { background: none; color: var(--text); font-weight: 700; }
.appbar.dojo .ab-tab .pro-tag { background: transparent; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-family: var(--font-body); }
.appbar.dojo .ab-right { gap: 12px; }
.appbar.dojo .ab-saved { color: var(--dim); font-size: 12px; }
.ab-belt { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px; border: 0; background: none; color: var(--soft); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.ab-belt:hover { color: var(--text); }
.appbar.dojo .ab-new { height: 36px; padding: 0 16px 0 13px; border-radius: 2px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.appbar.dojo .ab-new:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.appbar.dojo .ab-circ { width: 34px; height: 34px; border: 0; border-radius: 2px; color: var(--soft); }
.appbar.dojo .ab-circ:hover { background: var(--ink-soft); color: var(--text); }
.appbar.dojo .ab-acct { height: 34px; padding: 0; border: 0; background: none; }
.appbar.dojo .ab-avatar { width: 32px; height: 32px; border-radius: 2px; background: var(--ink-soft); color: var(--text); font-family: var(--font-display); }
@media (max-width: 1500px) { .appbar.dojo .ab-brand span:not(.seal), .appbar.dojo .ab-saved > :not(.icw) { display: none; } .appbar.dojo .ab-saved { font-size: 0; gap: 0; } .appbar.dojo .ab-nav { gap: 18px; } }
@media (max-width: 1280px) { .ab-belt > :not(.belt) { display: none; } .appbar.dojo { padding: 0 18px; gap: 14px; } .appbar.dojo .ab-nav { gap: 14px; } }
@media (max-width: 1360px) { .ab-belt { font-size: 0; gap: 0; } } /* the belt's picture and tooltip say it */
@media (max-width: 1140px) { .appbar.dojo { padding: 0 14px; gap: 10px; } .appbar.dojo .ab-nav { gap: 10px; } .appbar.dojo .ab-right { gap: 8px; } }

/* ---------- Home ---------- */
.dj-home { width: 100%; max-width: 1440px; margin: 0 auto; padding: 26px 48px 20px; display: flex; flex-direction: column; gap: 20px; }
.dj-head-row { display: flex; align-items: flex-end; gap: 20px; }
.dj-title { flex: 1; min-width: 0; }
.dj-kanji-line { display: flex; align-items: baseline; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.dj-kanji { font-family: 'Shippori Mincho', var(--font-display); font-weight: 600; color: var(--accent); font-size: 16px; letter-spacing: .2em; }
.dj-title h1 { margin: 2px 0 0; font-size: 42px; font-weight: 600; line-height: 1.12; }
.dj-greet { margin-top: 4px; font-size: 13px; color: var(--muted); }
.dj-greet .greet-name, .dj-greet .greet-ask { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.dj-greet .greet-ask { margin-left: 4px; color: var(--dim); }
.dj-greet .greet-name:hover, .dj-greet .greet-ask:hover { color: var(--text); text-decoration: underline; }
.dj-date { font-family: var(--font-display); font-size: 17px; color: var(--soft); padding-bottom: 6px; }
.dj-card { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dj-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dj-label .grow { flex: 1; }
.dj-muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.dj-muted.small { font-size: 12px; }
.dj-sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dj-grow { flex: 1; min-height: 8px; }
.dj-link { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.dj-link:hover { text-decoration: underline; }
.dj-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* the Daily, begun from the ensō */
.dj-daily-in { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px; }
.dj-enso-btn { position: relative; flex-shrink: 0; width: 170px; height: 170px; border: 0; padding: 0; background: none; color: var(--text); cursor: pointer; }
.dj-enso-btn .enso { position: absolute; inset: -10px; }
.dj-enso-btn .enso svg { width: 190px; height: 190px; }
.dj-enso-w { position: relative; font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: .02em; }
.dj-enso-btn:hover .enso-ink { opacity: 1; }
.dj-enso-btn:hover .dj-enso-w { color: var(--accent); }
.dj-enso-btn:disabled { cursor: default; opacity: .5; }
.dj-enso-btn.done .dj-enso-w { color: var(--accent); }
.dj-daily-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dj-daily-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.dj-daily .mk-row { flex-wrap: wrap; gap: 6px; }
.dj-daily .mk-seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 2px; }
.dj-daily .mk { height: 26px; padding: 0 9px; border: 0; border-radius: 0; background: none; color: var(--muted); font-family: var(--font-body); font-size: 11.5px; letter-spacing: .04em; }
.dj-daily .mk + .mk { border-left: 1px solid var(--line); }
.dj-daily .mk.on { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.dj-daily .mk-more { height: 28px; border-radius: 2px; font-size: 11.5px; max-width: 110px; }
.dj-strokes { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--soft); margin-top: 2px; }
/* the belt */
.dj-belt-draw { align-self: flex-start; margin: 14px 0 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.dj-belt-draw:hover .belt { transform: rotate(-1.5deg); }
.dj-belt-draw .belt { transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.dj-belt-name { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.dj-belt .brush-bar { margin-top: 12px; max-width: 100%; }
.dj-belt .brush-bar svg { max-width: 100%; height: auto; }
.dj-belt-foot { display: flex; justify-content: space-between; gap: 10px; margin: 7px 0 10px; font-size: 12px; color: var(--soft); }
/* three lines */
.dj-when { margin-left: auto; font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--soft); }
.dj-last-name { margin-top: 10px; font-family: var(--font-display); font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.dj-last-seals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 10px; }
.dj-last-seals .seal.ghost.none { border-style: solid; opacity: .55; } /* a trade without a plan: neither kept nor broken */
.dj-last-review { margin: 14px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-size: 16.5px; line-height: 1.5; color: var(--text);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dj-last-empty { margin: 14px 0 0; font-family: var(--font-display); font-size: 15px; line-height: 1.5; color: var(--soft); }
.dj-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--soft); text-decoration: none; }
.dj-open:hover { color: var(--text); text-decoration: underline; }
/* the practice book and the backtests */
.dj-row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.dj-book-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dj-key { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.dj-key-seal { width: 6px; height: 6px; border-radius: 1px; background: var(--accent); display: inline-block; }
.dj-book-body { display: flex; align-items: flex-end; gap: 26px; margin-top: 12px; min-width: 0; }
.dj-book-scroll { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.dj-book-scroll::-webkit-scrollbar { display: none; }
.dj-book-nums { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; flex-shrink: 0; }
.dj-book-nums b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; }
.dj-book-nums span { font-size: 12px; color: var(--muted); }
.dj-rows { display: flex; flex-direction: column; margin-top: 6px; }
.dj-bt { display: flex; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; color: var(--text); }
.dj-bt + .dj-bt { border-top: 1px solid var(--rowline); }
.dj-bt:hover .dj-bt-t b, .dj-bt:focus-visible .dj-bt-t b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dj-bt:focus-visible { outline: none; }
.dj-bt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dj-bt-t b { font-family: var(--font-display); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-bt-t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-bt-when { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.dj-bt-more { width: 28px; height: 28px; border: 0; border-radius: 2px; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dj-bt-more svg circle { fill: currentColor; }
.dj-bt-more:hover { background: var(--ink-soft); color: var(--text); }
.dj-list-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.dj-new { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .03em; cursor: pointer; }
.dj-new:hover { background: var(--ink); color: var(--on-ink); }
.dj-foot { display: flex; align-items: center; gap: 12px; padding: 4px 0 0; }
.dj-foot span:not(.seal) { font-family: var(--font-display); font-size: 14px; color: var(--soft); }
.dj-home .s-card.s-start-steps { border-radius: 3px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel); }
.dj-home .s-card-head h2 { font-size: 20px; }
.dj-home .gs-meter i { border-radius: 0; }
.dj-home .gs-meter i.on { background: var(--ink); }
.dj-home .pill-btn { border-radius: 2px; }
.dj-home .pill-btn.accent { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.home.styled.dojo .home-foot { opacity: .9; }
@media (max-width: 1360px) {
  .dj-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dj-cards .dj-daily { grid-column: 1 / -1; }
  .dj-row2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .dj-home { padding: 20px 18px; } .dj-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- belts and seals window ---------- */
.belts-win { display: flex; flex-direction: column; gap: 14px; }
.bw-lede { display: flex; align-items: baseline; gap: 12px; margin: -6px 0 0; font-size: 13.5px; color: var(--muted); }
.bw-kanji { font-family: 'Shippori Mincho', var(--font-display); color: var(--accent); font-size: 18px; font-weight: 600; }
.bw-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0; border-top: 1px solid var(--line); }
.bw-belts { padding: 8px 28px 4px 0; display: flex; flex-direction: column; }
.bw-row { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.bw-row + .bw-row { border-top: 1px solid var(--rowline); }
.bw-row.later { opacity: .45; }
.bw-name { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bw-name b { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.bw-name span { font-size: 12.5px; color: var(--muted); }
.bw-state { width: 170px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 12px; color: var(--muted); }
.bw-row.earned .bw-state { flex-direction: row; justify-content: flex-end; align-items: center; gap: 7px; }
.bw-state b { color: var(--text); }
.bw-seals { padding: 16px 0 8px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.bw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.bw-seal { display: flex; gap: 12px; align-items: flex-start; opacity: .5; }
.bw-seal.on { opacity: 1; }
.bw-seal b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.bw-seal span:not(.seal) { display: block; font-size: 11.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.bw-note { margin: auto 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) { .bw-cols { grid-template-columns: minmax(0, 1fr); } .bw-seals { border-left: 0; padding-left: 0; } }

/* ---------- a new belt ---------- */
.dojo-moment { align-items: center; }
.djm-card { position: relative; width: 460px; max-width: 100%; padding: 34px 36px 28px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.djm-enso { position: relative; width: 220px; height: 220px; margin: -6px 0 -150px; opacity: .9; }
.djm-belt { position: relative; margin: 0 0 22px; }
.djm-card h2 { margin: 0; font-size: 34px; }
.djm-card p { margin: 4px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 340px; }
.djm-actions { display: flex; gap: 10px; }

/* ---------- the replay screen: paper bars, the chart as a sheet, the ensō play ---------- */
.ws.styled.dojo { background: var(--bg); }
.wt-top.dojo { height: 58px; padding: 0 16px; gap: 14px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.wt-top.dojo .wt-back, .wt-top.dojo .help-btn, .wt-top.dojo .wt-mute { width: 34px; height: 34px; border: 0; border-radius: 2px; background: none; color: var(--soft); }
.wt-top.dojo .wt-back:hover, .wt-top.dojo .help-btn:hover, .wt-top.dojo .wt-mute:hover { background: var(--ink-soft); color: var(--text); }
.wt-top.dojo .seal { --s: 24px !important; }
.wt-top.dojo .wt-name .ws-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.wt-top.dojo .wt-sub { color: var(--muted); }
.wt-top.dojo .wt-chip { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; background: none; border: 1px solid var(--accent); color: var(--accent-text); }
.wt-top.dojo .wt-tabs { height: auto; padding: 0; gap: 20px; margin-left: 12px; background: none; border: 0; }
.wt-top.dojo .wt-tabs .tab { position: relative; height: 34px; padding: 0 2px; border-radius: 0; font-size: 13.5px; font-weight: 500; color: var(--muted); background: none; }
.wt-top.dojo .wt-tabs .tab:not(.active):hover { color: var(--text); }
.wt-top.dojo .wt-tabs .tab.active { background: none; color: var(--text); font-weight: 700; }
.wt-top.dojo .wt-clock { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
.wt-top.dojo .wt-clock .replay-time .clock { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.wt-top.dojo .mchips { height: 34px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); padding: 0; }
.wt-top.dojo .mchip { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wt-top.dojo .mchip b { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.wt-top.dojo .mchip + .mchip { border-left: 1px solid var(--line); }
.wt-top.dojo .wt-finish { height: 34px; border-radius: 2px; }
.ws.styled.dojo .ch-bar { margin: 10px 12px 0; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); }
.ws.styled.dojo .ch-track { border-radius: 0; }
.ws.styled.dojo .ch-meter[data-k="target"] .ch-fill { background: var(--ink); }
.ws.styled.dojo .ch-meter:not([data-k="target"]):not(.warn):not(.bad) .ch-fill { background: var(--dim); }
.ws.styled.dojo .ch-name { border-radius: 2px; background: none; border: 1px solid var(--accent); color: var(--accent-text); }
.ws.styled.dojo .ws-body { padding: 10px 12px 12px; gap: 10px; }
.ws.styled.dojo .chart-card { border-radius: 3px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ws.styled.dojo .cc-head { height: 44px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); background: var(--chrome); }
.ws.styled.dojo .cc-sym { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.ws.styled.dojo .cc-head .tf-group { background: none; padding: 0 6px; gap: 12px; border-radius: 0; }
.ws.styled.dojo .cc-head .tf { position: relative; height: 30px; min-width: 22px; padding: 0 2px; border-radius: 0; background: none; font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }
.ws.styled.dojo .cc-head .tf:not(.active):hover { color: var(--text); background: none; }
.ws.styled.dojo .cc-head .tf.active { background: none; color: var(--text); font-weight: 700; }
.ws.styled.dojo .cc-head .tf.active::after { width: 22px; bottom: 0; }
.ws.styled.dojo .cc-head .ctl { height: 30px; padding: 0 10px; border: 0; border-radius: 2px; background: none; color: var(--soft); font-size: 12.5px; }
.ws.styled.dojo .cc-head .ctl:hover { background: var(--ink-soft); color: var(--text); }
.ws.styled.dojo .cc-head .ctl.icon-only { width: 30px; padding: 0; }
.ws.styled.dojo .cc-day { background: var(--chrome); border-bottom: 1px solid var(--line); }
.ws.styled.dojo .dl-track { height: 2px; border-radius: 0; background: var(--line); }
.ws.styled.dojo .dl-fill { border-radius: 0; background: var(--ink); }
.ws.styled.dojo .dl-thumb { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 0 2px var(--dl-ring); transform: rotate(45deg); }
.ws.styled.dojo .dl-sess { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.ws.styled.dojo .dl-ticks { font-family: var(--font-body); letter-spacing: .1em; text-transform: uppercase; font-size: 9px; }
.ws.styled.dojo .dl-hover { border-radius: 2px; border-color: var(--line2); background: var(--float); font-family: var(--font-body); letter-spacing: .02em; }
.ws.styled.dojo .toolbox { width: 44px; margin: 0; padding: 8px 0; gap: 2px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--chrome); }
.ws.styled.dojo .tool { position: relative; width: 34px; height: 34px; border-radius: 0; color: var(--soft); }
.ws.styled.dojo .tool:hover { background: var(--ink-soft); color: var(--text); }
.ws.styled.dojo .tool.active { background: var(--ink-soft); color: var(--text); }
.ws.styled.dojo .tool.active::before { content: ""; position: absolute; left: -5px; top: 8px; width: 3px; height: 18px; background: var(--accent); }
.transport.dojo { min-height: 60px; padding: 4px 14px; gap: 6px; background: var(--chrome); border-top: 1px solid var(--line); }
.transport.dojo .ctl { height: 32px; padding: 0 10px; border-radius: 2px; background: none; color: var(--soft); font-weight: 500; }
.transport.dojo .ctl:hover:not(:disabled) { background: var(--ink-soft); color: var(--text); }
.enso-play { position: relative; width: 58px; height: 58px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin: -4px 2px; }
.enso-play .enso { position: absolute; inset: 0; pointer-events: none; }
.enso-play .enso svg { width: 58px; height: 58px; transition: transform .6s cubic-bezier(.3, 1.2, .5, 1); }
.transport.dojo .ctl.big-play, .transport.dojo .ctl.big-play.on { position: relative; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--text); box-shadow: none; }
.transport.dojo .ctl.big-play:hover:not(:disabled) { background: var(--ink-soft); color: var(--text); }
.transport.dojo .ctl.big-play:hover + .enso svg, .enso-play:hover .enso svg { transform: rotate(-12deg); }
.transport.dojo .speed-seg { border: 1px solid var(--line); border-radius: 2px; padding: 0; gap: 0; background: none; }
.transport.dojo .spd { height: 28px; min-width: 34px; border-radius: 0; font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.transport.dojo .spd + .spd { border-left: 1px solid var(--line); }
.transport.dojo .spd.on { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.transport.dojo .skip-n { height: 28px; border-radius: 2px; }
.transport.dojo .ctl.jump { border: 1px solid var(--line2); }
.ws.styled.dojo .side { width: 332px; border-radius: 3px; border: 1px solid var(--line); background: var(--chrome); box-shadow: var(--shadow); }
.ws.styled.dojo .stabs { margin: 12px 18px 4px; height: 36px; padding: 0; gap: 20px; justify-content: flex-start; background: none; border-radius: 0; border-bottom: 0; }
.ws.styled.dojo .stab { position: relative; flex: none; padding: 0 2px; border-radius: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.ws.styled.dojo .stab.active { background: none; color: var(--text); font-weight: 700; }
.ws.styled.dojo .stab.active::after { bottom: 0; width: 38px; }
.ws.styled.dojo .side-body { padding: 6px 16px 14px; }
.ws.styled.dojo .tk-card { border-radius: 3px; background: var(--panel); border: 1px solid var(--line); }
.ws.styled.dojo .side-btn { height: 54px; border-radius: 2px; background: transparent; }
.ws.styled.dojo .side-btn b { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.ws.styled.dojo .side-btn.buy { border: 1.5px solid var(--green); color: var(--up-text); }
.ws.styled.dojo .side-btn.sell { border: 1.5px solid var(--red); color: var(--down-text); }
.ws.styled.dojo .side-btn.buy.active, .ws.styled.dojo .side-btn.buy:hover { background: var(--buy-bg); color: var(--buy-ink); }
.ws.styled.dojo .side-btn.sell.active, .ws.styled.dojo .side-btn.sell:hover { background: var(--sell-bg); color: var(--sell-ink); }
.ws.styled.dojo .ticket .segs .seg { padding: 6px; }
.ws.styled.dojo .ticket input:not([type=checkbox]), .ws.styled.dojo .ticket select { height: 34px; border-radius: 2px; }
.ws.styled.dojo .place { height: 48px; border-radius: 2px; letter-spacing: .03em; }
.ws.styled.dojo .place.ready { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: none; }
.ws.styled.dojo .place.ready:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.ws.styled.dojo .place.pending { background: transparent; border: 1.3px dashed var(--faint); color: var(--muted); }
.ws.styled.dojo .bottom { border-radius: 3px; border: 1px solid var(--line); background: var(--panel); }
.ws.styled.dojo .last-trade { border-radius: 3px; background: var(--panel); border: 1px solid var(--line); }
.ws.styled.dojo .lt-big { font-family: var(--font-display); font-weight: 600; }
.ws.styled.dojo .lt-seal, .ws.styled.dojo .pc-seal, .ws.styled.dojo .ts-seal.on, :root[data-style="dojo"] .fx-seal i { border-radius: 2px; transform: rotate(-4deg); }
:root[data-style="dojo"] .rules-check.styled { border-radius: 3px; background: var(--panel); border: 1px solid var(--line); }
:root[data-style="dojo"] .rules-check.styled .rules-head b { font-family: var(--font-display); font-size: 16px; }
:root[data-style="dojo"] .rules-check.styled .rules-bar span { border-radius: 0; }
:root[data-style="dojo"] .rules-check.styled .rules-bar span.on { background: var(--ink); }
:root[data-style="dojo"] .rule-row { min-height: 38px; border: 0; border-radius: 0; background: none; padding: 6px 2px; }
:root[data-style="dojo"] .rule-row + .rule-row { border-top: 1px solid var(--rowline); }
:root[data-style="dojo"] .rule-row .tick { width: 18px; height: 18px; border-radius: 0; border: 1.3px solid var(--faint); color: var(--ink); }
:root[data-style="dojo"] .rule-row.on .tick { background: transparent; border: 1.3px solid var(--ink); transform: none; }
:root[data-style="dojo"] .rule-row .tick svg { width: 14px; height: 14px; stroke-width: 2.4; }
:root[data-style="dojo"] .conf-check.styled .conf-chip { border-radius: 2px; }
:root[data-style="dojo"] .fx-pill-main { border-radius: 2px; background: var(--panel); }
:root[data-style="dojo"] .plan-chip { border-radius: 2px; }
:root[data-style="dojo"] .line-act { border-radius: 2px; }
:root[data-style="dojo"] .fav-bar { border-radius: 3px; }

/* the kept-plan stamp over the chart */
.chart-stamp { position: absolute; right: 90px; top: 70px; z-index: 6; pointer-events: none; opacity: 0; }
.chart-stamp.go { animation: stamp-in 1.9s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.chart-stamp:not(.go) { opacity: .9; transform: rotate(var(--r)); animation: none !important; } /* Calm: shown still, then removed */
@keyframes stamp-in { 0% { opacity: 0; transform: rotate(var(--r)) scale(1.8); } 14% { opacity: .95; transform: rotate(var(--r)) scale(.96); } 20% { transform: rotate(var(--r)) scale(1); } 78% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--r)) scale(1); } }

/* ---------- the journal ---------- */
.ws.styled.dojo .journal { gap: 18px; padding: 16px 20px 28px; }
.ws.styled.dojo .cal, .ws.styled.dojo .day-list { border-radius: 3px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ws.styled.dojo .day-detail { position: relative; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--rowline), 0 18px 40px rgba(60, 40, 20, .08); padding: 30px 36px 30px 44px; }
.ws.styled.dojo .day-detail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: linear-gradient(to right, var(--rowline), transparent); pointer-events: none; }
.ws.styled.dojo .dd-head h2 { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.ws.styled.dojo .day-detail .tile { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.ws.styled.dojo .day-detail .tile-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ws.styled.dojo .cal-head b { font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.ws.styled.dojo .cal-head .icon-btn { border-radius: 2px; border: 1px solid var(--line); }
.ws.styled.dojo .cal-dow { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.ws.styled.dojo .cal-cell { border-radius: 2px; border-color: var(--rowline); background: transparent; }
.ws.styled.dojo .cal-d { font-family: var(--font-display); font-weight: 600; }
.ws.styled.dojo .cal-cell.win, .ws.styled.dojo .cal-cell.loss { background: transparent; border-color: var(--line); }
.ws.styled.dojo .cal-cell.win .cal-pnl { color: var(--up-text); }
.ws.styled.dojo .cal-cell.loss .cal-pnl { color: var(--down-text); }
.ws.styled.dojo .cal-cell.sel { outline: 1.5px solid var(--ink); box-shadow: none; }
.ws.styled.dojo .cal-seal { --r: -6deg; width: 18px; height: 18px; top: 6px; right: 6px; border-radius: 2px; display: flex; align-items: center; justify-content: center; transform: rotate(var(--r));
  font-family: 'Shippori Mincho', var(--font-display); font-weight: 700; font-size: 12px; line-height: 1; }
.ws.styled.dojo .cal-seal.sealed { background: var(--accent); color: var(--panel); }
.ws.styled.dojo .cal-seal.sealed::after { display: none; }
.ws.styled.dojo .cal-seal.open { box-shadow: none; border: 1px dashed var(--faint); transform: none; width: 12px; height: 12px; top: 9px; right: 9px; }
.ws.styled.dojo .day-row { border-radius: 0; }
.ws.styled.dojo .day-row + .day-row { border-top: 1px solid var(--rowline); }
.dj-three-edit { display: flex; flex-direction: column; gap: 4px; }
.dj-three-edit h4 { margin: 0 0 4px; }
.dj-3row { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0 4px; border-bottom: 1px solid var(--line); }
.dj-3row .seal { margin-top: 10px; }
.dj-3field { flex: 1; display: flex; flex-direction: column; gap: 0; }
.dj-3field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
:root[data-style="dojo"] .dj-3field textarea { border: 0; box-shadow: none; background: transparent; padding: 2px 0 4px; resize: none; font-family: var(--font-display); font-size: 18px; line-height: 1.5; min-height: 36px; }
:root[data-style="dojo"] .dj-3field textarea:focus { box-shadow: none; }
.dj-3field textarea::placeholder { color: var(--faint); font-size: 15px; }
:root[data-style="dojo"] .day-detail .notes-field textarea, :root[data-style="dojo"] .day-detail .rich { font-family: var(--font-display); font-size: 15px; line-height: 1.75;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.75em - 1px), var(--rowline) calc(1.75em - 1px), var(--rowline) 1.75em); background-attachment: local; }

/* ---------- moments dressed in paper ---------- */
:root[data-style="dojo"] .dm.studio { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow-lg); }
:root[data-style="dojo"] .cu-card { border-radius: 3px; }

/* ---------- the ticket in paper: square rows, a leader feel, ink ticks ---------- */
.ws.styled.dojo .ticket .segs { border-radius: 2px; padding: 0; background: transparent; }
.ws.styled.dojo .ticket .segs .seg { border-radius: 0; }
:root[data-style="dojo"] .ticket.styled .trow, :root[data-style="dojo"] .ticket.styled .tp-row { border-radius: 2px; }
:root[data-style="dojo"] .ticket.styled .trow { background: transparent; border-color: var(--line); }
:root[data-style="dojo"] .ticket.styled .trow > label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
:root[data-style="dojo"] .ticket.styled .trow input, :root[data-style="dojo"] .ticket.styled .tp-row input { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
:root[data-style="dojo"] .ticket.styled .tk-stop { background: color-mix(in srgb, var(--red) 6%, transparent); }
:root[data-style="dojo"] .ticket.styled .tp-row { background: color-mix(in srgb, var(--green) 6%, transparent); }
:root[data-style="dojo"] .ticket.styled .tp-block > .btn { border-radius: 2px; }
:root[data-style="dojo"] .size-picks .sp { border-radius: 2px; }
:root[data-style="dojo"] .size-picks .sp.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
:root[data-style="dojo"] .ticket.styled .be-row input[type=checkbox], :root[data-style="dojo"] .ticket.styled .tk-pause input[type=checkbox] { border-radius: 2px; }
:root[data-style="dojo"] .ticket.styled .be-row input[type=checkbox]::after, :root[data-style="dojo"] .ticket.styled .tk-pause input[type=checkbox]::after { border-radius: 1px; }
:root[data-style="dojo"] .ticket.styled .be-row input[type=checkbox]:checked, :root[data-style="dojo"] .ticket.styled .tk-pause input[type=checkbox]:checked { background: var(--ink); }
:root[data-style="dojo"] .ticket.styled .be-row input[type=checkbox]:checked::after, :root[data-style="dojo"] .ticket.styled .tk-pause input[type=checkbox]:checked::after { background: var(--on-ink); }
:root[data-style="dojo"] .ts-chip { border-radius: 2px; background: transparent; border: 1px solid var(--line); }
:root[data-style="dojo"] .ts-chip.open { background: var(--ink-soft); }
:root[data-style="dojo"] .ts-chip .icw { color: var(--text); }
:root[data-style="dojo"] .chip, :root[data-style="dojo"] .sym-chip, :root[data-style="dojo"] .wt-chip { border-radius: 2px; }
:root[data-style="dojo"] .ws.styled .tp-chip { border-radius: 2px; }

/* ---------- Charts and Live in paper ---------- */
.ws.lc.dojo .lc-top { height: 56px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.ws.lc.dojo .lc-main { margin: 10px; border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow); }
.ws.lc.dojo .lc-foot { background: transparent; border-top: 0; }
.ws.lc.dojo .cat-switch { border: 1px solid var(--line); border-radius: 2px; background: transparent; padding: 0; gap: 0; }
.ws.lc.dojo .cat-switch .cat { border-radius: 0; font-size: 12px; letter-spacing: .06em; }
.ws.lc.dojo .cat-switch .cat + .cat { border-left: 1px solid var(--line); }
.ws.lc.dojo .cat-switch .cat.on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.ws.lc.dojo .lc-sym { border-radius: 2px; font-family: var(--font-body); letter-spacing: .04em; }
.ws.lc.dojo .lc-sym.on { background: transparent; border-color: var(--ink); color: var(--text); }
.ws.lc.dojo .lc-tfs .tf { border-radius: 0; }
.ws.lc.dojo .lc-tfs .tf.on { background: none; color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.ws.lc.dojo .lc-src { border-radius: 2px; background: var(--panel); }
.ws.lc.dojo .lc-demo { background: color-mix(in srgb, var(--warn) 8%, var(--panel)); }
:root[data-style="dojo"] .lv-card { border-radius: 3px; box-shadow: var(--shadow); }
.ws.styled.dojo .cal-d .dot { display: none; } /* the seal already says the day has words */
:root[data-style="dojo"] .dj-3field textarea { overflow: hidden; }
/* moments: a red seal instead of a round badge */
:root[data-style="dojo"] .mo-mark { border-radius: 3px; background: var(--accent); color: var(--panel); transform: rotate(-4deg); box-shadow: none; font-family: 'Shippori Mincho', var(--font-display); font-weight: 700; }
:root[data-style="dojo"] .moment-head.bad .mo-mark { background: transparent; border: 2px solid var(--muted); color: var(--muted); }
:root[data-style="dojo"] .mo-title { font-family: var(--font-display); font-weight: 600; }
:root[data-style="dojo"] .mo-label { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; font-weight: 700; }

/* ---------- motion: ink that draws itself, seals that stamp (Calm and "reduce motion" keep it still) ---------- */
@property --dj-sweep { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
@media (prefers-reduced-motion: no-preference) {
  /* the ensō is drawn by the brush, from where it starts (its path begins 20° past twelve o'clock) round to where it lifts */
  :root[data-style="dojo"]:not([data-motion="calm"]) .enso.draw svg { -webkit-mask: conic-gradient(from 20deg, #000 var(--dj-sweep), transparent calc(var(--dj-sweep) + .5deg));
    mask: conic-gradient(from 20deg, #000 var(--dj-sweep), transparent calc(var(--dj-sweep) + .5deg)); animation: dj-enso 1.25s cubic-bezier(.55, .05, .25, 1) .15s both; }
  /* a belt's progress fills like a stroke; the practice book is inked week by week */
  :root[data-style="dojo"]:not([data-motion="calm"]) .brush-bar .bb-on { animation: dj-stroke .9s cubic-bezier(.5, 0, .2, 1) .35s both; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .dj-book .practice-book svg { -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 260% 100% no-repeat;
    mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 260% 100% no-repeat; animation: dj-ink 1.4s cubic-bezier(.4, 0, .2, 1) .2s both; }
  /* the chosen tab's brush stroke is drawn left to right */
  :root[data-style="dojo"]:not([data-motion="calm"]) :is(.appbar.dojo .ab-tab.on, .wt-top.dojo .wt-tabs .tab.active, .ws.styled.dojo .stab.active, .ws.styled.dojo .cc-head .tf.active)::after { animation: dj-under .45s cubic-bezier(.5, 0, .2, 1) both; }
  /* cards settle like sheets of paper laid down */
  :root[data-style="dojo"]:not([data-motion="calm"]) .dj-cards > .dj-card, :root[data-style="dojo"]:not([data-motion="calm"]) .dj-row2 > .dj-card { animation: dj-lay .6s cubic-bezier(.2, .8, .2, 1) both; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .dj-cards > .dj-card:nth-child(2) { animation-delay: .06s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .dj-cards > .dj-card:nth-child(3) { animation-delay: .12s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .dj-row2 > .dj-card { animation-delay: .16s; }
  /* seals are pressed onto the page one by one */
  :root[data-style="dojo"]:not([data-motion="calm"]) .bw-seal.on .seal { animation: dj-stamp .42s cubic-bezier(.2, 1.4, .4, 1) both; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .bw-seal:nth-child(2) .seal { animation-delay: .08s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .bw-seal:nth-child(3) .seal { animation-delay: .16s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .bw-seal:nth-child(4) .seal { animation-delay: .24s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .bw-seal:nth-child(5) .seal { animation-delay: .32s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .bw-seal:nth-child(6) .seal { animation-delay: .4s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .bw-seal:nth-child(7) .seal { animation-delay: .48s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .bw-seal:nth-child(8) .seal { animation-delay: .56s; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .ws.styled.dojo .cal-seal.sealed { animation: dj-stamp .4s cubic-bezier(.2, 1.4, .4, 1) both; }
  /* while the replay plays, the ensō round the play button turns slowly */
  :root[data-style="dojo"]:not([data-motion="calm"]) .enso-play:has(.big-play.on) .enso svg { animation: dj-turn 9s linear infinite; }
  /* a new belt: the belt drops into place under the ensō */
  :root[data-style="dojo"]:not([data-motion="calm"]) .djm-belt { animation: dj-tie .7s cubic-bezier(.2, 1.3, .4, 1) .9s both; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .djm-card { animation: dj-lay .5s cubic-bezier(.2, .8, .2, 1) both; }
  :root[data-style="dojo"]:not([data-motion="calm"]) .modal { animation: dj-lay .32s cubic-bezier(.2, .8, .2, 1) both; }
}
.transport.dojo .ctl.big-play.on { animation: none; }
@keyframes dj-enso { from { --dj-sweep: 0deg; } to { --dj-sweep: 360deg; } }
@keyframes dj-stroke { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dj-ink { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes dj-under { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dj-lay { from { opacity: 0; transform: translateY(6px); } }
@keyframes dj-stamp { 0% { opacity: 0; transform: rotate(var(--r, -3deg)) scale(1.6); } 60% { opacity: 1; transform: rotate(var(--r, -3deg)) scale(.94); } 100% { transform: rotate(var(--r, -3deg)) scale(1); } }
@keyframes dj-turn { to { transform: rotate(360deg); } }
@keyframes dj-tie { from { opacity: 0; transform: translateY(-24px) rotate(-6deg); } }
.seal.wel-seal { margin: 0 auto; }
:root[data-style="dojo"] .wel-door { border-radius: 3px; box-shadow: var(--shadow); }
:root[data-style="dojo"] .wel-door h2 { font-size: 20px; }
:root[data-style="dojo"] .wel-ico, :root[data-style="dojo"] .wel-badge { border-radius: 2px; }
:root[data-style="dojo"] .ticket.styled .be-row > label, :root[data-style="dojo"] .ticket.styled .be-row span { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; }
:root[data-style="dojo"] .nb-type .nb-icon { color: var(--ink); } :root[data-style="dojo"] .nb-type b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }

/* ---------- audit fixes: the ticket's foot, the target row, the more-speeds menu, badges ---------- */
.ws.styled.dojo .ticket.styled > .tk-foot { background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 3px 3px; }
:root[data-style="dojo"] .ticket.styled .tp-row .tp-price { flex: 1 1 0; min-width: 0; }
:root[data-style="dojo"] .transport .spd-more { border: 0; background: transparent; box-shadow: none; padding: 0 0 0 2px; }
:root[data-style="dojo"] .lv-kind { border-radius: 2px; }
:root[data-style="dojo"] :where(a:not([class])), :root[data-style="dojo"] .link-btn { color: var(--accent-text); }
:root[data-style="dojo"] .ticket.styled .tp-row { gap: 2px; padding-left: 10px; }
:root[data-style="dojo"] .ticket.styled .tp-row input { font-size: 14px; padding: 0 3px; }
:root[data-style="dojo"] .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.dojo .cc-head .ctl.cc-lbl { width: 30px; padding: 0; } }
