/* LUMOS Stats — Telegram Mini App skin.
   Tokens and component recipes follow the LUMOS desktop app (skin/ref/base.css 0.1.35+):
   one navy ink, yellow fills always with a navy edge, 2px navy card edges, 1.5px pill edges,
   caps labels, Inter Tight with tabular numbers, Pinyon script capitals, sun badges, sparkles. */

/* ------------------------------------------------------------------ fonts */
@font-face{font-family:'Inter Tight';font-weight:400;font-display:block;src:url('../assets/fonts/InterTight-400.woff2') format('woff2')}
@font-face{font-family:'Inter Tight';font-weight:500;font-display:block;src:url('../assets/fonts/InterTight-500.woff2') format('woff2')}
@font-face{font-family:'Inter Tight';font-weight:600;font-display:block;src:url('../assets/fonts/InterTight-600.woff2') format('woff2')}
@font-face{font-family:'Lumos Script';font-weight:400;font-display:block;src:url('../assets/fonts/PinyonScript-Regular.woff2') format('woff2')}

/* ------------------------------------------------------------------ tokens (light is primary) */
:root{
  --font:'Inter Tight',system-ui,-apple-system,'Segoe UI',sans-serif;
  --script:'Lumos Script',cursive;
  --ink:#0b1026; --ink2:#3e4a72; --muted:#5a6990;
  --sheet:#fdfdfd; --paper:#fff; --paper2:#f6f7fb; --paper3:#eef0f6;
  --line:rgba(11,16,38,.13); --line2:rgba(11,16,38,.24); --hair:rgba(11,16,38,.09);
  --edge:#0b1026; --edge-pill:#0b1026;
  --yellow:#f4f520; --on-yellow:#0b1026; --yellow-pale:#fefdb7; --yellow-faint:#fffee6;
  --sky:#30b6f2; --sky-text:#0973ab; --teal:#19a8c0; --sl:#0a78b0; --focus:#1a9ad6;
  --profit:#0f7b53; --profit-soft:#d9f2e6; --loss-soft:#e6e9f3; --be-soft:#f6f7fb; --be-hatch:rgba(11,16,38,.09);
  --shadow:0 18px 44px -30px rgba(64,56,170,.38);
  --sparkle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1C12.7 8.2 15.8 11.3 23 12C15.8 12.7 12.7 15.8 12 23C11.3 15.8 8.2 12.7 1 12C8.2 11.3 11.3 8.2 12 1Z' fill='%23f1eeff' stroke='%23aea4e0' stroke-width='.7'/%3E%3C/svg%3E");
  --sparkle-butter:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1C12.7 8.2 15.8 11.3 23 12C15.8 12.7 12.7 15.8 12 23C11.3 15.8 8.2 12.7 1 12C8.2 11.3 11.3 8.2 12 1Z' fill='%23fdfbe0' stroke='%23d6cf74' stroke-width='.7'/%3E%3C/svg%3E");
  --arrow-head:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M1.8 1.6L10.8 8L1.8 14.4' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --gutter:16px;
  color-scheme:light;
}
/* dark: the same product on a deep-navy night sheet; the yellow stays yellow with navy text */
:root[data-theme=dark]{
  --ink:#eef0fa; --ink2:#c4c9e0; --muted:#a7afcf;
  --sheet:#0b0e20; --paper:#141a33; --paper2:#1b2242; --paper3:#252d52;
  --line:rgba(238,240,250,.13); --line2:rgba(238,240,250,.24); --hair:rgba(238,240,250,.09);
  --edge:#eef0fa; --edge-pill:#eef0fa;
  --yellow-pale:rgba(244,245,32,.2); --yellow-faint:rgba(244,245,32,.08);
  --sky-text:#7fd0f5; --sl:#7fd0f5; --focus:#4cc2f5;
  --profit:#5fd3a4; --profit-soft:rgba(95,211,164,.15); --loss-soft:rgba(238,240,250,.08); --be-soft:rgba(238,240,250,.03); --be-hatch:rgba(238,240,250,.1);
  --shadow:0 18px 44px -26px rgba(0,0,0,.7);
  --sparkle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1C12.7 8.2 15.8 11.3 23 12C15.8 12.7 12.7 15.8 12 23C11.3 15.8 8.2 12.7 1 12C8.2 11.3 11.3 8.2 12 1Z' fill='%23eef0fa'/%3E%3C/svg%3E");
  --sparkle-butter:var(--sparkle);
  color-scheme:dark;
}

/* ------------------------------------------------------------------ base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:var(--tg-viewport-stable-height,100vh);background:var(--sheet);color:var(--ink);
  font:400 15px/1.4 var(--font);font-variant-numeric:tabular-nums;font-feature-settings:'tnum' 1;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-appearance:none;appearance:none}
button:disabled{cursor:default}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
::selection{background:var(--yellow);color:var(--on-yellow)}
h1,h2,h3,p,ul,dl,dd{margin:0}
ul{padding:0;list-style:none}
[hidden]{display:none!important}

.page{position:relative;max-width:480px;margin:0 auto;
  padding:calc(10px + var(--tg-safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px))
          calc(var(--gutter) + var(--tg-safe-area-inset-right,0px) + var(--tg-content-safe-area-inset-right,0px))
          calc(20px + var(--tg-safe-area-inset-bottom,0px) + var(--tg-content-safe-area-inset-bottom,0px))
          calc(var(--gutter) + var(--tg-safe-area-inset-left,0px) + var(--tg-content-safe-area-inset-left,0px))}
.stack{display:grid;gap:16px}
.stack>*,.foot>*{min-width:0}

/* ------------------------------------------------------------------ shared atoms */
.caps{font:600 12px/1.2 var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--ink2)}
.win{color:var(--profit)}
.nowrap,.one-line{white-space:nowrap}
.cur{font-size:.5em;font-weight:500;letter-spacing:0;margin-left:.1em;color:var(--ink2)}

.card{position:relative;background:var(--paper);border-radius:14px;box-shadow:inset 0 0 0 2px var(--edge),var(--shadow);padding:16px}
.card-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:12px}
.card-title{font:500 19px/1.2 var(--font);letter-spacing:-.015em}
.card-meta{margin-left:auto;font-size:13px;color:var(--muted)}
.card-sub{margin-top:3px;font-size:13px;line-height:1.3;color:var(--muted)}

/* pills, chips, round buttons (1.5px navy edge, weight 500) */
.pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px 0 14px;border-radius:999px;
  background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--edge-pill);font:500 14.5px/1.15 var(--font);letter-spacing:-.005em}
.pill.yellow{background:var(--yellow);color:var(--on-yellow);box-shadow:inset 0 0 0 1.5px #0b1026}
button.pill:hover{background:var(--yellow-faint)}
button.pill.yellow:hover{background:#ecee12}
.pill.yellow .arrow{--arrow-color:#0b1026;--aw:34px}
.round{display:inline-grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--paper);color:var(--ink);
  box-shadow:inset 0 0 0 1.5px var(--edge-pill)}
.round svg{width:20px;height:20px}
.round:hover:not(:disabled){background:var(--yellow-faint)}
.round:disabled{color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line2)}
.count{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 9px;border-radius:999px;
  box-shadow:inset 0 0 0 1.5px var(--edge-pill);font:600 14px/1 var(--font)}
.chip{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 11px;border-radius:999px;background:var(--paper);
  box-shadow:inset 0 0 0 1.2px var(--edge-pill);font:600 12.5px/1 var(--font);white-space:nowrap}
.chip.dim{color:var(--muted);font-weight:500;box-shadow:inset 0 0 0 1px var(--line2)}
.dir{min-width:76px;justify-content:center;font-size:13.5px;background:var(--yellow);color:var(--on-yellow);box-shadow:inset 0 0 0 1.2px #0b1026}
.dir.short{background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 1.2px var(--edge-pill)}

/* long thin LUMOS arrow (sky -> navy), drawn with a mask so it follows the theme */
.arrow{display:inline-block;flex:none;width:var(--aw,30px);height:16px;vertical-align:middle;
  background:var(--arrow-color,linear-gradient(90deg,var(--sky) 0,var(--ink) 58%));
  -webkit-mask:var(--arrow-head) right center/12px 16px no-repeat,linear-gradient(#000 0 0) left center/calc(100% - 1.8px) 1.9px no-repeat;
          mask:var(--arrow-head) right center/12px 16px no-repeat,linear-gradient(#000 0 0) left center/calc(100% - 1.8px) 1.9px no-repeat}
.arrow.left{transform:scaleX(-1);--arrow-color:var(--ink)}
.arrow.sky{--arrow-color:var(--sky)}

/* sun badge and 4-point sparkles (decoration only) */
.sun{display:inline-block;flex:none;width:var(--sun,44px);height:var(--sun,44px);background:url('../assets/img/sun.svg') center/contain no-repeat}
.spark{position:absolute;width:var(--s,22px);height:var(--s,22px);background:var(--sparkle) center/contain no-repeat;pointer-events:none}
.spark.butter{background-image:var(--sparkle-butter)}
:root[data-theme=dark] .spark{opacity:.85}

/* ------------------------------------------------------------------ top bar */
.top{display:flex;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font:500 22px/1 var(--font);letter-spacing:.02em}
.brand svg{width:31px;height:33px;flex:none}
.top .round{margin-left:auto}
.icon-moon,:root[data-theme=dark] .icon-sun{display:none}
:root[data-theme=dark] .icon-moon{display:block}
.meta-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0 22px}
.status{min-height:36px;padding:4px 15px 4px 13px;font-size:13.5px;text-align:center}
.dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--teal)}
.dot.stale{background:var(--muted)}
/* warning (the server serves its last MT5 read): pale yellow pill, yellow dot with a navy edge */
.status.warn{background:var(--yellow-faint)}
.status.warn .dot{width:11px;height:11px;background:var(--yellow);box-shadow:inset 0 0 0 1.5px #0b1026}
.demo-badge{min-height:36px;padding:4px 14px;font:600 12.5px/1.2 var(--font);letter-spacing:.06em;text-transform:uppercase}

/* ------------------------------------------------------------------ hero */
.hero{padding:24px 18px 18px}
.headline{font:400 var(--hfs)/.9 var(--font);letter-spacing:-.006em;text-transform:uppercase;white-space:nowrap;
  --hfs:min(60px,calc((100vw - 2 * var(--gutter) - 40px) / 6.55))}
.hero-sub-row{display:flex;align-items:center;gap:24px;margin-top:12px}
.hero-sub{flex:1 1 auto;min-width:0;font:600 17px/1.25 var(--font);letter-spacing:-.008em}
.sun-wrap{position:relative;flex:none;display:flex}
.sun-wrap .sun{--sun:42px;transform:rotate(10deg)}
.sun-wrap .spark{--s:17px;left:-19px;top:-9px}
.sun-wrap .spark.butter{--s:12px;left:-12px;top:auto;bottom:-6px}
@media (max-width:359px){
  .hero-sub-row{gap:16px}
  .hero-sub{font-size:16px}
  .sun-wrap .sun{--sun:36px}
}
.hero-total{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.big{margin-top:6px;font:600 var(--bfs)/1.05 var(--font);letter-spacing:-.02em;--bfs:min(44px,calc((100vw - 2 * var(--gutter) - 36px) / 6.4))}
.big .cur{font-size:.42em}
.hero-line{margin-top:7px;font:500 15px/1.35 var(--font);color:var(--ink2)}

/* yellow Pinyon script capital over the first letter of the headline: thin LUMOS calligraphy — a yellow body
   (hairlines thickened a touch by a yellow stroke under the fill) with a thin navy edge from a layer behind it.
   Sized --k x the cap height, shifted by --dx/--dy cap heights from the centre of the «С»: raised over its top-left
   like the S over SHINING, so the lower bowl and both terminals of the Inter «С» stay clear and the swash ends before the «Т».
   Metrics (units per em): Inter Tight cap .7275, glyph «С» centre x .3428; Pinyon «C» height .8442, centre x .4922,
   centre y .4453 from the top of a line-height:1 box; the host box (line-height .9) has the «С» centre .4485 from its top. */
.cap{position:relative;display:inline-block;--k:1.28;--dx:-.05;--dy:-.38;--s:calc(var(--k) * .8618)}
.script{position:absolute;z-index:1;font:400 calc(var(--s) * 1em)/1 var(--script);font-style:normal;letter-spacing:0;text-transform:none;
  left:calc((.3428 + var(--dx) * .7275) / var(--s) * 1em - .4922em);top:calc((.4485 + var(--dy) * .7275) / var(--s) * 1em - .4453em);
  color:var(--yellow);-webkit-text-stroke:.006em var(--yellow);paint-order:stroke fill;pointer-events:none;user-select:none}
.script::before{content:attr(data-l);position:absolute;left:0;top:0;z-index:-1;color:#0b1026;-webkit-text-stroke:.036em #0b1026}

/* ------------------------------------------------------------------ filters */
.filters{display:grid;gap:10px}
.frow{display:flex;align-items:center;gap:10px}
.frow-label{flex:none;width:98px;display:flex;align-items:center;gap:8px}
.seg{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;gap:2px;padding:3px;border-radius:23px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--edge-pill)}
.seg button{flex:1 1 auto;min-height:40px;padding:0 11px;border-radius:999px;font:600 14px/1.1 var(--font);white-space:nowrap}
.seg button:hover:not([aria-pressed=true]){background:var(--yellow-faint)}
.seg button[aria-pressed=true]{background:var(--yellow);color:var(--on-yellow);box-shadow:inset 0 0 0 1.3px #0b1026}
.seg .n{margin-left:5px;font-weight:500;color:var(--muted)}
.seg button[aria-pressed=true] .n{color:var(--on-yellow)}
@media (max-width:359px){
  .frow{flex-direction:column;align-items:stretch;gap:6px}
  .frow-label{width:auto}
  .frow-label .arrow{display:none}
}

/* ------------------------------------------------------------------ KPI grid */
.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px 0}
.kpi{padding:13px 14px 14px;min-width:0}
.kpi:nth-child(n+3){border-top:1px solid var(--line)}
.kpi:nth-child(odd){border-right:1px solid var(--line)}
.kpi .v{margin-top:6px;font:600 var(--kfs)/1.15 var(--font);letter-spacing:-.01em;--kfs:clamp(19px,6.2vw,25px)}
.kpi .v .cur{font-size:13px}
.kpi .s{margin-top:4px;font-size:12.5px;line-height:1.3;color:var(--muted)}
.meter{height:8px;margin-top:9px;border-radius:99px;background:var(--paper3);box-shadow:inset 0 0 0 1px var(--line2);overflow:hidden}
.meter i{display:block;height:100%;border-radius:99px;background:var(--yellow);box-shadow:inset 0 0 0 1.2px #0b1026}

/* ------------------------------------------------------------------ equity curve (SVG) */
.curve{display:block;width:100%;overflow:visible}
.curve text{font:500 11.5px var(--font);fill:var(--muted);font-variant-numeric:tabular-nums}
.curve .zero{stroke:var(--line2);stroke-width:1.2;stroke-dasharray:4 4}
.curve .grid{stroke:var(--hair);stroke-width:1}
.curve .area{fill:var(--yellow);opacity:.22}
:root[data-theme=dark] .curve .area{fill:var(--sky);opacity:.12}
.curve .line{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.curve .d-win{fill:var(--profit)}
.curve .d-loss{fill:var(--ink)}
.curve .d-be{fill:var(--paper);stroke:var(--ink);stroke-width:1.3}
.curve .last{fill:var(--yellow);stroke:#0b1026;stroke-width:1.8}
.curve .tag{fill:var(--yellow)}
.curve text.tag-t{fill:#0b1026;font-weight:600}

/* ------------------------------------------------------------------ calendar */
.cal-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.cal-head>div{margin-right:auto}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal .wd{padding-bottom:4px;text-align:center;font-size:11px}
.cal .wd.we{color:var(--muted)}
.cday{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:50px;padding:6px 5px 5px;
  border-radius:10px;text-align:left;font:600 13px/1 var(--font)}
.cday .p{align-self:flex-end;font-size:var(--pfs,11.5px);letter-spacing:-.02em;white-space:nowrap}
.cday.off{color:var(--muted);font-weight:500}
.cday.win{background:var(--profit-soft)}
.cday.win .p{color:var(--profit)}
.cday.loss{background:var(--loss-soft)}
.cday.be{background:repeating-linear-gradient(135deg,var(--be-hatch) 0 1.5px,transparent 1.5px 6px),var(--be-soft)}
button.cday:hover{box-shadow:inset 0 0 0 1.5px var(--edge-pill)}
/* today: navy line + yellow band, drawn mostly in the gap around the cell (outer shadows), clear of the number and P/L */
.cday.today,button.cday.today:hover{box-shadow:inset 0 0 0 1.5px var(--yellow),0 0 0 .5px var(--yellow),0 0 0 2px #0b1026}
@media (max-width:399px){.cday .p.long{--pfs:10.5px}}   /* 5-character sums: «+1.2M», «−123k» */
@media (max-width:359px){
  .cal-card{padding:14px 10px}
  .cal{gap:3px}
  .cday{padding:5px 3px 4px;--pfs:10.5px}
}

/* ------------------------------------------------------------------ by-day journal */
.days{width:100%;border-collapse:collapse}
/* --fit (set by app.js, 1 by default) scales the cells down when huge results would push the table past its card */
.days{--pad:calc(5px * var(--fit,1))}
.days th{padding:0 var(--pad) 8px;text-align:left;white-space:nowrap}
.days td{height:46px;padding:0 var(--pad);border-top:1px solid var(--hair);font-size:calc(15px * var(--fit,1));white-space:nowrap}
.days .c{text-align:center}
.days .r{text-align:right}
.days td.dt{font-weight:600}
.days td.dt span{font-weight:400;color:var(--ink2)}
.days td.res{font:600 calc(15.5px * var(--fit,1))/1 var(--font)}
.days td.mid{color:var(--ink2)}
.days tbody tr{cursor:pointer}
.days tbody tr:hover td{background:var(--yellow-faint)}
.days tbody tr:focus-visible{outline-offset:-2px}
@media (max-width:359px){
  .days{--pad:calc(3px * var(--fit,1))}
  .days td{font-size:calc(14px * var(--fit,1))}
  .days td.res{font-size:calc(14.5px * var(--fit,1))}
}

/* ------------------------------------------------------------------ open positions */
.pos{padding:12px 0 2px}
.pos+.pos{margin-top:4px;border-top:1px solid var(--line)}
.pos-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pos .meta{margin-top:8px;font-size:13px;color:var(--muted)}
.stats3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px;margin-top:12px}
.stats3 .v{margin-top:3px;font:600 16.5px/1.2 var(--font);letter-spacing:-.005em;overflow-wrap:anywhere}
.stats3 .v.sl{color:var(--sl)}
.pos .scn{margin-top:3px;font-size:13.5px;line-height:1.35;color:var(--ink2);overflow-wrap:anywhere}
/* floating P/L (API mode): right of the chips like a trade result; under them, right-aligned, when it does not fit */
.pos-pl{margin-left:auto;min-width:0;max-width:100%;text-align:right}
.pos-pl b{display:block;font:600 19px/1.1 var(--font);letter-spacing:-.02em;white-space:nowrap}
.pos-pl b .cur{font-size:12px}
.pos-pl small{display:block;margin-top:2px;font-size:12.5px;color:var(--ink2);white-space:nowrap}

/* ------------------------------------------------------------------ day details */
.day-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-bottom:16px}
.back{padding:0 20px 0 14px}
.day-nav{display:flex;align-items:center;gap:8px;margin-left:auto}
.day-nav .round{width:40px;height:40px}
.day-nav .pos-n{min-width:52px;text-align:center;font:500 15px/1 var(--font)}
.day-head{display:flex;align-items:center;gap:14px}
.day-head .sun{--sun:50px}
.day-title{font:600 clamp(28px,9vw,38px)/.92 var(--font);letter-spacing:-.03em;text-transform:uppercase}
.day-sub{margin-top:6px;font-size:14px;color:var(--ink2)}
.sec-title{display:flex;align-items:center;gap:10px;margin:22px 0 10px;font:500 19px/1.2 var(--font);letter-spacing:-.015em}
.trade{border-radius:14px;padding:14px;box-shadow:inset 0 0 0 1.5px var(--edge),var(--shadow)}
.trade+.trade{margin-top:12px}
/* chips and result share a row; a result too wide to sit next to the widest chip moves under the chips, right-aligned */
.t-top{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
.t-chips{flex:1 1 0;min-width:min-content;display:flex;flex-wrap:wrap;gap:6px}
.t-res{margin-left:auto;min-width:0;max-width:100%;text-align:right}
.t-res b{display:block;font:600 22px/1.1 var(--font);letter-spacing:-.02em;white-space:nowrap}
.t-res b .cur{font-size:12px}
.t-res small{display:block;margin-top:3px;font-size:13px;color:var(--ink2);white-space:nowrap}
.t-scn{margin-top:10px;font:500 15px/1.35 var(--font);overflow-wrap:anywhere}
.kv{display:grid;grid-template-columns:minmax(84px,auto) minmax(0,1fr);gap:7px 10px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:14px;line-height:1.25}
.kv dt{color:var(--ink2)}
.kv dd{position:relative;padding-left:34px;font-weight:600;overflow-wrap:anywhere}
.kv dd::before{content:'';position:absolute;left:0;top:.62em;margin-top:-8px;width:26px;height:16px;background:var(--sky);
  -webkit-mask:var(--arrow-head) right center/12px 16px no-repeat,linear-gradient(#000 0 0) left center/calc(100% - 1.8px) 1.9px no-repeat;
          mask:var(--arrow-head) right center/12px 16px no-repeat,linear-gradient(#000 0 0) left center/calc(100% - 1.8px) 1.9px no-repeat}

/* ------------------------------------------------------------------ states and footer */
.note-card{padding:14px 16px;border-radius:12px;background:var(--yellow-faint);box-shadow:inset 0 0 0 1px var(--line2);color:var(--ink2);font-size:14.5px;line-height:1.45}
.empty{display:grid;justify-items:start;gap:10px;padding:22px 18px}
.empty .sun{--sun:56px}
.empty h2{font:600 22px/1.15 var(--font);letter-spacing:-.02em}
.empty p{color:var(--ink2);line-height:1.45}
.empty .said{overflow-wrap:anywhere}   /* the server's own text may hold a long word */
.loading .sun{animation:spin 6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.loading .sun{animation:none}}
.foot{position:relative;display:grid;gap:8px;margin-top:26px;padding:0 2px;font-size:12.5px;line-height:1.45;color:var(--muted)}
.foot p,.foot li{overflow-wrap:anywhere}
.foot ul{display:grid;gap:3px}
.foot li::before{content:'• '}
.foot .spark{--s:18px;right:4px;top:-20px}
