/* REDMAMMOTH brand palette - same as the panels, so the product feels
   like one thing across MetaTrader and the browser. */
:root{
  --navy:#14213D; --ox:#6E1D26; --gold:#C4A35A; --ivory:#F6F2E8;
  --graphite:#23262B; --slate:#6E7A8A; --oxdark:#5A1720;
  --line:#2E3238;
}
*{box-sizing:border-box}
body{margin:0;background:var(--navy);color:var(--ivory);
     font:14px/1.5 -apple-system,Segoe UI,Roboto,Arial,sans-serif}
a{color:var(--gold)}
.top{display:flex;align-items:center;gap:14px;padding:10px 16px;
     background:var(--ox);border-bottom:1px solid var(--gold)}
.brand{font-weight:700;letter-spacing:.5px;color:var(--gold)}
.top .sp{flex:1}
.top .who{color:var(--ivory);font-size:13px;opacity:.85}
.btn{display:inline-block;padding:8px 14px;border:1px solid var(--gold);
     border-radius:4px;background:var(--graphite);color:var(--ivory);
     text-decoration:none;cursor:pointer;font-size:13px}
.btn.on{background:var(--ox)}
.btn:hover{background:var(--oxdark)}
.wrap{max-width:1200px;margin:0 auto;padding:16px}
.card{background:var(--graphite);border:1px solid var(--line);
      border-radius:6px;padding:16px;margin-bottom:14px}
.syms{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#chart{height:560px;width:100%;background:var(--graphite);
       border:1px solid var(--line);border-radius:6px}
.login{max-width:380px;margin:9vh auto;padding:0 16px}
.login h1{color:var(--gold);font-size:20px;margin:0 0 4px}
.login p.sub{color:var(--slate);margin:0 0 20px;font-size:13px}
label{display:block;margin:0 0 12px}
label span{display:block;font-size:12px;color:var(--slate);margin-bottom:4px}
input{width:100%;padding:10px;border:1px solid var(--line);border-radius:4px;
      background:var(--navy);color:var(--ivory);font-size:14px}
input:focus{outline:none;border-color:var(--gold)}
button.primary{width:100%;padding:11px;border:0;border-radius:4px;
     background:var(--ox);color:var(--ivory);font-size:14px;cursor:pointer}
button.primary:hover{background:var(--oxdark)}
.err{background:var(--oxdark);border:1px solid var(--ox);padding:10px;
     border-radius:4px;margin-bottom:14px;font-size:13px}
.hint{color:var(--slate);font-size:12px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{padding:3px 9px;border-radius:10px;font-size:11px;
      background:var(--navy);border:1px solid var(--line);color:var(--slate)}
.chip.on{border-color:var(--gold);color:var(--gold)}
.warn{background:#4a3a10;border:1px solid var(--gold);color:var(--ivory);
      padding:8px 12px;font-size:12px;text-align:center}
@media(max-width:700px){#chart{height:62vh}.wrap{padding:10px}}

/* ---------------------------------------------------------------
   Filters.

   293 zones at once is unreadable - the first build drew every line
   on top of every other and produced a rainbow. The MT5 indicator
   solved this years ago with its on-chart panel; this is the same
   idea with the room a browser gives.

   Wide screens get a sidebar. Narrow screens get a sheet that slides
   up OVER the chart and closes after a choice: a permanent sidebar on
   a 375px phone leaves about 200px for the chart, which is useless.
   Most customers without a computer will be on a phone.
   --------------------------------------------------------------- */
.layout{display:flex;gap:14px;align-items:flex-start}
.side{width:230px;flex:0 0 230px;background:var(--graphite);
      border:1px solid var(--line);border-radius:6px;padding:12px;
      max-height:calc(100vh - 120px);overflow-y:auto}
.side h3{margin:0 0 8px;font-size:11px;letter-spacing:.08em;
         text-transform:uppercase;color:var(--gold)}
.side .grp{margin-bottom:16px}
.main{flex:1;min-width:0}

.opt{display:flex;align-items:center;gap:8px;padding:6px 8px;
     border-radius:4px;cursor:pointer;font-size:13px;user-select:none}
.opt:hover{background:var(--navy)}
.opt.on{background:var(--ox)}
.opt .n{margin-left:auto;font-size:11px;color:var(--slate)}
.opt.on .n{color:var(--ivory)}
.opt .sw{width:12px;height:12px;border-radius:3px;border:1px solid var(--slate);
         flex:0 0 12px}
.opt.on .sw{background:var(--gold);border-color:var(--gold)}

.sheetbtn{display:none}
.scrim{display:none}

/* what a tapped line says */
#tip{position:absolute;z-index:40;background:var(--graphite);
     border:1px solid var(--gold);border-radius:6px;padding:10px 12px;
     font-size:12px;max-width:260px;pointer-events:none;display:none;
     box-shadow:0 6px 20px rgba(0,0,0,.5)}
#tip b{color:var(--gold)}
#tip .px{font-size:16px;display:block;margin-top:4px}

@media(max-width:860px){
  .layout{display:block}
  .main{width:100%}
  .sheetbtn{display:flex;align-items:center;gap:8px;position:fixed;
            left:50%;transform:translateX(-50%);bottom:14px;z-index:50;
            padding:12px 22px;border-radius:24px;background:var(--ox);
            color:var(--ivory);border:1px solid var(--gold);font-size:14px;
            box-shadow:0 4px 16px rgba(0,0,0,.5);cursor:pointer}
  .side{position:fixed;left:0;right:0;bottom:0;width:auto;flex:none;
        max-height:72vh;border-radius:14px 14px 0 0;z-index:60;
        transform:translateY(100%);transition:transform .22s ease;
        padding-bottom:26px}
  .side.open{transform:translateY(0)}
  .scrim.open{display:block;position:fixed;inset:0;z-index:55;
              background:rgba(0,0,0,.5)}
  .side .close{display:block;width:100%;margin-top:10px;padding:11px;
               border:0;border-radius:6px;background:var(--navy);
               color:var(--ivory);font-size:14px;cursor:pointer}
  .opt{padding:11px 10px;font-size:15px}   /* finger-sized, not mouse-sized */
}
@media(min-width:861px){ .side .close{display:none} }

/* collapsible filter groups */
.grp .gh{display:flex;align-items:center;gap:6px;cursor:pointer;
         margin:0 0 8px;padding:4px 0}
.grp .cv{transition:transform .15s ease;color:var(--slate);font-size:11px}
.grp.shut .cv{transform:rotate(-90deg)}
.grp .sum{margin-left:auto;font-size:10px;color:var(--slate);
          text-transform:none;letter-spacing:0;font-weight:400;
          max-width:110px;overflow:hidden;text-overflow:ellipsis;
          white-space:nowrap}
.grp.shut .gb{display:none}
.grp{border-bottom:1px solid var(--line);padding-bottom:10px}
.grp:last-of-type{border-bottom:0}
