/* FXMM client panel · styles of the approved prototype (Oct 2026) + live additions at the end */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&display=swap");   /* brand text font for the "Report levels" card (Nov 15) */
[hidden]{display:none!important}

/* Layout: the approved dashboard frame — navy menu rail on the left, light working area, faint FXMM mark behind. Single light look on purpose (it is the product's own UI). */
:root{
  --rail:#0B1426; --rail-ink:#AEBBCD; --rail-sub:#8EA1BA; --sky:#5AA8FF;
  --ground:#F6F7F9; --paper:#FFFFFF; --ink:#0A1A33; --body:#33435A; --muted:#6B7A8F; --faint:#9AA8BA;
  --line:#DCE2EA; --line-soft:#EEF1F5; --accent:#0B6BDE; --accent-soft:#EEF3FA; --ok:#138A5E;
  --f-ui:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif; --f-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  color-scheme:light;
}
html,body{background:var(--ground);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;font-family:Poppins,sans-serif;color:#0A1A33}
*{box-sizing:border-box}body{margin:0;font-family:Poppins,sans-serif;color:#0A1A33}
.cap{font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#6B7A8F}
.line{padding:10px 0 12px;border-bottom:1px solid #0A1A33;font-size:16px;display:flex;align-items:center;gap:6px}
.chk{width:18px;height:18px;border:1.5px solid #0A1A33;border-radius:3px;flex:none;display:flex;align-items:center;justify-content:center;background:#0A1A33;color:#fff;font-size:12px}
.sw{width:40px;height:22px;border-radius:11px;padding:2px;display:flex;flex:none}.sw span{width:18px;height:18px;border-radius:9px;background:#fff}
.btn{height:50px;background:#0A1A33;color:#fff;font-size:14px;font-weight:500;letter-spacing:.04em;display:flex;align-items:center;justify-content:center;border-radius:2px}
.lnk{border-bottom:1px solid #0A1A33;font-weight:500}

body{font-family:var(--f-ui);margin:0}
.mono{font-family:var(--f-mono)}
.cap{font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.clk{cursor:pointer}
.clk:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.screen{min-height:100vh}
/* app frame */
.app{display:flex;min-height:100vh}
.side{width:250px;flex:none;background:var(--rail);padding:28px 16px 22px;display:flex;flex-direction:column;gap:26px;position:sticky;top:env(safe-area-inset-top,0px);height:100vh;overflow:hidden auto;z-index:30}
.side .logo{height:28px;align-self:flex-start;margin-left:10px}
.who{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07)}
.who b{font-size:13.5px;font-weight:500;color:#fff;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who span{display:flex;align-items:center;gap:6px;font-size:11px;color:#4FD19E;flex:none;white-space:nowrap}
.who span i{width:6px;height:6px;border-radius:3px;background:#4FD19E}
.nav{display:flex;flex-direction:column;gap:2px}
.nav .cap{padding:0 12px 8px;color:#56677F;font-size:10px}
.nav a{display:flex;align-items:center;gap:12px;min-height:42px;padding:0 12px;border-radius:8px;color:var(--rail-ink);font-size:14px;text-decoration:none;cursor:pointer}
.nav a:hover{color:#fff}
.nav a.on{background:rgba(255,255,255,.07);color:#fff;font-weight:500;box-shadow:inset 2px 0 0 var(--sky)}
.nav a.on svg{stroke:var(--sky)}
.nav .sub a{min-height:34px;padding-left:42px;font-size:13px;color:var(--rail-sub)}
.nav .sub a.on{background:none;box-shadow:inset 2px 0 0 var(--sky);color:#fff}
.nav .badge{margin-left:auto;font-size:11px;font-weight:600;color:var(--rail);background:var(--sky);border-radius:9px;padding:0 7px}
.invite{padding:14px;border-radius:10px;border:1px solid rgba(90,168,255,.25);background:rgba(90,168,255,.06);display:flex;flex-direction:column;gap:6px;cursor:pointer}
.invite b{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:#fff}
.invite span{font-size:11.5px;color:var(--rail-sub);line-height:1.45}
.side .mk{position:absolute;right:-90px;bottom:120px;width:280px;opacity:.04;pointer-events:none}
main#view{flex:1;min-width:0;padding:36px 44px 80px;display:flex;flex-direction:column;gap:22px;position:relative;overflow:hidden}
main#view>.bg{position:absolute;right:-160px;bottom:-140px;width:760px;opacity:.06;pointer-events:none;z-index:0}
main#view>*:not(.bg){position:relative;z-index:1}
.mtop{display:none}
/* page heads (own pages) */
.phead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding-bottom:22px;border-bottom:1px solid var(--line)}
.phead h1{margin:0;font-size:34px;font-weight:300;letter-spacing:-.02em}
.phead h1 b{font-weight:600}
.phead p{margin:6px 0 0;font-size:14px;font-weight:300;color:var(--muted)}
/* reports */
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chips button{padding:7px 13px;border-radius:2px;font:inherit;font-size:12.5px;border:1px solid var(--line);color:var(--body);background:var(--paper);cursor:pointer}
.chips button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.rgrid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:20px;align-items:start}
.rcol{display:flex;flex-direction:column;gap:20px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:4px;overflow:hidden}
.rlist .day{padding:16px 18px 8px;font-size:10.5px}
.ritem{display:flex;align-items:center;gap:12px;padding:14px 18px;border:0;border-top:1px solid var(--line-soft);background:var(--paper);width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer}
.ritem:hover{background:#F8FAFD}
.ritem.on{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--ink)}
.ritem .ar{font-size:11px;width:12px;color:var(--ink)}
.ritem .ar.dn{color:var(--muted)}
.ritem .m{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.ritem .m b{font-size:14px;font-weight:600}
.ritem .m span{font:500 12px var(--f-mono);color:#4A5B73}
.ritem .r{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:11.5px;color:#4A5B73}
.ritem .r span:last-child{font-family:var(--f-mono);color:var(--faint)}
.ritem .new{font-size:9.5px;font-weight:600;letter-spacing:.12em;color:var(--accent);text-transform:uppercase}
.copy{padding:18px;display:flex;flex-direction:column;gap:12px}
.copy .tag{align-self:flex-start;font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#8A5A00;background:#FFF4DB;border:1px solid #F1D9A6;border-radius:2px;padding:3px 7px}
.crow{display:flex;align-items:center;gap:10px;padding-top:10px;border-top:1px solid var(--line-soft)}
.crow .k{flex:1;min-width:0;font-size:12.5px;color:var(--body)}
.crow .v{font:500 13px var(--f-mono);font-variant-numeric:tabular-nums}
.crow button{border:1px solid var(--line);background:var(--paper);border-radius:2px;font:500 11.5px var(--f-ui);padding:5px 9px;cursor:pointer;color:var(--ink);min-width:62px}
.crow button.done{border-color:var(--ok);color:var(--ok)}
.viewer .bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.viewer .bar span{font-size:13px;color:#4A5B73}
.lang{display:flex;border:1px solid var(--ink);border-radius:2px;overflow:hidden}
.lang button{border:0;background:var(--paper);color:var(--ink);font:600 12px var(--f-ui);padding:5px 10px;cursor:pointer}
.lang button[aria-pressed="true"]{background:var(--ink);color:#fff}
.sheetwrap{background:var(--line-soft);padding:24px 16px;display:flex;justify-content:center}
.sheetwrap iframe{width:100%;max-width:680px;border:0;display:block;background:#fff;box-shadow:0 10px 30px rgba(10,26,51,.12);min-height:900px}
/* education */
.egrid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}
.player{display:flex;flex-direction:column;gap:16px;min-width:0}
.player video{width:100%;aspect-ratio:16/9;background:var(--rail);display:block;border-radius:2px}
.player h2{margin:4px 0 0;font-size:26px;font-weight:600;letter-spacing:-.01em;text-wrap:balance}
.player p{margin:0;font-size:14.5px;font-weight:300;color:var(--muted);max-width:62ch}
.ccnote{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--body);padding:12px 14px;background:var(--paper);border:1px solid var(--line);border-radius:4px}
.ccnote b{font:700 11px var(--f-mono);border:1.5px solid var(--ink);border-radius:3px;padding:1px 5px}
.lessons .grp{padding:16px 16px 6px;font-size:10px}
.lesson{display:flex;align-items:center;gap:12px;padding:13px 16px;border:0;border-top:1px solid var(--line-soft);background:var(--paper);width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer}
.lesson:hover{background:#F8FAFD}
.lesson.on{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--ink)}
.lesson .n{font:500 12px var(--f-mono);color:var(--faint);width:20px}
.lesson .t{flex:1;font-size:13.5px;line-height:1.35}
.lesson.on .t{font-weight:600}
.lesson .d{font:500 11.5px var(--f-mono);color:var(--faint)}
/* glossary */
.gframe{width:100%;border:0;display:block;min-height:1200px;background:var(--ground)}
/* extracted mockup pages */
.tile.on{box-shadow:inset 0 -2px 0 var(--ink)}
.tile.on span:last-child{font-weight:600}
.faq{cursor:pointer}
.faq.closed>span{display:none}
.chap.on{background:var(--accent-soft)!important;box-shadow:inset 3px 0 0 var(--ink)}
.ph{position:absolute;left:14px;top:12px;z-index:2;font-size:10.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#8A5A00;background:#FFF4DB;border:1px solid #F1D9A6;border-radius:2px;padding:3px 7px}
.tog,.tog2{transition:background .15s}
.tog[aria-checked="false"],.tog2[aria-checked="false"]{background:#CBD3DE!important;justify-content:flex-start!important}
.chk[aria-checked="false"]{background:#fff!important;color:transparent!important}
.btn.off{opacity:.35;pointer-events:none}
.toast{position:fixed;left:50%;top:calc(20px + env(safe-area-inset-top,0px));transform:translateX(-50%);background:var(--ink);color:#fff;font-size:13px;padding:10px 16px;border-radius:4px;z-index:70;box-shadow:0 8px 24px rgba(10,26,51,.2)}
.scrim{display:none}
@media (max-width:1100px){
  .rgrid,.egrid{grid-template-columns:1fr}
  .rgrid .rcol{order:0}
}
@media (max-width:900px){
  .app{display:block}
  .mtop{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:40;background:var(--rail);padding:12px 16px}
  .mtop img{height:24px}
  .mtop button{background:none;border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:6px;font:500 13px var(--f-ui);padding:7px 12px;cursor:pointer}
  .side{position:fixed;left:0;top:0;bottom:0;height:auto;transform:translateX(-105%);transition:transform .2s;padding-top:calc(28px + env(safe-area-inset-top,0px));padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
  .app.menu .side{transform:none}
  .app.menu .scrim{display:block;position:fixed;inset:0;background:rgba(10,26,51,.45);z-index:25}
  main#view{padding:22px 16px calc(90px + env(safe-area-inset-bottom,0px))}
  .phead h1,#view h1{font-size:28px!important}
  #view [style*="grid-template-columns"]{grid-template-columns:1fr!important;gap:14px!important}
  #view [style*="width:360px"],#view [style*="width:340px"]{width:100%!important}
  #view [style*="display:flex;gap:24px"],#view [style*="display:flex;gap:20px"]{flex-wrap:wrap}
  #view [style*="padding:24px 26px"]{padding:18px!important}
  .sheetwrap{padding:12px 0}
}
/* Installed app only (iPhone, full screen): the bar grows by the status-bar area so it never covers the page; Safari keeps the normal bar */
@media (max-width:900px) and (display-mode:standalone){.mtop{padding-top:calc(12px + env(safe-area-inset-top,0px))}}
@media (prefers-reduced-motion:reduce){.side{transition:none}}

/* ===== live panel additions (Oct 16) ===== */
.authwrap{min-height:100vh;position:relative;overflow:hidden;background:#F6F7F9;display:flex;align-items:center;justify-content:center;padding:40px 16px}
.authmark{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);width:1100px;max-width:none;opacity:.07;pointer-events:none}
.authbox{width:460px;max-width:100%;display:flex;flex-direction:column;gap:30px}
.authbox h1{white-space:normal}
.authlogo{position:absolute;right:56px;bottom:40px;height:30px}
.psub{margin:0;font-size:14.5px;font-weight:300;color:#6B7A8F;line-height:1.55}
.plink{font-size:12px;color:#0B6BDE;cursor:pointer;text-decoration:none}
.psub .plink{font-size:14px;font-weight:500}
.pmsg{min-height:18px;font-size:13px;color:#B3363B;line-height:1.5}
.pmsg:empty{display:none}
.fin{width:100%;padding:10px 0 12px;border:0;border-bottom:1px solid #0A1A33;background:transparent;font:400 16px var(--f-ui);color:var(--ink);outline:0;border-radius:0}
.fin::placeholder{color:#9AA8BA}
.fin:focus{border-bottom-color:var(--accent);box-shadow:0 1px 0 var(--accent)}
textarea.fin{resize:vertical;min-height:110px;font-size:14.5px;border-bottom-color:#CBD3DE}
section .fin{font-size:14.5px;border-bottom-color:#CBD3DE}
.langsw{display:flex;gap:6px;margin-top:6px}
.langsw button{border:1px solid var(--line);background:#fff;border-radius:2px;font:500 11.5px var(--f-mono);padding:5px 9px;cursor:pointer;color:var(--body)}
.langsw button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.btn.clk{cursor:pointer;user-select:none}
.lnk.clk{cursor:pointer}
.loading{font-size:13px;color:var(--muted);padding:24px 0}
.sheetwrap .loading{padding:40px;text-align:center}
#repf{width:100%;border:0;display:block;min-height:900px;background:#fff}
.pmodal{position:fixed;inset:0;background:rgba(10,26,51,.45);z-index:80;display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top,0px)) 16px max(16px,env(safe-area-inset-bottom,0px))}
.pbox{background:#fff;border-radius:4px;max-width:560px;width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:26px 28px;display:flex;flex-direction:column;gap:18px;box-shadow:0 18px 48px rgba(10,26,51,.25)}
.pbox h2{margin:0;font-size:20px;font-weight:600}
.perr{font-size:13px;color:#B3363B}.perr:empty{display:none}
.pacts{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.pacts button{height:40px;padding:0 16px;border:1px solid #0A1A33;background:#fff;color:#0A1A33;font:500 13px var(--f-ui);border-radius:2px;cursor:pointer}
.pacts button.pdark{background:#0A1A33;color:#fff}
.pacts button:disabled{opacity:.5}
.legaltxt{font-size:13.5px;line-height:1.7;color:#33435A;max-height:55vh;overflow:auto;white-space:normal}
.notices{display:flex;flex-direction:column;gap:10px;margin-bottom:22px;position:relative;z-index:2}
.notice{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;background:#EEF3FA;border:1px solid #CFE0F5;border-left:3px solid var(--accent);border-radius:4px;padding:14px 16px}
.notice.imp{background:#FFF4E5;border-color:#F3D3A2;border-left-color:#D9822B}
.notice div{display:flex;flex-direction:column;gap:4px;font-size:13.5px;line-height:1.55;color:#33435A}
.notice b{font-size:14px;color:var(--ink)}
.notice button{border:0;background:none;font-size:14px;color:var(--muted);cursor:pointer;padding:2px 4px}
.crow button.done{color:var(--ok)}
@media (max-width:900px){
  .arow{grid-template-columns:1fr!important;gap:14px!important}
  .authlogo{position:static;display:block;margin:30px auto 0}
  .authwrap{flex-direction:column}
  .subgrid>div{padding-left:0!important;border-left:0!important}
  .tiles{grid-template-columns:1fr 1fr!important}
}

/* auth mobile fix */
@media (max-width:900px){.authwrap>div:not(.authbox){width:100%;max-width:480px}.authbox{width:100%!important}.authbox h1{font-size:30px!important}}
.toast{max-width:min(560px,calc(100vw - 32px));line-height:1.5;text-align:center}
/* reports: no select / copy (the "levels to copy" card is outside .viewer) */
.viewer,.viewer *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* ===== reports on a computer (Nov 2): the report box is as tall as the screen (the page scrolls a little to bring it fully into view),
   the report scrolls inside it and the list keeps its own scroll. Phones and narrow windows keep the layout above.
   ?layout=b also pins the top of the report down to the chart (panel.js pinTop) ===== */
@media (min-width:1101px){
  main#view.rp{padding-bottom:16px}
  main#view.rp>.rgrid{height:max(460px,calc(100vh - 32px));align-items:stretch}
  .rp .rcol{min-height:0;overflow-y:auto}
  .rp .rlist{flex:0 1 auto;min-height:120px;overflow-y:auto}
  .rp .copy{flex:none}
  .rp .viewer{display:flex;flex-direction:column;min-height:0}
  .rp .viewer .bar{flex:none}
  .rp .sheetwrap{flex:1 1 auto;min-height:0;padding:16px 16px 0;align-items:stretch;position:relative}
  .rp .sheetwrap iframe,.rp #repf{height:auto!important;min-height:0}
  .rp .sheetwrap .loading{position:absolute;left:0;right:0;top:16px}
}

/* ===== layout C (?layout=c, proposal): report list across the top, report header + chart (as large as its card allows) at the left, always in view; report text beside it ===== */
.rlist .rarr{display:none}
@media (min-width:1101px){
  .rp[data-layout="c"] .rgrid{grid-template-columns:minmax(420px,52%) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;height:max(560px,calc(100vh - 32px))}
  .rp[data-layout="c"] .rcol{display:contents}
  .rp[data-layout="c"] .rlist{grid-column:1/-1;display:flex;align-items:stretch;overflow-x:auto;overflow-y:hidden;min-height:0}
  .rp[data-layout="c"] .rlist .day{flex:none;align-self:center;position:relative;margin:0 6px 0 22px;padding:6px 10px;border-radius:2px;background:var(--ink);color:#fff;font-size:10.5px;letter-spacing:.12em;white-space:nowrap}
  .rp[data-layout="c"] .rlist .day::before{content:"";position:absolute;left:-12px;top:-30px;bottom:-30px;border-left:2px solid var(--line)}
  .rp[data-layout="c"] .rlist .day:first-child,.rp[data-layout="c"] .rlist .rarr.l+.day{margin-left:14px;background:var(--accent)}
  .rp[data-layout="c"] .rlist .day:first-child::before,.rp[data-layout="c"] .rlist .rarr.l+.day::before{display:none}
  .rp[data-layout="c"] .rlist .ritem{flex:none;width:auto;border-top:0;border-left:1px solid var(--line-soft);padding:10px 16px;gap:10px}
  .rp[data-layout="c"] .rlist .ritem .m span,.rp[data-layout="c"] .rlist .ritem .m b{white-space:nowrap}
  .rp[data-layout="c"] .rlist .ritem.on{box-shadow:inset 0 -3px 0 var(--ink)}
  .rp[data-layout="c"] .chartc{grid-column:1;grid-row:2/4;display:flex;flex-direction:column;gap:10px;padding:16px 16px 12px;min-height:0;-webkit-user-select:none;user-select:none}
  .rp[data-layout="c"] .chartc .ch{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding-bottom:10px;border-bottom:1.5px solid var(--ink)}
  .rp[data-layout="c"] .chartc .ch>div{display:flex;flex-direction:column;gap:3px}
  .rp[data-layout="c"] .chartc .ch b{font-size:22px;font-weight:600;letter-spacing:-.01em}
  .rp[data-layout="c"] .chartc .ch .dir{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
  .rp[data-layout="c"] .chartc .ch .z{align-items:flex-end}
  .rp[data-layout="c"] .chartc .ch .z b{font-size:16px}
  .rp[data-layout="c"] .chartc .ch .g{font-size:11.5px;color:var(--body)}
  /* the chart is stretched a little in height (up to 25%) to use the free space of its card; never more, so it is not distorted */
  .rp[data-layout="c"] .chartc{container-type:inline-size}
  .rp[data-layout="c"] .chartc img{display:block;width:100%;flex:0 1 auto;height:calc((100cqw - 32px) * .70);min-height:0;margin:auto 0;object-fit:fill}
  .rp[data-layout="c"] .copy{display:none}
  .rp[data-layout="c"] .viewer .bar .bp{display:none}
  .rp[data-layout="c"] .viewer{grid-column:2;grid-row:2/4}
  .rp[data-layout="c"] .rlist .rarr{display:block;position:sticky;z-index:2;flex:none;width:34px;border:0;background:var(--paper);font:400 22px/1 var(--f-ui);color:var(--ink);cursor:pointer}
  .rp[data-layout="c"] .rlist .rarr.l{left:0;box-shadow:6px 0 8px -6px rgba(10,26,51,.25)}
  .rp[data-layout="c"] .rlist .rarr.r{right:0;margin-left:auto;box-shadow:-6px 0 8px -6px rgba(10,26,51,.25)}
  .rp[data-layout="c"] .rlist .rarr:hover{background:var(--accent-soft)}
  /* page head in one line: small title at the left, pair filters at the right */
  main#view.rp[data-layout="c"]{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:28px;row-gap:16px;align-content:start}
  main#view.rp[data-layout="c"]>*{grid-column:1/-1}
  main#view.rp[data-layout="c"]>.rtop{grid-column:1;padding-bottom:0!important;border-bottom:0!important}
  main#view.rp[data-layout="c"]>.rtop .cap,main#view.rp[data-layout="c"]>.rtop>div:last-child{display:none!important}
  main#view.rp[data-layout="c"]>.rtop h1{font-size:26px!important}
  main#view.rp[data-layout="c"]>.chips{grid-column:2;align-self:center;justify-content:flex-end}
}

/* menu: "Invite a friend" as one line (the offer is on its own page) */
.invite{padding:10px 12px}
.invite>span{display:none}

/* phones and narrow windows: the report list shows the latest 4 reports; "Show more" adds 4 each time, "Show less" goes back to 4 (panel.js) */
.rmore{display:none}
@media (max-width:1100px){
  .rlist .xtra{display:none}
  .rmore{display:flex;border-top:1px solid var(--line-soft)}
  .rmore button{flex:1;padding:13px 18px;border:0;background:var(--paper);font:500 13px var(--f-ui);color:var(--accent);cursor:pointer}
  .rmore button+button:not([hidden]){border-left:1px solid var(--line-soft)}
  .rmore button[data-m="0"]{color:var(--muted)}
}

/* option 2 for phones (?lista=dias, proposal): the list grouped by day, each earlier day folded into one line */
.rlist .day .dn,.rlist .day .dch{display:none}
@media (max-width:1100px){
  .rlist .day.dtog{display:flex;align-items:center;gap:0;cursor:pointer;padding:15px 18px;border-top:1px solid var(--line-soft);font-size:11px;color:var(--ink)}
  .rlist .day.dtog:first-child{border-top:0}
  .rlist .day.dtog .dn{display:inline;margin-left:6px;font-weight:500;letter-spacing:.06em;color:var(--muted)}
  .rlist .day.dtog .dch{display:inline;margin-left:auto;font-size:16px;color:var(--muted)}
  .rlist .day.dtog .dch::before{content:"▸"}
  .rlist .day.dtog.dopen .dch::before{content:"▾"}
  .rlist .ritem.dhide{display:none}
}

/* zone status pill (proposal; shows only when the report has zone_status) */
.zs{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:2px 7px;border-radius:9px;background:#E6F4EE;color:var(--ok);font:600 9.5px var(--f-ui);font-style:normal;letter-spacing:.08em;text-transform:uppercase;vertical-align:middle}
.zs::before{content:"";width:6px;height:6px;border-radius:3px;background:currentColor}
.zs.off{background:var(--line-soft);color:var(--muted)}
.ritem.zoff .m b,.ritem.zoff .m>span,.ritem.zoff .ar{color:var(--faint)}
.ritem.zoff .m>span{text-decoration:line-through}
.chartc .ch b .zs{font-size:10px;padding:3px 8px}
/* ===== zone status + "Copy" (Nov 5; Nov 13: archived in neutral gray); the computer chart card shows, under the chart, a "Niveles" box with the two zone edges (1 = near, 2 = far), each with its own "Copiar" ===== */
.zs.off{background:var(--line-soft);color:var(--muted)}
.rp[data-layout="c"] .chartc .clv{display:flex;flex-direction:column;gap:8px;flex:none;margin-top:4px;padding:10px 12px 12px;border:1px solid var(--line);border-radius:6px;background:#F8FAFD}
.rp[data-layout="c"] .chartc .clv .cap{font-size:10px}
.rp[data-layout="c"] .chartc .lvr,.copy .lvr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.copy .lvr{grid-template-columns:minmax(0,1fr)}   /* phone: one edge per line */
.rp[data-layout="c"] .chartc .lvc,.copy .lvc{display:flex;align-items:center;gap:10px;padding:7px 7px 7px 10px;border:1px solid var(--line-soft);border-radius:4px;background:var(--paper)}
.rp[data-layout="c"] .chartc .lvc .k,.copy .lvc .k{flex:none;width:20px;height:20px;border-radius:10px;background:var(--ink);color:#fff;font:600 11px/20px var(--f-ui);text-align:center}
.rp[data-layout="c"] .chartc .lvc .v,.copy .lvc .v{flex:1;font:500 15px var(--f-mono);font-variant-numeric:tabular-nums;color:var(--ink)}
.rp[data-layout="c"] .chartc .lvc button,.copy .lvc button{border:1px solid var(--line);background:var(--paper);border-radius:2px;font:500 11px var(--f-ui);padding:4px 9px;cursor:pointer;color:var(--body);min-width:62px}
.rp[data-layout="c"] .chartc .lvc button:hover,.copy .lvc button:hover{border-color:var(--ink);color:var(--ink)}
.rp[data-layout="c"] .chartc .lvc button.done,.copy .lvc button.done{border-color:var(--ok);color:var(--ok)}
.rp[data-layout="c"] .chartc .clv~*,.rp[data-layout="c"] .chartc img:has(+ .clv){margin:0}
/* ===== zone filter (Nov 5): Activas · Invalidadas · Todas replace the per-pair chips ===== */
.chips .zf.act[aria-pressed="true"]{background:var(--ok);border-color:var(--ok);color:#fff}
.chips .zf.inv[aria-pressed="true"]{background:var(--muted);border-color:var(--muted);color:#fff}
/* confluence factors on the computer chart card (same look as the report's pills) */
.rp[data-layout="c"] .chartc .gp{display:flex;flex-wrap:wrap;gap:6px;flex:none;margin-top:-2px}
.rp[data-layout="c"] .chartc .gp[hidden]{display:none}
.rp[data-layout="c"] .chartc .gp span{white-space:nowrap;border:1px solid #DDD;background:#F7F6F3;border-radius:12px;padding:3px 9px;font-size:10.5px;color:#333}
/* phones: no automatic scroll anchoring inside the page; the panel scrolls itself when it needs to (otherwise, when the report box grows
   after loading, the browser jumped the page down by the report's height) */
main#view{overflow-anchor:none}
/* waiting zone (published, price hasn't reached it yet) */
.zs.wait{background:#E8EEF6;color:#4A6690}
.chips .zf.wait[aria-pressed="true"]{background:#4A6690;border-color:#4A6690;color:#fff}
@media (max-width:560px){.chips:has(> .zf){display:grid;grid-template-columns:1fr 1fr;gap:8px}.chips .zf{text-align:center}.chips .zf.all{grid-column:1/-1}}   /* phones: En espera + Alcanzadas on one row, "Últimos 7 días" full width below (20/11/2026: no "Archivadas") */
.ritem .r span.gr{font-family:inherit;color:#4A5B73}   /* the list no longer shows the time; the grade is now the last line */
/* brand typography (Nov 7): the report header shown on the computer chart card uses the report's title font */
@font-face{font-family:"Circular Std";src:url("../fonts/CircularStd-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Circular Std";src:url("../fonts/CircularStd-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
.chartc .ch b{font-family:"Circular Std",var(--f-ui)}

/* ===== archived zone note (Nov 13): fixed line under the pair name on the computer chart card, and above the report on the phone ===== */
.zsn{margin:2px 0 0;font:400 12px/1.45 var(--f-ui);color:var(--muted)}
.zsn[hidden]{display:none}
.zsn.m{margin:12px 0 0;padding:10px 14px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}
@media (min-width:1101px){.rp[data-layout="c"] .zsn.m{display:none}}

/* ===== "Report levels" card (Nov 15, approved mock-up): zone edges + the report's numbered levels, each with its own copy button.
   Brand fonts only: Circular Std (titles, labels), Inter Tight (text), JetBrains Mono (numbers). Computer: 2 columns; phone: 1 column,
   6+ levels show the first 3 and "Show all (N)". Layout C shows the chart card on phones too: chart + levels first, then the report text. ===== */
@font-face{font-family:"Circular Std";src:url("../fonts/CircularStd-Book.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
.lvx{display:flex;flex-direction:column;gap:8px;flex:none;padding:14px 16px;border:1px solid var(--line);border-radius:4px;background:var(--paper);font-family:"Inter Tight",var(--f-ui)}
.copy .lvx{padding:0;border:0}
.lvx .lvx-h{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:20px}
.lvx .cap{font:500 11px "Circular Std","Inter Tight",var(--f-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.lvx .lvx-s{font:400 12.5px "Circular Std","Inter Tight",var(--f-ui);color:var(--faint);margin-top:2px}
.lvx .lvx-lv{display:flex;flex-direction:column;gap:8px}
.lvx .lvx-g{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.lvx .lvx-r{display:flex;align-items:center;gap:8px;padding:4px 4px 4px 8px;border:1px solid var(--line-soft);border-radius:4px;background:var(--paper);min-width:0}
.lvx .lvx-z .lvx-r{background:var(--accent-soft);border-color:#D6E3F5}
.lvx .zk{flex:none;width:16px;height:16px;border-radius:3px;background:#6EB4FF}
.lvx .zk.far{background:#B9D8FF}
.lvx .k{flex:none;width:20px;height:20px;border-radius:50%;background:var(--ink);color:#fff;font:500 11px/20px "Circular Std","Inter Tight",var(--f-ui);text-align:center}
.lvx .nm{flex:1;min-width:0;font:400 13px/1.3 "Inter Tight",var(--f-ui);color:var(--body)}
.lvx .lvx-r>.nm:first-child{padding-left:4px}   /* older reports: no number circle */
.lvx .nm small{font-size:12px;color:var(--faint)}
.lvx .v{font:500 14px var(--f-mono);font-variant-numeric:tabular-nums;color:var(--ink)}
.lvx button{font-family:"Inter Tight",var(--f-ui);cursor:pointer}
.lvx .ic{flex:none;width:30px;height:30px;display:grid;place-items:center;padding:0;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:4px;font-size:14px;font-weight:600}
.lvx .ic.done{background:var(--ok);border-color:var(--ok);color:#fff}
.lvx .lvx-more{display:none;border:1px dashed var(--line);background:var(--paper);color:var(--accent);font-size:13px;font-weight:500;padding:10px;border-radius:4px}
.rp[data-layout="c"] .chartc img:not([src]),.rp[data-layout="c"] .chartc .cl:empty{display:none}
@media (min-width:1101px){
  .lvx .lvx-g{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  /* the chart keeps its size (never squeezed by the levels): the left column grows to its natural height and the page scrolls
     (approved mock-up); the report box is at least one screen tall and scrolls inside, as before */
  main#view.rp[data-layout="c"]>.rgrid{height:auto;min-height:max(560px,calc(100vh - 32px))}
  .rp[data-layout="c"] .chartc{overflow:visible}
  .rp[data-layout="c"] .chartc img{flex:none;margin:0}
}
@media (max-width:1100px){
  .lvx:not(.open) .lvx-r.x{display:none}
  .lvx .lvx-more{display:block}
  .rp[data-layout="c"] .zsn.m{display:none}   /* the archived note is already in the chart card */
  .rp[data-layout="c"] .chartc{display:flex;flex-direction:column;gap:10px;padding:14px 16px 16px;-webkit-user-select:none;user-select:none}
  .rp[data-layout="c"] .chartc .ch{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:10px;padding-bottom:10px;border-bottom:1.5px solid var(--ink)}
  .rp[data-layout="c"] .chartc .ch>div{display:flex;flex-direction:column;gap:3px}
  .rp[data-layout="c"] .chartc .ch b{font-size:20px;font-weight:600;letter-spacing:-.01em}
  .rp[data-layout="c"] .chartc .ch .dir{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
  .rp[data-layout="c"] .chartc .ch .z b{font-size:15px}
  .rp[data-layout="c"] .chartc .ch .g{font-size:11.5px;color:var(--body)}
  .rp[data-layout="c"] .chartc img{display:block;width:100%;height:auto}
}

/* 16/11/2026 (Roberto, opción A): zone edges as compact chips; levels as thin rows, 2 columns on a computer */
.lvx .lvx-z{display:grid;grid-template-columns:minmax(0,1fr);gap:0 24px}
.lvx .lvx-lv .lvx-g{display:block}
/* zone edges look like the level rows, aligned with them (Roberto 16/11) */
.lvx .lvx-z .lvx-r{border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent;padding:7px 2px}
.lvx .lvx-z .nm{flex:1 1 auto;white-space:nowrap}
.lvx .lvx-z .v{min-width:72px;text-align:right}
.lvx .lvx-z .ic{width:26px;height:26px;border-color:transparent}
.lvx .lvx-z .zk{width:20px;height:20px;border-radius:50%}
.lvx .lvx-lv .lvx-r,.lvx .lvx-z .lvx-r{gap:6px}
.lvx .lvx-lv .v,.lvx .lvx-z .v{min-width:0}
.lvx .lvx-lv .lvx-r{border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent;padding:7px 2px;break-inside:avoid}
.lvx .lvx-lv .nm{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lvx .lvx-lv .v{min-width:72px;text-align:right}
.lvx .lvx-lv .ic{width:26px;height:26px;border-color:transparent}
@media (min-width:1101px){.lvx .lvx-lv .lvx-g{columns:2;column-gap:24px}.lvx .lvx-z{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* 16/11/2026 (Roberto): report on a computer without the grey frame; same height and inner scroll as before */
@media (min-width:1101px){
  .rp .sheetwrap{padding:0;background:#fff}
  .rp .sheetwrap iframe{box-shadow:none}
  .rp .sheetwrap .loading{top:0}
}
/* sin marco */

/* ===== History (Nov 17): past zones by week. The PAGE scrolls (never an inner box): head + filter row are sticky; main#view clips
   instead of hiding its overflow so sticky works against the window. Phones: the head sits right under the dark top bar (--mtop) ===== */
main#view.hp{overflow:clip}
main#view.hp>.hhead{position:sticky;top:0;z-index:5;margin:-36px -44px 0;padding:36px 44px 0;background:var(--ground)}
.hhead .hnote{font-size:12.5px;color:#4A5B73}
.hfil{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.hfil select,.hfil .hmsb{-webkit-appearance:none;appearance:none;height:30px;padding:0 28px 0 11px;border:1px solid var(--line);border-radius:2px;background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236B7A8F' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center;font:400 12.5px var(--f-ui);color:var(--body);cursor:pointer}
.hfil select.on,.hfil .hmsb.on{border-color:var(--ink);color:var(--ink);font-weight:500}
/* multi-select filters (Nov 20) */
.hms{position:relative}
.hfil .hmsb{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.hmsl{position:absolute;top:calc(100% + 4px);left:0;z-index:20;min-width:100%;width:max-content;max-width:calc(100vw - 16px);max-height:60vh;overflow:auto;padding:6px 0;background:var(--paper);border:1px solid var(--line);border-radius:2px;box-shadow:0 8px 24px rgba(14,30,54,.12)}
.hmsl label{display:flex;align-items:center;gap:9px;padding:7px 14px 7px 12px;font:400 12.5px var(--f-ui);color:var(--body);white-space:nowrap;cursor:pointer}
.hmsl label:hover{background:var(--line-soft)}
.hmsl input{margin:0;width:14px;height:14px;accent-color:var(--ink);cursor:pointer}
.hmsc{display:block;width:100%;margin-top:4px;padding:8px 12px 4px;border:0;border-top:1px solid var(--line-soft);background:none;font:500 12px var(--f-ui);color:#4A5B73;text-align:left;cursor:pointer}
.hmsc:hover{color:var(--ink)}
.hcnt{display:flex;align-items:center;gap:14px;margin-left:auto;font-size:12px;color:#4A5B73;white-space:nowrap}
.hcnt .hn{font-weight:500;color:var(--ink)}
.hcnt .hc{display:inline-flex;align-items:center;gap:6px}
.hcnt .hc i{width:7px;height:7px;border-radius:50%;flex:none}
.hcnt .hbar{display:flex;width:120px;height:4px;border-radius:2px;overflow:hidden;background:var(--line-soft)}
.hcnt .hbar i{display:block;height:100%}
.hgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-content:start}
.hcard{display:flex;flex-direction:column;padding:0;border:1px solid var(--line);border-radius:4px;background:var(--paper);overflow:hidden;cursor:zoom-in;text-align:left;font:inherit;color:inherit}
.hcard:hover{border-color:#B9C4D2}
.hcard img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--line-soft)}
.hm{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 11px;border-top:1px solid var(--line-soft)}
.hm .hx{display:flex;flex-direction:column;gap:2px;min-width:0}
.hm b{font-size:14px;font-weight:600;color:var(--ink)}
.hm b span,.hlbt b+span{font-weight:400;font-size:12px;color:var(--muted)}
.hd{font-size:11.5px;color:var(--muted)}
.hpill{flex:none;padding:3px 9px;border-radius:10px;font:600 10.5px var(--f-ui);letter-spacing:.02em;white-space:nowrap}
/* 20/11/2026: confluence grade pill on each History card (navy, like the report's grade chip; darker = more confluence) */
.hps{display:flex;align-items:center;gap:6px;flex:none}
.hgp{flex:none;padding:3px 8px;border-radius:2px;font:700 10px var(--f-ui);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.hgp.gH{background:#16233F;color:#fff}
.hgp.gM{background:#D9E1EC;color:#16233F}
.hgp.gL{background:#fff;color:#4A5B73;box-shadow:inset 0 0 0 1px #C9D2DE}
.hmore{grid-column:1/-1;display:flex;justify-content:center;padding-top:8px}
.hmore .btn{height:42px;padding:0 26px;border:0;cursor:pointer;font-family:inherit}
.hnone{grid-column:1/-1;padding:24px;font-size:14px;color:#4A5B73}
.hlb{position:fixed;inset:0;z-index:90;background:rgba(10,26,51,.84);display:flex;align-items:center;justify-content:center;padding:24px}
.hlbin{display:flex;flex-direction:column;gap:10px;width:min(1200px,100%,calc((100vh - 110px) * 16 / 9));max-height:100%}
.hlbt{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff;font-size:14px}
.hlbt b{color:#fff;font-weight:600}.hlbt .hd{color:#AEBBCD;margin:0 6px}
.hlbt .hx{flex:none;background:none;border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:6px;font:500 13px var(--f-ui);padding:7px 14px;cursor:pointer}
.hlbin img{display:block;width:100%;height:auto;max-height:calc(100vh - 110px);object-fit:contain;border-radius:4px}
html.hlock{overflow:hidden}
@media (max-width:1100px){.hgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){
  main#view.hp>.hhead{top:var(--mtop,0px);margin:-22px -16px 0;padding:14px 16px 0}
  main#view.hp>.hhead .rtop{padding-bottom:12px!important}
  main#view.hp>.hhead .hnote{display:none}
  .hfil{gap:6px;padding:8px 0}
  .hfil select{flex:1 1 0;min-width:0}
  .hms{flex:1 1 0;min-width:0}
  .hfil .hmsb{width:100%;max-width:none}
  .hcard{cursor:default;pointer-events:none}   /* phones: no large-chart viewer, the card is not tappable */
  .hcnt{flex:1 0 100%;margin-left:0;gap:12px}
  .hcnt .hl,.hcnt .hbar{display:none}
}
@media (max-width:560px){.hgrid{grid-template-columns:1fr;gap:12px}}

/* 17/11/2026 (Roberto, opción A): on wide screens the report text uses the full width of its column (no white gap at the sides) */
@media (min-width:1101px){
  .rp .sheetwrap iframe{max-width:none}
}

/* 17/11/2026 (Roberto): fixed strip above the report (pair and date) on a computer; only the report scrolls below it. Phones: hidden */
.viewer .rbar{display:none}
@media (min-width:1101px){
  .rp .viewer .rbar{display:flex;flex:none}
  .rp .viewer .rbar b{color:var(--ink);font-weight:600}
}

/* 17/11/2026 (Roberto): on a computer the chart is never taller than the screen allows (header + chart + levels fit in one screen); the report text gets the rest of the width */
@media (min-width:1101px){
  .rp[data-layout="c"] .rgrid{grid-template-columns:minmax(420px,min(52%,calc((100vh - 380px) / .7 + 32px))) minmax(0,1fr)}
}
/* Computer strip (layout C): no date separators between reports; each report shows its own short date (Nov 17) */
.ritem .m b .rd{display:none}
@media (min-width:1101px){
  .rp[data-layout="c"] .rlist .day.dsep{display:none}
  .rp[data-layout="c"] .rlist .ritem .m b .rd{display:inline;font-family:inherit;font-size:inherit;font-weight:500;color:var(--muted)}
}
/* ===== V1 (17/11/2026, Roberto): computer reports layout. Phones and tablets (<1101 px) unchanged =====
   1101-2299 px: strip on top as before; report at the LEFT, chart + levels at the RIGHT (~40%, min 480 px) */
@media (min-width:1101px){
  .rp[data-layout="c"] .rgrid{grid-template-columns:minmax(0,1fr) minmax(480px,40%)}
  .rp[data-layout="c"] .viewer{grid-column:1}
  .rp[data-layout="c"] .chartc{grid-column:2}
}
/* >=2300 px (chart gets ~700 px or more): three columns. Vertical report list (420-480, own scroll) · report (rest, text up to 900 px) · chart + levels (up to 760) */
@media (min-width:2300px){
  .rp[data-layout="c"] .rgrid{grid-template-columns:minmax(420px,480px) minmax(840px,1fr) minmax(0,760px);grid-template-rows:minmax(0,1fr)}
  .rp[data-layout="c"] .sheetwrap iframe{max-width:900px}   /* report text up to ~900 px, centred in its box */
  .rp[data-layout="c"] .rlist{grid-column:1;grid-row:1;display:block;overflow-x:hidden;overflow-y:auto}
  .rp[data-layout="c"] .rlist .rarr{display:none}
  .rp[data-layout="c"] .rlist .ritem{width:100%;border-left:0;border-top:1px solid var(--line-soft);padding:12px 18px}
  .rp[data-layout="c"] .rlist .ritem .m b{white-space:normal}
  .rp[data-layout="c"] .rlist .ritem.on{box-shadow:inset 3px 0 0 var(--ink)}
  .rp[data-layout="c"] .viewer{grid-column:2;grid-row:1}
  .rp[data-layout="c"] .chartc{grid-column:3;grid-row:1}
}
/* 17/11/2026 (Roberto): levels box on a computer: the name shrinks and is cut with "…", always at least 8 px before the price */
@media (min-width:1101px){
  .lvx .lvx-z .lvx-r,.lvx .lvx-lv .lvx-r{gap:8px}
  .lvx .lvx-z .nm,.lvx .lvx-lv .nm{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lvx .lvx-z .v,.lvx .lvx-lv .v{flex:none;min-width:0}
}
/* 17/11/2026 (Roberto): laptop (1101-2299 px): levels box with one level per line, full name and the price at the right */
@media (min-width:1101px) and (max-width:2299px){
  .lvx .lvx-z{grid-template-columns:minmax(0,1fr)}
  .lvx .lvx-lv .lvx-g{columns:1}
}
/* 17/11/2026 (Roberto, "pantalla quieta"): on a computer the PAGE never scrolls. Title, buttons and the report strip (or the vertical
   list from 2300 px) stay put; the two boxes fill the rest of the screen. Only the report text scrolls inside its box; the chart column
   fits whole (the chart shrinks; with many levels only the levels box scrolls). Phones unchanged */
@media (min-width:1101px){
  main#view.rp[data-layout="c"]{height:100vh;box-sizing:border-box;padding-bottom:16px;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  main#view.rp[data-layout="c"]>.rgrid{height:auto;min-height:0}
  .rp[data-layout="c"] .chartc{overflow:hidden;min-height:0}
  .rp[data-layout="c"] .chartc>*{flex:none}
  .rp[data-layout="c"] .chartc img{flex:1 1 0;min-height:100px;height:auto;max-height:calc((100cqw - 32px) * .5625);margin:0;object-fit:contain;object-position:center top}   /* 16:9 chart: never distorted, no white gap */
  .rp[data-layout="c"] .chartc .lvx{flex:0 1 auto;min-height:110px;overflow-y:auto}
}
/* 17/11/2026 (Roberto, fotos Mac + LG): chart column on a computer. The chart always uses the full width of its column (16:9, never
   distorted, same edges as the levels); the levels box is compact (~31 px rows) and only as tall as its content. If chart + levels don't
   fit in the screen, that right column scrolls (the page still never moves) */
@media (min-width:1101px){
  .rp[data-layout="c"] .chartc{align-self:start;max-height:100%;overflow-x:hidden;overflow-y:auto;gap:8px}
  .rp[data-layout="c"] .chartc img{flex:none;display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:16/9;object-fit:fill;margin:0}
  .rp[data-layout="c"] .chartc .lvx{flex:none;min-height:0;overflow:visible;padding:8px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;gap:2px}
  .rp[data-layout="c"] .chartc .lvx .lvx-h{min-height:0}
  .rp[data-layout="c"] .chartc .lvx .lvx-s{margin:4px 0 0;font-size:12px}
  .rp[data-layout="c"] .chartc .lvx .lvx-lv{gap:2px}
  .rp[data-layout="c"] .chartc .lvx .lvx-z .lvx-r,.rp[data-layout="c"] .chartc .lvx .lvx-lv .lvx-r{padding:3px 0;min-height:30px;box-sizing:border-box}
  .rp[data-layout="c"] .chartc .lvx .ic{width:24px;height:24px}
}
/* ===== 17/11/2026 (Roberto, versión final) ===== */
/* no confluence pills anywhere (computer and phone) */
.chartc .gp{display:none!important}
.rhead,.lvz{display:none}
.rbody{display:contents}
@media (min-width:1101px){
  /* small spaces: top 18, title-strip 10, strip-sheet 8 */
  main#view.rp[data-layout="c"]{padding-top:18px;row-gap:10px}
  .rp[data-layout="c"] .rgrid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);row-gap:8px}
  .rp[data-layout="c"] .rlist{grid-column:1;grid-row:1}
  /* the strip shows the zone status only in "Últimos 7 días" */
  #view.rp[data-layout="c"]:not([data-zf="all"]) .rlist .ritem .zs{display:none}
  /* ONE white sheet: header line on top, report (scrolls) at the left, chart + levels (still) at the right */
  .rp[data-layout="c"] .rbody{display:grid;grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr) minmax(480px,40%);grid-template-rows:auto minmax(0,1fr);column-gap:24px;row-gap:8px;min-height:0;overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:4px}
  .rp[data-layout="c"] .rbody .card{border:0;border-radius:0;box-shadow:none;background:transparent}
  .rp[data-layout="c"] .rbody .rhead{display:flex;grid-column:1/-1;grid-row:1;align-items:baseline;gap:12px;padding:12px 20px 10px;border-bottom:1px solid var(--line);overflow:visible}
  .rp[data-layout="c"] .rbody .rhead b{font-family:"Circular Std",var(--f-ui);font-size:18px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
  .rp[data-layout="c"] .rbody .rhead .dir{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
  .rp[data-layout="c"] .rbody .viewer{grid-column:1;grid-row:2;min-height:0;display:flex;flex-direction:column}
  .rp[data-layout="c"] .rbody .viewer .rbar{display:none}
  .rp[data-layout="c"] .rbody .chartc{grid-column:2;grid-row:2;align-self:stretch;min-height:0;max-height:none;overflow:hidden;display:flex;flex-direction:column;gap:8px;padding:6px 20px 12px 0}
  .rp[data-layout="c"] .rbody .chartc .ch,.rp[data-layout="c"] .rbody .chartc .zsn{display:none}
  .rp[data-layout="c"] .rbody .chartc>*{flex:none}
  /* chart: full column width; if chart + levels don't fit, the chart shrinks (that column never scrolls) */
  .rp[data-layout="c"] .rbody .chartc img{flex:0 1 auto;display:block;width:100%;height:auto;aspect-ratio:16/9;min-height:120px;max-height:none;object-fit:contain;object-position:left top;margin:0}
  /* zone of interest + grade inside "Report levels" */
  .rp[data-layout="c"] .rbody .lvz{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:2px 0 4px}
  .rp[data-layout="c"] .rbody .lvz .cap{font:500 11px "Circular Std","Inter Tight",var(--f-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
  .rp[data-layout="c"] .rbody .lvz b{font:600 14px var(--f-mono);color:var(--ink)}
  .rp[data-layout="c"] .rbody .lvz .g{font-size:12px;color:var(--body)}
}
@media (min-width:2300px){
  /* big monitor: vertical list at the left + the same sheet; chart column up to 760 px */
  .rp[data-layout="c"] .rgrid{grid-template-columns:minmax(420px,480px) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .rp[data-layout="c"] .rlist{grid-column:1;grid-row:1}
  .rp[data-layout="c"] .rbody{grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr) minmax(480px,760px)}
}
/* 17/11/2026 (Roberto, ajustes sobre la versión aprobada) — computer only */
@media (min-width:1101px){
  /* 1) no "Gráfico · H1" label (the image already says it) */
  .rp[data-layout="c"] .rbody .chartc .cl{display:none}
  /* 2) chart always at the full width of its column (same edges as the levels); on a very short window that column scrolls */
  .rp[data-layout="c"] .rbody .chartc{overflow-y:auto;padding-top:14px}
  .rp[data-layout="c"] .rbody .chartc img{flex:none;width:100%;height:auto;aspect-ratio:16/9;min-height:0;object-fit:fill}
  /* 3) no "Zona de interés" line in the levels (the edges below are the ones to copy) */
  .rp[data-layout="c"] .rbody .lvz{display:none}
  /* 4) grade at the right of the header line, above the chart */
  .rp[data-layout="c"] .rbody .rhead .hg{margin-left:auto;font-size:12.5px;color:var(--body);white-space:nowrap}
  /* 5) strip: coloured arrow + pair + date; no zone and no grade */
  .rp[data-layout="c"] .rlist .ritem .m>span,.rp[data-layout="c"] .rlist .ritem .r .gr{display:none}
  .rp[data-layout="c"] .rlist .ritem .ar{color:#13804C}
  .rp[data-layout="c"] .rlist .ritem .ar.dn{color:#B83A38}
}
/* 17/11/2026 (Roberto): big monitor, vertical list: the zone status sits in its own column, at the same position in every row */
@media (min-width:2300px){
  .rp[data-layout="c"] .rlist .ritem .m b{display:grid;grid-template-columns:4.7em 4.6em max-content;align-items:center;column-gap:4px;white-space:nowrap}
  .rp[data-layout="c"] .rlist .ritem .m b .zs{margin-left:0}
}
/* 17/11/2026 (Roberto, URGENTE): the chart column never moves. The chart never scrolls or shrinks (only on a very short window, min
   180 px), the "Niveles del reporte" title stays put, and ONLY the list of levels under it scrolls in its own space, with a soft shadow
   at the bottom when there is more. The column itself and the page never scroll; the wheel over the chart moves nothing */
@media (min-width:1101px){
  .rp[data-layout="c"] .rbody .chartc{overflow:hidden}
  .rp[data-layout="c"] .rbody .chartc img{flex:0 1 auto;min-height:180px;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:left top}
  .rp[data-layout="c"] .rbody .chartc .lvx{flex:1 1 0;min-height:120px;overflow-y:auto;overscroll-behavior:contain;padding-top:0;
    background:linear-gradient(rgba(255,255,255,0),var(--paper) 70%) 0 100%/100% 28px no-repeat local,radial-gradient(farthest-side at 50% 100%,rgba(10,26,51,.22),rgba(10,26,51,0)) 0 100%/100% 12px no-repeat scroll,var(--paper)}
  .rp[data-layout="c"] .rbody .chartc .lvx .lvx-h{position:sticky;top:0;z-index:1;background:var(--paper);padding:8px 0 4px}
}
/* 17/11/2026 (Roberto): levels under the chart as ONE continuous list, no sub-titles ("Zona de compra", "Niveles (mismos números…)");
   the zone edges keep their blue dots and the rest their numbers. Computer only */
@media (min-width:1101px){
  .rp[data-layout="c"] .rbody .chartc .lvx .lvx-s{display:none}
  .rp[data-layout="c"] .rbody .chartc .lvx .lvx-z{grid-template-columns:minmax(0,1fr)}
  .rp[data-layout="c"] .rbody .chartc .lvx .lvx-lv .lvx-g{columns:1}
  .rp[data-layout="c"] .rbody .chartc .lvx .lvx-lv{gap:0}
}
/* ===== 17/11/2026 (Roberto): phones and tablets (<1101 px), same content rules as the computer; one column and normal PAGE scroll ===== */
@media (max-width:1100px){
  /* report list (grouped by day): coloured arrow + pair; no date (it is in the day title), no zone, no grade; status only in "Todos" */
  .rp[data-layout="c"] .rlist .ritem .m>span,.rp[data-layout="c"] .rlist .ritem .r .gr{display:none}
  #view.rp[data-layout="c"]:not([data-zf="all"]) .rlist .ritem .zs{display:none}
  .rp[data-layout="c"] .rlist .ritem .ar{color:#13804C}
  .rp[data-layout="c"] .rlist .ritem .ar.dn{color:#B83A38}
  /* report card header: pair · direction · date, grade below; no "Zona activa", no zone of interest */
  .rp[data-layout="c"] .rhead{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:12px 16px}
  .rp[data-layout="c"] .rhead b{font-family:"Circular Std",var(--f-ui);font-size:19px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
  .rp[data-layout="c"] .rhead .dir{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
  .rp[data-layout="c"] .rhead .hg{flex-basis:100%;font-size:12.5px;color:var(--body)}
  /* no own header and no "Gráfico · H1" label in the chart card; chart at full width */
  .rp[data-layout="c"] .chartc .ch,.rp[data-layout="c"] .chartc .cl{display:none}
  .rp[data-layout="c"] .chartc img{width:100%;height:auto}
  /* levels: one continuous list (blue edges + numbered), no sub-titles; "Ver los N niveles" stays */
  .rp[data-layout="c"] .chartc .lvx .lvx-s{display:none}
  .rp[data-layout="c"] .chartc .lvx .lvx-lv{gap:0}
}

/* 25/11/2026 barra-archivados: el reporte elegido en la barra se marca fuerte (solo compu) */
@media (min-width:1101px){.rp[data-layout="c"] .rlist .ritem.on{background:#0E1B2E;box-shadow:none}.rp[data-layout="c"] .rlist .ritem.on .m b,.rp[data-layout="c"] .rlist .ritem.on .m>span,.rp[data-layout="c"] .rlist .ritem.on .rd,.rp[data-layout="c"] .rlist .ritem.on .r,.rp[data-layout="c"] .rlist .ritem.on .r span.gr,.rp[data-layout="c"] .rlist .ritem.on .ar{color:#fff!important}html.t5 body .rp[data-layout="c"] .rlist .ritem.on{background:#DDFD6C;border-color:#DDFD6C!important}html.t5 body .rp[data-layout="c"] .rlist .ritem.on .m b,html.t5 body .rp[data-layout="c"] .rlist .ritem.on .m>span,html.t5 body .rp[data-layout="c"] .rlist .ritem.on .rd,html.t5 body .rp[data-layout="c"] .rlist .ritem.on .r,html.t5 body .rp[data-layout="c"] .rlist .ritem.on .r span.gr,html.t5 body .rp[data-layout="c"] .rlist .ritem.on .ar{color:#111!important}}
/* 25/11/2026 barra3: no scrollbar under the report strip (a stray click on it made the whole row jump); arrows, trackpad and wheel still move it */
@media (min-width:1101px){.rp[data-layout="c"] .rlist{scrollbar-width:none}.rp[data-layout="c"] .rlist::-webkit-scrollbar{display:none}}
