/* In-Trade Log — her chart's colours: blue candles up, pink candles down,
   purple session bands, teal levels. Neon glow around the box. */
:root {
  --bg: rgba(20, 16, 26, 0.95); --bg2: rgba(190, 140, 255, 0.07); --bg3: rgba(190, 140, 255, 0.14);
  --line: rgba(200, 160, 255, 0.16); --fg: #f1ecf7; --dim: #a79cb8; --dimmer: #6d6480;
  --pink: #ff5fc8; --purple: #a26bff; --blue: #4fb3ff; --teal: #35e0c0; --lilac: #c9a7ff; --gold: #f2c86b;
  --accent: var(--pink); --accent-ink: #1a1020;
  --amber: #f0a642; --amber-bg: rgba(240,166,66,0.16);
  --red: #ff5fa8; --red-bg: rgba(255,95,168,0.14); --green: #35e0c0; --green-bg: rgba(53,224,192,0.14);
  --glow: #ff4fd8;
  --mono: "SF Mono", Menlo, monospace; --sans: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
}
body.light {
  --bg: rgba(250, 246, 252, 0.97); --bg2: rgba(120, 60, 200, 0.06); --bg3: rgba(120, 60, 200, 0.12); --line: rgba(120, 60, 200, 0.18);
  --fg: #221a2c; --dim: #6f6482; --dimmer: #aaa2b8;
  --pink: #d8299f; --purple: #7a45e6; --blue: #1f7fd6; --teal: #12a58a; --lilac: #8a5ce6; --gold: #b58a1c;
  --accent: var(--pink); --accent-ink: #fff;
  --amber: #c27d12; --amber-bg: rgba(194,125,18,0.14); --red: #d8299f; --red-bg: rgba(216,41,159,0.12); --green: #12a58a; --green-bg: rgba(18,165,138,0.14);
}
body.glow-pink { --glow: #ff4fd8; } body.glow-purple { --glow: #a26bff; } body.glow-blue { --glow: #3fb6ff; } body.glow-teal { --glow: #2fe6c2; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: transparent; height: 100%; }
body { font-family: var(--sans); color: var(--fg); -webkit-font-smoothing: antialiased; user-select: none; overflow: hidden; font-size: 13px; padding: 6px; }
.drag { -webkit-app-region: drag; }
.nodrag, button, input, select, textarea, a, .thumbs, .row-click { -webkit-app-region: no-drag; }

/* pill — her candle chart in a circle */
#pill { display: none; width: 64px; height: 64px; border-radius: 50%; background: #16121e; border: 1px solid var(--line); position: relative; cursor: pointer; align-items: center; justify-content: center; -webkit-app-region: no-drag; overflow: visible; }
body.pill #pill { display: flex; }
body.pill #panel { display: none; }
body.glow #pill { border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow), 0 0 12px color-mix(in srgb, var(--glow) 65%, transparent), 0 0 26px color-mix(in srgb, var(--glow) 30%, transparent); }
#pill:hover { transform: scale(1.04); } #pill:active { cursor: grabbing; }
#head { cursor: grab; } #head:active { cursor: grabbing; }
#pill svg { width: 58px; height: 58px; }
#pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dimmer); position: absolute; top: 4px; right: 4px; border: 2px solid #16121e; }
#pill .dot.open { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
#pill .dot.rec { background: var(--pink); animation: blink 1s infinite; box-shadow: 0 0 8px var(--pink); }
#pill .sub { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 9px; color: #fff; background: rgba(20,16,26,.9); padding: 0 5px; border-radius: 6px; border: 1px solid var(--line); white-space: nowrap; }
#pill .sub:empty { display: none; }
#pill.busy svg { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* panel */
#panel { display: flex; flex-direction: column; height: calc(100vh - 12px); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
body.glow #panel { border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow), 0 0 14px color-mix(in srgb, var(--glow) 60%, transparent), 0 0 34px color-mix(in srgb, var(--glow) 26%, transparent); }
#head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,95,200,0.10), rgba(162,107,255,0.10) 60%, transparent); }
#head .t { flex: 1; min-width: 0; }
#head .title { font-size: 10px; letter-spacing: .18em; font-weight: 800; color: var(--pink); }
#head .ctx { font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lilac); }
button.icon { background: transparent; border: 0; color: var(--dim); font-size: 14px; width: 26px; height: 24px; border-radius: 6px; cursor: pointer; }
button.icon:hover { background: var(--bg2); color: var(--fg); }
#tabs { display: flex; gap: 2px; padding: 6px 8px 0; }
#tabs button { flex: 1; background: transparent; border: 0; color: var(--dim); padding: 7px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; border-bottom: 2px solid transparent; cursor: pointer; }
#tabs button.on { color: var(--fg); border-image: linear-gradient(90deg, var(--pink), var(--purple)) 1; }
#body { flex: 1; overflow-y: auto; padding: 10px 12px 14px; }
#body::-webkit-scrollbar { width: 6px; } #body::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
#toast { position: absolute; left: 18px; right: 18px; bottom: 18px; background: linear-gradient(90deg, var(--pink), var(--purple)); color: #fff; padding: 9px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: .2s; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
#toast.show { opacity: 1; transform: none; }

/* controls */
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255,95,200,.2); }
input.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
textarea { resize: vertical; min-height: 56px; line-height: 1.4; }
button.b { background: var(--bg2); border: 1px solid var(--line); color: var(--fg); padding: 7px 10px; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 600; }
button.b:hover { background: var(--bg3); border-color: var(--lilac); }
button.b.primary { background: linear-gradient(90deg, var(--pink), var(--purple)); color: #fff; border-color: transparent; }
button.b.danger { color: var(--pink); }
button.b.rec { background: var(--red-bg); color: var(--pink); border-color: var(--pink); box-shadow: 0 0 12px rgba(255,95,200,.35); }
button.b.sm { padding: 4px 8px; font-size: 12px; font-weight: 500; }
button:disabled { opacity: .4; cursor: default; }

.sec { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.012); }
.sec > .h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; font-size: 10.5px; letter-spacing: .14em; font-weight: 800; color: var(--lilac); }
.sec > .h::before { content: "▶"; font-size: 8px; transition: transform .15s; color: var(--dimmer); }
.sec.open > .h::before { transform: rotate(90deg); }
.sec > .h .r { margin-left: auto; font-weight: 500; letter-spacing: 0; font-size: 11px; color: var(--dim); font-family: var(--mono); }
.sec > .c { display: none; padding: 4px 10px 10px; }
.sec.open > .c { display: block; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.f { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; min-width: 0; }
.f label { font-size: 10.5px; color: var(--dim); letter-spacing: .06em; display: flex; justify-content: space-between; align-items: baseline; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; background: transparent; border: 0; color: var(--dim); padding: 6px; cursor: pointer; font: inherit; font-weight: 600; }
.seg button.on { background: linear-gradient(90deg, var(--pink), var(--purple)); color: #fff; }
.kv { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; padding: 3px 0; color: var(--dim); font-variant-numeric: tabular-nums; }
.kv b { color: var(--fg); font-weight: 600; }
.pos { color: var(--teal) !important; } .neg { color: var(--pink) !important; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.thumbs img { width: 92px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.thumbs .th { position: relative; }
.thumbs .th .k { position: absolute; left: 4px; bottom: 4px; font-size: 9px; background: rgba(20,16,26,.75); color: var(--lilac); padding: 1px 4px; border-radius: 4px; }
.note { font-size: 12px; color: var(--dim); line-height: 1.45; }
.vn { border-top: 1px solid var(--line); padding: 6px 0; font-size: 12px; }
.vn .meta { font-family: var(--mono); font-size: 10.5px; color: var(--blue); display: flex; gap: 8px; align-items: center; }
.vn audio { width: 100%; height: 26px; margin-top: 4px; }
.live { background: var(--red-bg); border: 1px solid var(--pink); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-height: 40px; box-shadow: 0 0 14px rgba(255,95,200,.25); margin-bottom: 10px; }
.reasons { display: flex; flex-direction: column; gap: 4px; }
.reasons button { text-align: left; background: var(--bg2); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 7px 10px; cursor: pointer; font: inherit; }
.reasons button.on { border-color: var(--pink); background: var(--red-bg); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.actions button { flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.tile { background: var(--bg2); border-radius: 10px; padding: 8px 10px; border: 1px solid var(--line); }
.tile:nth-child(1) { border-color: rgba(79,179,255,.35); } .tile:nth-child(2) { border-color: rgba(162,107,255,.35); } .tile:nth-child(3) { border-color: rgba(255,95,200,.35); }
.tile .l { font-size: 9.5px; letter-spacing: .1em; color: var(--dim); font-weight: 800; }
.tile .v { font-family: var(--mono); font-size: 18px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 10.5px; color: var(--dim); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 10px; letter-spacing: .08em; color: var(--lilac); font-weight: 800; }
td.n, th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr.row-click { cursor: pointer; } tr.row-click:hover td { background: var(--bg2); }
.pattern { border: 1px solid rgba(255,95,200,.4); border-radius: 12px; padding: 10px; margin: 10px 0; background: linear-gradient(135deg, rgba(255,95,200,0.08), rgba(162,107,255,0.08)); }
.pattern .l { font-size: 10.5px; letter-spacing: .14em; font-weight: 800; color: var(--pink); margin-bottom: 6px; }
.card { background: linear-gradient(135deg, rgba(162,107,255,0.12), rgba(79,179,255,0.08)); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; }
.card h3 { font-size: 11px; letter-spacing: .12em; color: var(--lilac); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 11px; background: rgba(162,107,255,0.18); color: var(--lilac); border-radius: 6px; padding: 2px 7px; }
.list-edit { display: flex; flex-direction: column; gap: 4px; }
.list-edit div { display: flex; gap: 6px; }
.status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--dimmer); }
.status.ok { background: var(--teal); box-shadow: 0 0 6px var(--teal); } .status.bad { background: var(--amber); }
kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--lilac); }
.empty { text-align: center; color: var(--dim); padding: 26px 10px; font-size: 12.5px; line-height: 1.5; }

/* trade card */
.tc { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: linear-gradient(180deg, rgba(162,107,255,0.10), transparent 70%); }
.tc .l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tc .l1 .who { font-size: 16px; font-weight: 800; }
.tc .l1 .who.long { color: var(--blue); } .tc .l1 .who.short { color: var(--pink); }
.tc .l1 .st { font-family: var(--mono); font-size: 11px; color: var(--teal); }
.tc .l1 .st.closed { color: var(--dim); }
.tc .l2 { font-size: 11px; color: var(--dim); margin-top: 2px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.nums > div { background: var(--bg2); border-radius: 9px; padding: 6px 8px; border-top: 2px solid var(--c, var(--line)); }
.nums .entry { --c: var(--blue); } .nums .stop { --c: var(--pink); } .nums .target { --c: var(--teal); } .nums .rr { --c: var(--purple); }
.nums .k { font-size: 9.5px; letter-spacing: .1em; color: var(--dim); font-weight: 800; display: flex; justify-content: space-between; }
.nums .v { font-family: var(--mono); font-size: 14px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c, var(--fg)); }
.nums .v.empty { color: var(--dimmer); font-weight: 400; }
.nums .sug { font-size: 10.5px; color: var(--amber); cursor: pointer; margin-top: 2px; }
.res { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.res .r { font-family: var(--mono); font-size: 22px; font-weight: 800; }
.res .why { font-size: 12px; color: var(--lilac); text-align: right; }
.talk { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.talk button { padding: 14px 8px; font-size: 14px; border-radius: 14px; border: 1px solid transparent; color: #fff; font-weight: 800; }
.talk button:first-child { background: linear-gradient(135deg, #3f8fe0, #6c5ce7); box-shadow: 0 0 16px rgba(79,179,255,.3); }
.talk button:last-child { background: linear-gradient(135deg, #ff5fc8, #a26bff); box-shadow: 0 0 16px rgba(255,95,200,.3); }
.talk button.rec { background: linear-gradient(135deg, #ff3d8f, #ff5fc8); animation: recpulse 1.2s infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 26px rgba(255,95,200,.7); } }
.talk button span { display: block; font-size: 20px; margin-bottom: 3px; }
.chips-open { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.chips-open button { background: var(--bg2); border: 1px solid var(--line); color: var(--dim); border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.chips-open button.on { color: var(--fg); border-color: var(--pink); }
.badge { font-size: 9px; font-family: var(--mono); padding: 0 4px; border-radius: 4px; background: var(--green-bg); color: var(--teal); font-weight: 700; }
.badge.low { background: var(--amber-bg); color: var(--amber); }

#pill img.own { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
#pill.own svg { display: none; }

/* ---------- Journal tab ---------- */
.jnav { display: flex; align-items: center; gap: 8px; }
.jnav button { background: var(--bg2); border: 1px solid var(--line); color: var(--lilac); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 12px; }
.jnav button:hover { border-color: var(--pink); color: var(--pink); }
.jwhen { flex: 1; text-align: center; min-width: 0; }
.jwhen b { display: block; font-size: 15px; font-weight: 800; }
.jwhen span { font-size: 10.5px; color: var(--dim); }
.jfilters { margin-bottom: 8px; }
.jsearch { margin-bottom: 6px; }
.jrow { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; }
.jlbl { font-size: 9px; letter-spacing: .12em; font-weight: 800; color: var(--dimmer); width: 44px; flex: none; padding-top: 6px; }
.jchips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.jchips button { background: var(--bg2); border: 1px solid var(--line); color: var(--dim); border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 11.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.jchips button:hover { border-color: var(--lilac); color: var(--fg); }
.jchips button.on { background: linear-gradient(90deg, var(--pink), var(--purple)); color: #fff; border-color: transparent; }
.jchips button i { font-style: normal; font-size: 10px; opacity: .6; font-family: var(--mono); }
.jsum { display: flex; gap: 6px; margin: 8px 0 10px; }
.jsum div { flex: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; text-align: center; }
.jsum span { display: block; font-size: 9px; letter-spacing: .1em; color: var(--dim); font-weight: 800; }
.jsum b { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.jday { font-size: 10px; letter-spacing: .14em; font-weight: 800; color: var(--lilac); margin: 12px 0 6px; }
.jcard { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; cursor: pointer; background: rgba(255,255,255,0.012); }
.jcard.short { border-left-color: var(--pink); }
.jcard:hover { border-color: var(--lilac); border-left-color: var(--pink); }
.jtop { display: flex; align-items: baseline; gap: 8px; }
.jt { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--fg); }
.jt i { font-style: normal; font-size: 9px; color: var(--dimmer); margin-left: 3px; }
.jwho { flex: 1; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr { font-family: var(--mono); font-size: 14px; font-weight: 800; }
.jmeta { font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.jpx { font-family: var(--mono); font-size: 11.5px; color: var(--lilac); margin-top: 4px; }
.jout { font-size: 11.5px; color: var(--gold); margin-top: 4px; }
.jnote { font-size: 12.5px; line-height: 1.45; margin-top: 5px; white-space: pre-line; }
.jshots { display: flex; gap: 4px; margin-top: 6px; }
.jshots img { width: 54px; height: 34px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); }

/* ---------- Journal: filters collapse, sessions, day scoring ---------- */
#tabs button { font-size: 11.5px; letter-spacing: 0; }
.jbar { display: flex; gap: 6px; margin-bottom: 8px; }
.jtoggle { flex: 1; background: var(--bg2); border: 1px solid var(--line); color: var(--dim); border-radius: 9px; padding: 6px 8px; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.jtoggle:hover { border-color: var(--lilac); color: var(--fg); }
.jtoggle.on { color: var(--fg); border-color: var(--pink); }
.jtoggle i { font-style: normal; font-family: var(--mono); font-size: 10px; background: var(--pink); color: #fff; border-radius: 5px; padding: 0 4px; margin-left: 4px; }
.jfilters.shut { display: none; }
.jsess { font-size: 9.5px; letter-spacing: .14em; font-weight: 800; color: var(--lilac); margin: 10px 0 5px; display: flex; align-items: baseline; gap: 8px; }
.jsess i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0; margin-left: auto; }
.jsess.asia { color: var(--blue); } .jsess.london { color: var(--purple); } .jsess.newyork { color: var(--gold); }

.sld { margin-bottom: 12px; }
.sld.unset { opacity: .55; }
.sh { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 600; }
.sh b { font-family: var(--mono); font-size: 15px; font-weight: 800; }
.se { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--dimmer); margin-top: -2px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; padding: 0; border: 0; margin: 4px 0 2px; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--teal)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--purple); margin-top: -8px; cursor: grab; box-shadow: 0 0 10px rgba(255,95,200,.5); }
input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }

.jline { display: flex; align-items: baseline; gap: 8px; padding: 5px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 12.5px; }
.jline:hover { background: var(--bg2); }
.jline .t { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.jline .w { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jline .o { font-size: 10.5px; color: var(--gold); white-space: nowrap; }
.jline .r { font-family: var(--mono); font-weight: 700; min-width: 52px; text-align: right; }

.strip { display: flex; gap: 3px; align-items: flex-end; }
.sday { flex: 1; cursor: pointer; text-align: center; border-radius: 7px; padding: 3px 1px; }
.sday:hover { background: var(--bg2); }
.sday.on { background: var(--bg3); outline: 1px solid var(--pink); }
.sday .bar { height: 48px; display: flex; align-items: flex-end; justify-content: center; }
.sday .bar i { display: block; width: 70%; border-radius: 3px 3px 0 0; }
.sday .rbar { height: 28px; display: flex; align-items: flex-start; justify-content: center; margin-top: 2px; }
.sday .rbar i { display: block; width: 70%; border-radius: 0 0 3px 3px; }
.sday span { font-size: 8.5px; color: var(--dim); display: block; margin-top: 2px; }

/* mic on a box, and the compact log row */
.mic { background: var(--bg2); border: 1px solid var(--line); color: var(--lilac); border-radius: 8px; width: 30px; height: 30px; flex: none; cursor: pointer; font-size: 13px; }
.mic:hover { border-color: var(--pink); color: var(--pink); }
.mic.rec { background: var(--red-bg); border-color: var(--pink); color: var(--pink); animation: recpulse 1.2s infinite; }
.f label .mic { width: 24px; height: 22px; font-size: 11px; margin-left: auto; }
.lrow { display: flex; align-items: baseline; gap: 8px; padding: 7px 8px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; border-left: 3px solid var(--blue); }
.lrow.short { border-left-color: var(--pink); }
.lrow:hover { background: var(--bg2); }
.lrow.open { background: var(--bg2); border-bottom: 0; }
.lt { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.lw { font-weight: 700; white-space: nowrap; }
.lp { flex: 1; font-family: var(--mono); font-size: 11.5px; color: var(--lilac); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr { font-family: var(--mono); font-weight: 800; min-width: 54px; text-align: right; }
.lc { color: var(--dimmer); font-size: 10px; width: 10px; }
.ldet { padding: 2px 10px 10px; border-bottom: 1px solid var(--line); background: var(--bg2); border-radius: 0 0 10px 10px; margin-bottom: 6px; }
table.hist td, table.hist th { padding: 4px 4px; }
table.hist tr.on td { background: var(--bg3); }
table.hist .w { color: var(--teal); font-size: 10px; }

/* ---------- the day, drawn ---------- */
.gtitle { font-size: 9px; letter-spacing: .14em; font-weight: 800; color: var(--dim); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.gtitle span { font-family: var(--mono); font-size: 13px; font-weight: 800; letter-spacing: 0; }
.curve { width: 100%; height: auto; display: block; }
.gaxis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--dimmer); margin-top: -2px; }
.grow { display: flex; gap: 10px; margin-top: 12px; }
.gcell { flex: 1; min-width: 0; }
.donut { width: 100%; max-width: 96px; height: auto; display: block; margin: 2px auto 0; }
.donut .dc { fill: var(--fg); font-size: 15px; font-weight: 800; font-family: var(--mono); }
.donut .ds { fill: var(--dim); font-size: 7.5px; letter-spacing: .06em; }
.glegend { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.glegend span { font-size: 10px; color: var(--dim); display: flex; align-items: center; gap: 4px; }
.glegend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.sbar { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.sbar .n { font-size: 11px; width: 76px; flex: none; color: var(--dim); }
.sbar .t { flex: 1; height: 9px; background: var(--bg2); border-radius: 5px; display: flex; justify-content: center; overflow: hidden; }
.sbar .t i { display: block; height: 100%; }
.sbar .t i.neg { background: var(--pink); border-radius: 5px 0 0 5px; }
.sbar .t i.pos { background: var(--teal); border-radius: 0 5px 5px 0; }
.sbar .v { font-family: var(--mono); font-size: 11.5px; font-weight: 700; width: 54px; text-align: right; }

/* the day at a glance, above everything */
.gwrap { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; margin: 8px 0 10px; background: linear-gradient(180deg, rgba(162,107,255,0.10), transparent 60%); }
.gwrap .jsum { margin: 0 0 8px; }
.gline { font-size: 12px; color: var(--lilac); margin-bottom: 10px; }

/* what she wrote, in brief, at the top */
.brief { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; cursor: pointer; }
.brief.empty { font-size: 12px; color: var(--dim); }
.brief:hover { opacity: .85; }
.br { margin-bottom: 7px; }
.br:last-child { margin-bottom: 0; }
.br span { font-size: 8.5px; letter-spacing: .14em; font-weight: 800; color: var(--dimmer); display: block; }
.br p { font-size: 12.5px; line-height: 1.4; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brief .bl { font-size: 8.5px; letter-spacing: .14em; font-weight: 800; color: var(--dimmer); display: block; }
.brief .bp { font-size: 13px; line-height: 1.5; margin-top: 3px; }
.brief .bre { float: right; background: transparent; border: 0; color: var(--dimmer); cursor: pointer; font-size: 13px; }
.brief .bre:hover { color: var(--pink); }
.brief { cursor: default; }
.snote { display: flex; gap: 5px; align-items: center; margin-top: 5px; }
.snote input { font-size: 12px; padding: 5px 7px; }
.snote .mic { width: 26px; height: 26px; font-size: 11px; }
