/* The trade journal page (/journal) and its website demo. Colours come from app.css: green and red
   only for profit and loss, gold for mistakes, the neutral accent for everything else.
   Layout: one bar of controls, a strip of key numbers, the trade list beside the picked trade (the
   part people use most), then the performance views. */

.jn { --jn-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --jn-r: 12px; padding-top: 18px; }
.jn .spacer { flex: 1; }
.jn-label { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.jn-label small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.jn .up { color: var(--up); }
.jn .down { color: var(--down); }
.jn .num, .jn-table td, .jn-kpi .v, .jn-nums b, .jn-readout { font-family: var(--jn-mono); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.jn-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.jn-btn:hover { background: var(--hover); }
.jn-btn svg, .jn-ibtn svg, .jn-transport svg, .jn-search svg, .jn-drop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jn-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.jn-btn.primary:hover { opacity: .88; }
.jn-btn.danger { color: var(--down); }
.jn-btn[hidden] { display: none; }
.jn-ibtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
.jn-ibtn:hover { background: var(--hover); }
.jn-ibtn:disabled { opacity: .35; cursor: default; }
.jn-ibtn[hidden] { display: none; }
.jn-select { height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--text); padding: 0 10px; font: inherit; font-size: 13px; }
.seg.small { padding: 3px; border-radius: 10px; flex-wrap: nowrap; }
.seg.small button { padding: 5px 10px; font-size: 12px; border-radius: 7px; white-space: nowrap; }
.jn-link { color: var(--muted); font-size: 13px; text-decoration: none; }
.jn-link:hover { color: var(--text); }
kbd { font-family: var(--jn-mono); }

/* ---------- the bar ---------- */
.jn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.jn-brand { display: flex; align-items: baseline; gap: 10px; }
.jn-brand h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.jn-save { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.jn-save::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .6; }
.jn-save:empty { display: none; }
.jn-save.busy::before { background: var(--gold); opacity: 1; }
.jn-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jn-filters[hidden] { display: none; }
.jn-search { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); }
.jn-search:focus-within { border-color: var(--accent); }
.jn-search input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; width: 170px; }
.jn-actions { display: flex; gap: 8px; }
.pf-msg { position: relative; padding-right: 36px; }
.jn-x { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.jn-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.jn-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: jn-pulse 1.2s ease-in-out infinite; }
@keyframes jn-pulse { 50% { opacity: .25; } }

/* ---------- panels ---------- */
.jn-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--jn-r); min-width: 0; }
.jn-phead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); min-height: 46px; }
.jn-count { font-family: var(--jn-mono); font-size: 11.5px; color: var(--muted); }
.jn-keys { display: inline-flex; gap: 3px; }
.jn-keys kbd { min-width: 18px; padding: 0 4px; font-size: 10.5px; color: var(--muted); }

/* ---------- key numbers ---------- */
.jn-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--border); border-radius: var(--jn-r); margin-bottom: 14px; overflow: hidden; }
.jn-kpi { position: relative; padding: 12px 16px 13px; min-width: 0; border-left: 1px solid var(--border); }
.jn-kpi:first-child { border-left: 0; }
.jn-kpi .v { margin-top: 6px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jn-kpi .v small { font-size: 13px; color: var(--muted); font-weight: 400; }
.jn-kpi .s { margin-top: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jn-kpi .meter { margin-top: 8px; height: 3px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.jn-kpi .meter i { display: block; height: 100%; background: var(--text); opacity: .75; }
.jn-kpi svg.spark { display: block; width: 100%; height: 22px; margin-top: 4px; overflow: visible; }
.jn-kpi svg.spark path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.jn-kpi svg.spark .u { stroke: var(--up); } .jn-kpi svg.spark .d { stroke: var(--down); }
.jn-kpi svg.spark line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.jn-kpi.gold .v { color: var(--gold); }
@media (max-width: 1250px) { .jn-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .jn-kpi:nth-child(5) { border-left: 0; } .jn-kpi:nth-child(n+5) { border-top: 1px solid var(--border); } }

/* ---------- the workspace: list + picked trade ---------- */
.jn-work { display: grid; grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.jn-list { position: sticky; top: 12px; display: flex; flex-direction: column; height: min(calc(100vh - 110px), 860px); min-height: 460px; }
.jn-scroll { overflow: auto; flex: 1; }
.jn-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.jn-table th { position: sticky; top: 0; z-index: 1; background: var(--panel); text-align: right; padding: 8px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; user-select: none; }
.jn-table th.l, .jn-table td.l { text-align: left; }
.jn-table th:hover, .jn-table th.sorted { color: var(--text); }
.jn-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); white-space: nowrap; }
.jn-table tbody tr { cursor: pointer; }
.jn-table tbody tr:hover td { background: var(--hover); }
.jn-table tbody tr.sel td { background: var(--accent-soft); }
.jn-table tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.jn-table .sym { font-family: inherit; }
.jn-table .sym b { font-weight: 600; font-size: 13px; }
.jn-table .sub { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; font-family: var(--jn-mono); }
.jn-table td.r { font-weight: 600; }
.jn-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.jn-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .7; }
.jn-dots i.bad { background: var(--gold); opacity: 1; }
.jn-side { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 6px; border-radius: 4px; border: 1px solid var(--border); font: 600 10px/15px var(--jn-mono); text-align: center; color: var(--muted); vertical-align: 1px; }
.jn-side.short { border-style: dashed; }
.jn-side.big { font-size: 11px; line-height: 18px; padding: 0 7px; margin: 0; }
.jn-fo { color: var(--muted); font-size: 10px; margin-left: 4px; }

.jn-detail { overflow: hidden; }
.jn-dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); min-height: 46px; }
.jn-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; min-width: 0; }
.jn-title b { font-size: 17px; letter-spacing: -.01em; }
.jn-title .muted { font-size: 12.5px; }
.jn-title .pnl { font-family: var(--jn-mono); font-weight: 600; font-size: 14px; }
.jn-dhead .jn-btn { height: 30px; font-size: 12.5px; }
.jn-dhead .jn-ibtn { width: 30px; height: 30px; }
.jn-chart { position: relative; height: clamp(320px, 52vh, 560px); background: var(--chart-bg); }
.jn-chartmsg { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; margin: 0; z-index: 3; color: var(--muted); font-size: 13px; }
.jn-replay { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.jn-replay[hidden] { display: none; }
.jn-transport { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.jn-transport button { width: 34px; height: 30px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
.jn-transport button:first-child { border-left: 0; }
.jn-transport button:hover { background: var(--hover); }
.jn-transport svg { width: 14px; height: 14px; }
.jn-transport .jn-play { width: 42px; }
.jn-transport .jn-play svg { fill: currentColor; }
.jn-transport .jn-play.on { background: var(--accent); color: var(--accent-fg); }
.jn-replay .jn-select { height: 30px; font-size: 12px; }
.jn-readout { font-size: 11.5px; color: var(--muted); }

.jn-dgrid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.jn-nums { display: grid; grid-template-columns: 1fr 1fr; align-content: start; border-right: 1px solid var(--border); }
.jn-nums > div { padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); min-width: 0; }
.jn-nums > div:nth-child(odd) { border-right: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.jn-nums > div > span { display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.jn-nums b { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jn-nums b small { font-size: 11px; font-weight: 400; color: var(--muted); }
.jn-nums .wide { grid-column: 1 / -1; border-right: 0 !important; }
.jn-small-note { grid-column: 1 / -1; font-size: 11.5px; margin: 0; padding: 8px 14px; color: var(--muted); }
.jn-review { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px 16px; padding: 14px 16px; align-content: start; }
.jn-review .jn-field:nth-child(n+2) { grid-column: 1 / -1; }
.jn-review .jn-field:first-child { grid-column: 1; }
.jn-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text); }
.jn-field > small, .jn-set small { font-weight: 400; color: var(--muted); font-size: 12px; }
.jn-field input, .jn-field textarea, .jn-field select { font: inherit; font-size: 13px; color: var(--text); background: var(--input); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; outline: 0; resize: vertical; }
.jn-field input:focus, .jn-field textarea:focus, .jn-field select:focus { border-color: var(--accent); }
.jn-field ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.jn-field li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.jn-field li .spacer { flex: 1; }
.jn-field li button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.jn-field li button:hover { color: var(--down); background: var(--hover); }
.jn-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jn-tags .chip { padding: 4px 11px; font-size: 12.5px; }
.jn-tags .chip.jn-mis.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); box-shadow: none; }
.jn-tags .chip.jn-add { border-style: dashed; color: var(--muted); }
.jn-newtag { width: 130px; font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent); background: var(--input); color: var(--text); outline: 0; }
.jn-fillbox { border-top: 1px solid var(--border); }
.jn-fillbox summary { cursor: pointer; padding: 9px 14px; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.jn-fillbox summary:hover { color: var(--text); }
.jn-fills { font-size: 12px; display: grid; gap: 3px; padding: 0 14px 12px; font-family: var(--jn-mono); }
.jn-fills > div { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }

/* ---------- performance and breakdown ---------- */
.jn-analytics { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-bottom: 20px; align-items: start; }
.jn-perfbody { padding: 12px 14px; min-height: 300px; }
.jn-curve { height: 300px; border-radius: 8px; overflow: hidden; }
.jn-cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.jn-cal-nav b { font-size: 14px; min-width: 120px; }
.jn-cal-nav .jn-ibtn { width: 28px; height: 28px; }
.jn-cal-nav .sum { margin-left: auto; font-family: var(--jn-mono); font-size: 12px; color: var(--muted); }
.jn-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, .9fr); gap: 4px; }
.jn-cal .h { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 2px; }
.jn-cal .d { position: relative; min-height: 54px; border-radius: 7px; background: var(--panel-2); padding: 5px 6px; font-size: 11px; color: var(--muted); border: 1px solid transparent; text-align: left; font-family: inherit; }
.jn-cal .d.out { opacity: .35; }
.jn-cal .d.has { cursor: pointer; color: var(--text); }
.jn-cal .d.has:hover, .jn-cal .d.sel { border-color: var(--accent); }
.jn-cal .d.win { background: color-mix(in srgb, var(--up) var(--a, 18%), var(--panel-2)); }
.jn-cal .d.loss { background: color-mix(in srgb, var(--down) var(--a, 18%), var(--panel-2)); }
.jn-cal .d .n { position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--muted); }
.jn-cal .d .p { display: block; margin-top: 14px; font-family: var(--jn-mono); font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jn-cal .d .note { position: absolute; top: 5px; left: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--text); opacity: .6; }
.jn-cal .wk { border-radius: 7px; padding: 5px 6px; font-family: var(--jn-mono); font-size: 11px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; border: 1px dashed var(--border); }
.jn-cal .wk small { font-family: inherit; color: var(--muted); font-size: 10px; }
.jn-day { border-top: 1px solid var(--border); padding: 12px 14px; display: grid; gap: 10px; }
.jn-day[hidden] { display: none; }
.jn-day-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jn-day-head b { font-size: 14px; }
.jn-mood { display: inline-flex; gap: 4px; }
.jn-mood button { border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.jn-mood button.on { color: var(--text); background: var(--accent-soft); border-color: var(--sel-border, var(--accent)); }
.jn-day textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; color: var(--text); background: var(--input); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; outline: 0; resize: vertical; }
.jn-day textarea:focus { border-color: var(--accent); }
.jn-day-trades { display: flex; flex-wrap: wrap; gap: 6px; }
.jn-day-trades button { border: 1px solid var(--border); background: var(--panel-2); color: var(--text); border-radius: 8px; padding: 4px 9px; font: inherit; font-size: 12px; cursor: pointer; }
.jn-day-trades button:hover { border-color: var(--accent); }
.jn-day-trades b { font-family: var(--jn-mono); font-weight: 600; margin-left: 6px; }

.jn-hist, .jn-scatter { display: block; width: 100%; height: auto; }
.jn-hist rect.u { fill: var(--up); } .jn-hist rect.d { fill: var(--down); }
.jn-hist text, .jn-scatter text { fill: var(--muted); font-size: 10.5px; font-family: var(--jn-mono); }
.jn-hist line, .jn-scatter line { stroke: var(--border); stroke-width: 1; }
.jn-hist line.zero, .jn-scatter line.zero { stroke: var(--muted); stroke-dasharray: 3 3; }
.jn-scatter circle { stroke-width: 1.5; cursor: pointer; }
.jn-scatter circle.u { fill: color-mix(in srgb, var(--up) 30%, transparent); stroke: var(--up); }
.jn-scatter circle.d { fill: color-mix(in srgb, var(--down) 30%, transparent); stroke: var(--down); }
.jn-scatter circle:hover { stroke-width: 3; }
.jn-caption { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.jn-caption b { color: var(--text); font-weight: 600; }

.jn-bd .jn-phead { flex-wrap: wrap; }
.jn-bd .seg.small { flex-wrap: wrap; }
.jn-breakdown { max-height: 330px; overflow: auto; }
.jn-breakdown .jn-table td { padding: 7px 12px; }
.jn-breakdown .jn-table th { padding: 7px 12px; cursor: default; }
.jn-breakdown tbody tr[data-filter=""] { cursor: default; }
.jn-breakdown td small { color: var(--muted); font-size: 11px; margin-left: 4px; font-family: inherit; }
.jn-hbar { width: 24%; min-width: 60px; }
.jn-hbar span { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
.jn-hbar span.up { background: var(--up); }
.jn-hbar span.down { background: var(--down); }
.jn-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.jn-facts > div { padding: 10px 14px; border-left: 1px solid var(--border); min-width: 0; }
.jn-facts > div:first-child { border-left: 0; }
.jn-facts b { display: block; margin-top: 4px; font-family: var(--jn-mono); font-size: 14px; font-weight: 600; white-space: nowrap; }
.jn-facts small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- empty state ---------- */
.jn-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; }
.jn-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 44px 28px; border: 1.5px dashed var(--border); border-radius: var(--jn-r); background: var(--panel); min-height: 300px; transition: border-color .15s, background .15s; }
.jn-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.jn-drop > svg { width: 34px; height: 34px; color: var(--muted); }
.jn-drop b { font-size: 17px; }
.jn-drop small { color: var(--muted); font-size: 12.5px; }
.jn-brokers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.jn-brokers > div { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.jn-brokers > div b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.jn-brokers > div.full { grid-column: 1 / -1; }
.jn-brokers code { font-size: 11.5px; }

/* ---------- settings ---------- */
.jn-dlg { width: min(560px, 94vw); max-height: 92vh; padding: 0; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.jn-dlg::backdrop { background: rgba(0, 0, 0, .55); }
.jn-set { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px; }
.jn-set h3 { margin: 0; }
.jn-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.jn-check input { margin-top: 3px; accent-color: var(--accent); }
.jn-dlg-btns { display: flex; gap: 8px; align-items: center; position: sticky; bottom: -20px; background: var(--panel); padding: 10px 0 0; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .jn-work { grid-template-columns: 1fr; }
  .jn-list { position: static; height: 380px; min-height: 0; }
  .jn-analytics { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .jn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jn-kpi { border-left: 0 !important; border-top: 1px solid var(--border); padding: 10px 12px; }
  .jn-kpi:nth-child(-n+2) { border-top: 0; }
  .jn-kpi:nth-child(even) { border-left: 1px solid var(--border) !important; }
  .jn-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .jn-kpi .v { font-size: 18px; }
  .jn-dgrid { grid-template-columns: 1fr; }
  .jn-nums { border-right: 0; }
  .jn-review { grid-template-columns: 1fr; }
  .jn-chart { height: 340px; }
  .jn-empty { grid-template-columns: 1fr; }
  .jn-brokers { grid-template-columns: 1fr; }
  .jn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jn-facts > div:nth-child(3) { border-left: 0; }
  .jn-facts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .jn-search input { width: 120px; }
  .jn-cal .d { min-height: 42px; padding: 3px 4px; }
  .jn-cal .d .p { font-size: 10px; margin-top: 12px; }
  .jn-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .jn-cal .wk, .jn-cal .h.wkh { display: none; }
  .jn-actions .jn-btn.primary { padding: 0 11px; }
}

/* ---------- the website demo ---------- */
.jn-demo-tag { margin-left: 14px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: var(--gold); background: var(--gold-soft); white-space: nowrap; }
.jn-demo header.h-nav .spacer { flex: 1; }
.jn-gh { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.jn-gh:hover { background: rgba(255, 255, 255, .045); }
[data-theme="light"] .jn-gh { border-color: rgba(0, 0, 0, .14); }
[data-theme="light"] .jn-gh:hover { background: rgba(0, 0, 0, .03); }
.jn-gh svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
@media (max-width: 640px) {
  .jn-demo-tag { margin-left: 8px; padding: 3px 8px; font-size: 11.5px; }
  .jn-demo header.h-nav { gap: 6px; padding-left: 14px; padding-right: 14px; }
  .jn-demo header.h-nav .h-brand span { display: none; }
  .jn-demo header.h-nav .h-btn { padding: 8px 12px; white-space: nowrap; }
  .jn-gh { margin-right: 0; padding: 8px 10px; }
  .jn-gh span { display: none; }
}
@media (max-width: 760px) {
  .jn-breakdown .jn-hbar { display: none; }
  .jn-breakdown .jn-table td, .jn-breakdown .jn-table th { padding: 7px 8px; }
}
