/* Graph 2 additions (kept apart from graph2.css): cursors, the chart type grid, the layout manager, the
   Premium chip. */

/* ---- cursors that say what a drag will do. The chart: a cross to aim, a closed hand while it is held and
   moved (graph2_pane.js adds .g2-grabbing); drawings show "move" (set by the pane); the price and time scales
   keep the chart library's own resize cursors. Watchlist rows and sections can be dragged too. */
.g2-chart{cursor:crosshair}
.g2-grabbing,.g2-grabbing .g2-chart,.g2-grabbing canvas{cursor:grabbing!important}
.g2-w-sec{cursor:grab}
.g2-w-row:active,.g2-w-sec:active{cursor:grabbing}

/* ---- chart types: a 3-column grid with a picture of each */
.g2-menu.g2-type-grid{width:372px;padding:8px 10px 10px}
.g2-tg-h{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:8px 4px 6px}
.g2-tg-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.g2-type-grid button[data-type]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:66px;padding:6px 4px;
  border:1px solid var(--line);border-radius:10px;background:var(--panel);text-align:center;font-size:12px;font-weight:550;line-height:1.15}
.g2-type-grid button[data-type] .ic{width:24px;height:24px;stroke-width:1.6}
.g2-type-grid button[data-type]:hover{border-color:var(--accent);background:var(--hover)}
.g2-type-grid button[data-type].active{border-color:var(--accent);background:rgba(41,98,255,.12);color:var(--accent)}

/* ---- the layout manager */
.g2-lm-btn{gap:6px;max-width:220px}
.g2-lm-btn #g2-lm-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px;font-weight:600}
.g2-lm-btn .g2-chev{width:14px;height:14px;opacity:.6}
.g2-lm-dot{width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none}
.g2-lm-dot[hidden]{display:none}
.g2-menu.g2-lm-menu{width:292px;right:0;left:auto;padding:6px}
.g2-lm-menu button{display:flex;align-items:center;justify-content:space-between;gap:10px}
.g2-lm-menu button[disabled]{opacity:.45;cursor:default}
.g2-lm-menu kbd{font:600 11px/1 var(--font-ui,Inter,sans-serif);flex:none;color:var(--muted);background:var(--panel2);border-radius:5px;padding:3px 6px}
.g2-lm-cur{padding:8px 10px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.g2-lm-cur b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g2-lm-cur small{color:var(--muted);font-size:12px}
.g2-lm-auto{margin:2px 0}
.g2-lm-menu .g2-lm-recent{flex-direction:column;align-items:flex-start;gap:1px}
.g2-lm-menu .g2-lm-recent b{font-size:13px;font-weight:600}
.g2-lm-menu .g2-lm-recent small{font-size:11.5px;color:var(--muted)}
.g2-lm-menu .g2-lm-recent.cur{background:var(--panel2)}
.g2-lm-ask{display:flex;flex-direction:column;gap:8px;padding:4px}
.g2-lm-ask input{height:36px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--text);padding:0 10px;font:inherit}
.g2-lm-ask input:focus{outline:none;border-color:var(--accent)}
.g2-lm-ask-b{display:flex;justify-content:flex-end;gap:6px}
.g2-lm-ask-b button{display:inline-flex}
.g2-lm-card{width:min(560px,calc(100vw - 32px));max-height:min(620px,80vh);display:flex;flex-direction:column;gap:10px;padding:18px 20px}
.g2-lm-mh{display:flex;align-items:center;justify-content:space-between}
.g2-lm-mh h3{margin:0;font-size:20px}
.g2-lm-q{height:40px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--text);padding:0 12px;font:inherit}
.g2-lm-q:focus{outline:none;border-color:var(--accent)}
.g2-lm-sort{display:flex;gap:6px}
.g2-lm-sort button{border:1px solid var(--line);background:none;color:var(--text);border-radius:999px;padding:4px 12px;font:inherit;font-size:12.5px;cursor:pointer}
.g2-lm-sort button.on{background:var(--accent);border-color:var(--accent);color:#fff}
.g2-lm-list{overflow:auto;display:flex;flex-direction:column;gap:4px;min-height:120px}
.g2-lm-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;cursor:pointer;border:1px solid transparent}
.g2-lm-row:hover{background:var(--hover)}
.g2-lm-row.cur{border-color:var(--accent)}
.g2-lm-row .t{flex:1;min-width:0}
.g2-lm-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g2-lm-row small{color:var(--muted);font-size:12px}
.g2-lm-row .n{font-size:12px;color:var(--muted);white-space:nowrap}
.g2-lm-row [data-del]{opacity:.45}
.g2-lm-row:hover [data-del]{opacity:1}
.g2-lm-empty{color:var(--muted);text-align:center;padding:30px 10px}

/* ---- the Premium chip (last week only): one line, never pushes the bar around */
#g2-premium{white-space:nowrap;flex:none;max-width:200px;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1100px){.g2-lm-btn #g2-lm-name{max-width:90px}}
@media (max-width:800px){.g2-lm-btn .g2-lbl{display:none}}
.g2-lm-menu button>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- the layout menu, redesigned: a header with the layout and its state, icon tiles for the main actions,
   icon rows for the rest */
.g2-menu.g2-lm-menu{width:328px;padding:8px}
.g2-lm-top{display:flex;align-items:center;gap:10px;padding:6px 6px 10px}
.g2-lm-badge{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none;background:rgba(41,98,255,.12);color:var(--accent)}
.g2-lm-badge .ic{width:20px;height:20px}
.g2-lm-top .t{min-width:0;display:flex;flex-direction:column;gap:3px}
.g2-lm-top b{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g2-lm-pill{align-self:flex-start;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px}
.g2-lm-pill.ok{background:rgba(38,166,154,.14);color:#1f9c8f}
.g2-lm-pill.warn{background:rgba(245,185,66,.18);color:#c98a12}
.g2-lm-pill.muted{background:var(--panel2);color:var(--muted)}
.g2-lm-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:0 2px 8px}
.g2-lm-menu .g2-lm-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:62px;padding:6px 2px;border-radius:10px;
  border:1px solid var(--line);background:var(--panel);font-size:11.5px;font-weight:600;color:var(--text);text-align:center}
.g2-lm-menu .g2-lm-tile .ic{width:20px;height:20px;stroke-width:1.7}
.g2-lm-menu .g2-lm-tile:hover:not([disabled]){border-color:var(--accent);background:rgba(41,98,255,.08);color:var(--accent)}
.g2-lm-menu .g2-lm-tile[disabled]{opacity:.4}
.g2-lm-menu .g2-lm-row{display:flex;align-items:center;justify-content:flex-start;gap:11px;width:100%;padding:8px 10px;border-radius:8px;text-align:left}
.g2-lm-row>.ic{width:18px;height:18px;flex:none;color:var(--muted)}
.g2-lm-row>span{flex:1;min-width:0;display:flex;flex-direction:column;white-space:normal}
.g2-lm-row>span small{font-size:11.5px;color:var(--muted);font-weight:400}
.g2-lm-row>span b{font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g2-lm-row:hover>.ic{color:var(--accent)}
label.g2-lm-row{cursor:pointer}
label.g2-lm-row:hover{background:var(--hover)}
.g2-lm-row.g2-lm-recent.cur{background:var(--panel2)}
.g2-lm-row.g2-lm-recent.cur>.ic{color:var(--accent)}
.g2-lm-menu .g2-lm-row.g2-lm-recent{flex-direction:row;align-items:center;gap:11px}
.g2-lm-menu label.g2-lm-row.g2-tg{justify-content:flex-start;padding:8px 10px;border-radius:8px}

/* ---- a visitor without an account (graph2_guest.js) */
.g2-guest-in{text-decoration:none}
.g2-guest-up{text-decoration:none;margin-right:4px}
.g2-guest-wall{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(5,7,12,.55);backdrop-filter:blur(3px)}
.g2-guest-card{position:relative;width:100%;max-width:400px;padding:26px 24px 20px;border-radius:18px;background:var(--panel, #131722);color:var(--text, #e6e8ee);
  border:1px solid var(--line, #323848);box-shadow:0 24px 60px rgba(0,0,0,.45);text-align:center}
.g2-guest-mark{width:46px;height:46px;margin:0 auto 10px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;
  color:#17130a;background:linear-gradient(180deg,#ffcf6b,#F5B942)}
.g2-guest-card h3{margin:0 0 8px;font-size:19px}
.g2-guest-card p{margin:0 0 14px;color:var(--muted, #8b90a0);font-size:14px;line-height:1.5}
.g2-guest-card ul{list-style:none;margin:0 0 18px;padding:0;text-align:left;font-size:13.5px;display:flex;flex-direction:column;gap:7px}
.g2-guest-card li:before{content:"✓";color:#26a69a;font-weight:700;margin-right:8px}
.g2-guest-card .g2-wide{display:flex;justify-content:center;width:100%;height:42px;align-items:center;text-decoration:none;font-weight:700}
.g2-guest-alt{display:block;margin-top:10px;font-size:13px;color:var(--muted, #8b90a0);text-decoration:none}
.g2-guest-alt:hover{color:var(--text, #e6e8ee);text-decoration:underline}
.g2-guest-x{position:absolute;top:10px;right:10px}
.g2-guest-bar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:250;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);
  padding:10px 10px 10px 16px;border-radius:14px;background:var(--panel, #131722);color:var(--text, #e6e8ee);border:1px solid rgba(245,185,66,.45);
  box-shadow:0 14px 40px rgba(0,0,0,.4);font-size:13.5px;animation:g2GuestUp .25s ease}
.g2-guest-bar .g2-gold{text-decoration:none;white-space:nowrap}
@keyframes g2GuestUp{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translateX(-50%)}}
/* a visitor has no layouts to keep (the layout menu), and Sign in is in every sign-up card: room in the bar */
.g2-is-guest #g2-lm-dd{display:none}
@media (max-width:1700px){.g2-guest-in{display:none}}
@media (max-width:640px){.g2-guest-bar span{font-size:12.5px}}
