/* ===== VigyaanVest Workspace — unified Deck / Grid / Settings ===== */
body { margin: 0; background: var(--bg); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); } .neg { color: var(--neg); }

.shell { width: 1440px; height: 900px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }

/* ---- shared top bar ---- */
.topbar { height: 50px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.topbar .mark { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.topbar .mark .v { width: 22px; height: 22px; border-radius: 6px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; }
.topbar .mark .logo { height: 24px; width: auto; display: block; }
.topbar .mark .mark-txt { display: flex; flex-direction: column; line-height: 1.05; }
.topbar .mark .mark-by { font-size: 9px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.viewseg { display: inline-flex; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
.viewseg button { font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 6px 14px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.viewseg button.on { background: var(--green); color: #fff; }
.cmd { flex: 1; max-width: 360px; display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 12px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: 12.5px; cursor: text; }
.cmd .kbd { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-3); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; }
.topbar .spacer { flex: 1; }
.clocks { display: flex; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.clocks b { color: var(--text-dim); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--pos); }
.live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ibtn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ibtn:hover { background: var(--bg-hover); color: var(--text); }

/* ---- view system ---- */
.viewport { flex: 1; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; display: none; }
.view.on { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #view-deck.on, #view-grid.on, .view.on, .cal-overlay.on, .dock-overlay.on { animation: none !important; } }

/* ================= DECK ================= */
#view-deck { display: none; }
#view-deck.on { display: grid; grid-template-rows: 1fr 104px; grid-template-columns: 250px 1fr 340px; grid-template-areas: "left center right" "ribbon ribbon ribbon"; animation: fade .18s ease; }
.rail { grid-area: left; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.rail-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.rail-h .t { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rail-h .ct { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.rail-search { margin: 0 12px 8px; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-3); font-size: 11.5px; }
.rail-search:focus-within { border-color: var(--green-light); }
.rail-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-family: var(--font); font-size: 11.5px; outline: none; padding: 0; }
.rail-search input::placeholder { color: var(--text-3); }
.wl { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
.wlrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.wlrow:hover { background: var(--bg-hover); }
.wlrow.active { background: var(--green-glow); border-color: var(--green-tint); }
.wlrow .s { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--text); }
.wlrow .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.wlrow .px { font-family: var(--mono); font-size: 12px; color: var(--text-dim); text-align: right; }
.wlrow .chg { font-family: var(--mono); font-size: 10.5px; text-align: right; grid-column: 2; }
.wlrow .ev { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 3px; }
.wlrow .ev .cd { font-family: var(--mono); color: var(--green-light); }

.center { grid-area: center; overflow-y: auto; padding: 16px 18px; }
.sym-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 4px; }
.sym-head .tk { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.sym-head .co { font-size: 13px; color: var(--muted); padding-bottom: 3px; }
.sym-head .px { margin-left: auto; text-align: right; }
.sym-head .px .v { font-family: var(--mono); font-size: 26px; font-weight: 500; line-height: 1; }
.sym-head .px .c { font-family: var(--mono); font-size: 13px; margin-top: 3px; }
.verdict { display: flex; align-items: center; gap: 8px; margin: 10px 0 16px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.verdict .lead { color: var(--muted); }
.verdict b { font-family: var(--mono); }
.mstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.mc { background: var(--bg-card); padding: 9px 11px; }
.mc .l { font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mc .v { font-family: var(--mono); font-size: 15px; color: var(--text); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-bottom: 16px; }
.panel { border: 1px solid var(--border); border-radius: 11px; background: var(--bg-card); overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.panel-h .t { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.panel-h .meta { font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.chart-wrap { padding: 8px; }
.setup-chips { display: flex; gap: 6px; padding: 0 12px 11px; flex-wrap: wrap; }
.schip { font-size: 10.5px; font-weight: 600; color: var(--text-dim); background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.schip.active { background: var(--green); color: #fff; border-color: var(--green); }
.kv { padding: 11px 12px; display: grid; gap: 9px; }
.kv .row { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 11.5px; }
.kv .row .k { color: var(--muted); font-weight: 600; }
.kv .row .val { color: var(--text-dim); line-height: 1.45; }
.kv .row .val.mono { font-family: var(--mono); color: var(--text); }
.bull { color: var(--pos); } .bear { color: var(--neg); }

.tape { grid-area: right; background: var(--bg-card); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.tape-h { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.tape-h .top { display: flex; align-items: center; justify-content: space-between; }
.tape-h .top .t { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.squawk-bar { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 7px 9px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 9px; }
.squawk-bar .play { width: 26px; height: 26px; border-radius: 7px; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.squawk-bar .info { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.squawk-bar .info b { color: var(--text-dim); }
.wave { display: flex; align-items: center; gap: 2px; margin-left: auto; height: 18px; }
.wave i { width: 2.5px; background: var(--green-light); border-radius: 2px; animation: wv 1s ease-in-out infinite; }
.wave i:nth-child(2){animation-delay:.15s} .wave i:nth-child(3){animation-delay:.3s} .wave i:nth-child(4){animation-delay:.1s} .wave i:nth-child(5){animation-delay:.25s}
@keyframes wv { 0%,100%{height:5px} 50%{height:16px} }
.tape-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tape-sources .lbl { width: 100%; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.tape-sources a { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--green-light); background: var(--green-glow); border: 1px solid var(--green-tint); border-radius: 999px; padding: 3px 9px; text-decoration: none; white-space: nowrap; transition: background .12s ease, color .12s ease; }
.tape-sources a:hover { background: var(--green-tint); color: var(--green-ink); }
.stream { flex: 1; overflow-y: auto; padding: 8px 12px 14px; }
.ti { padding: 10px 0; border-bottom: 1px solid var(--border); }
.ti:last-child { border-bottom: 0; }
.ti .meta { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.ti .src { font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.ti .ts { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--text-3); }
.ti .hl { font-size: 12px; line-height: 1.4; color: var(--text-dim); }
.ti.reading { background: var(--green-glow); margin: 0 -12px; padding: 10px 12px; border-radius: 9px; border-bottom: 0; }
.ti.reading .hl { color: var(--text); font-weight: 500; }
.ti.macro .src { color: var(--us); } .ti.macro.in .src { color: var(--in); }
.ti.evt .src { color: var(--green-light); }
.ti .tags { display: flex; gap: 4px; margin-top: 6px; }

.ribbon { grid-area: ribbon; background: var(--bg-card); border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.ribbon-h { display: flex; align-items: center; gap: 10px; padding: 7px 16px 4px; }
.ribbon-h .t { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ribbon-h .leg { margin-left: auto; display: flex; gap: 14px; font-size: 10px; color: var(--text-3); }
.ribbon-h .leg span { display: flex; align-items: center; gap: 5px; }
.ribbon-h .leg i { width: 7px; height: 7px; border-radius: 2px; }
.days { flex: 1; display: flex; padding: 0 8px 8px; overflow-x: auto; }
.dcol { flex: 1; min-width: 86px; padding: 6px 8px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.dcol:last-child { border-right: 0; }
.dcol.today { background: var(--green-glow); }
.dcol .dh { display: flex; align-items: baseline; gap: 5px; }
.dcol .dw { font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.dcol .dn { font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.dcol.today .dn { color: var(--green-light); }
.chip { font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.us { background: var(--us-bg); color: var(--us); } .chip.in { background: var(--in-bg); color: var(--in); } .chip.earn { background: var(--green-glow); color: var(--green-light); }

/* ================= GRID ================= */
#view-grid { display: none; }
#view-grid.on { display: grid; grid-template-rows: 36px 1fr; grid-template-columns: 214px 1fr 376px; grid-template-areas: "ticker ticker ticker" "filters table detail"; animation: fade .18s ease; }
.ticker { grid-area: ticker; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--green-glow); border-bottom: 1px solid var(--border); overflow: hidden; }
.ticker .lbl { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--green-light); flex-shrink: 0; }
.ticker .lbl .d { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); animation: pulse 1.6s infinite; }
.marquee { flex: 1; overflow: hidden; white-space: nowrap; }
.marquee .track { display: inline-flex; gap: 30px; animation: scroll 26s linear infinite; }
.marquee .it { font-size: 11.5px; color: var(--text-dim); }
.marquee .it b { font-family: var(--mono); color: var(--text); }
.marquee .it .src { color: var(--text-3); font-size: 9.5px; text-transform: uppercase; letter-spacing: .03em; margin-right: 6px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.filters { grid-area: filters; background: var(--bg-card); border-right: 1px solid var(--border); padding: 14px 13px; overflow-y: auto; }
.filters h4 { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
.filters h4.mt { margin-top: 18px; }
.seg { display: inline-flex; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; width: 100%; }
.seg button { flex: 1; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 6px 0; border-radius: 6px; cursor: pointer; }
.seg button.on { background: var(--green); color: #fff; }
.fchk { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-dim); padding: 6px 0; cursor: pointer; }
.fchk input { accent-color: var(--green); width: 15px; height: 15px; margin: 0; }
.fchk .ct { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.mini { margin-top: 18px; padding: 12px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 10px; }
.mini .lbl { font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mini .big { font-family: var(--mono); font-size: 24px; font-weight: 500; margin-top: 4px; }
.mini .sub { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.tablewrap { grid-area: table; overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 840px; }
thead th { position: sticky; top: 0; background: var(--bg-card); z-index: 2; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 11px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none; }
thead th.l { text-align: left; }
thead th:hover { color: var(--text-dim); }
thead th.sorted { color: var(--green-light); }
thead th .ar { margin-left: 3px; }
tbody td { padding: 10px; border-bottom: 1px solid var(--border); font-size: 12.5px; text-align: right; white-space: nowrap; }
tbody td.l { text-align: left; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--bg-hover); }
tbody tr.sel { background: var(--green-glow); }
tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.star { color: var(--green); } .star.off { color: var(--text-3); }
.sym { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--text); }
.co { font-size: 10px; color: var(--text-3); font-weight: 400; }
.news-on { background: var(--warn-bg) !important; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; }
.b-watch { background: var(--pos-bg); color: var(--pos); } .b-research { background: var(--info-bg); color: var(--info); } .b-ready { background: var(--green-tint); color: var(--green-light); } .b-passed { background: var(--bg-card-2); color: var(--muted); } .b-avoid { background: var(--neg-bg); color: var(--neg); }
.cd { font-family: var(--mono); font-size: 11px; }
.cd.soon { color: var(--green-light); }
.tape-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; font-family: var(--mono); font-size: 11px; }
.tape-n.hot { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.tape-n.zero { color: var(--text-3); }
.setup { font-size: 10.5px; font-weight: 600; color: var(--text-dim); }
.noresult { padding: 28px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.detail { grid-area: detail; background: var(--bg-card); border-left: 1px solid var(--border); overflow-y: auto; }
.dh { padding: 15px 16px 12px; border-bottom: 1px solid var(--border); }
.dh .top { display: flex; align-items: flex-end; gap: 10px; }
.dh .tk { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.dh .co { font-size: 11.5px; color: var(--muted); padding-bottom: 2px; }
.dh .px { margin-left: auto; text-align: right; }
.dh .px .v { font-family: var(--mono); font-size: 19px; font-weight: 500; }
.dh .px .c { font-family: var(--mono); font-size: 11px; }
.dh .pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dsec { padding: 13px 16px; border-bottom: 1px solid var(--border); }
.dsec .t { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dmetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dm { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 9px; }
.dm .l { font-size: 8.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.dm .v { font-family: var(--mono); font-size: 13px; margin-top: 3px; }
.dchart { padding: 4px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card-2); }
.detail .kv { padding: 0; }
.detail .kv .r { display: grid; grid-template-columns: 56px 1fr; gap: 8px; font-size: 11.5px; }
.detail .kv .r .k { color: var(--muted); font-weight: 600; }
.detail .kv .r .val { color: var(--text-dim); line-height: 1.4; }
.tmention { padding: 9px 0; border-bottom: 1px solid var(--border); }
.tmention:last-child { border-bottom: 0; }
.tmention .m { display: flex; gap: 7px; align-items: center; margin-bottom: 4px; }
.tmention .src { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); }
.tmention .ts { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--text-3); }
.tmention .hl { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.openbtn { display: flex; align-items: center; justify-content: center; gap: 7px; width: calc(100% - 32px); margin: 14px 16px; }

/* ================= SETTINGS ================= */
#view-settings { overflow-y: auto; }
.settings-inner { max-width: 1080px; margin: 0 auto; padding: 24px 28px 60px; }
.set-head { margin-bottom: 18px; }
.set-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.set-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.card h4 { font-size: 13px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.card .desc { font-size: 11px; color: var(--text-3); margin: 0 0 12px; line-height: 1.4; }
.card .from { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.opt { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dim); padding: 7px 0; }
.opt input[type=checkbox], .opt input[type=radio] { accent-color: var(--green); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.opt .rec { font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--green-light); background: var(--green-glow); border-radius: 5px; padding: 2px 6px; margin-left: auto; }
.opt .ctl { margin-left: auto; }
.opt select, .opt input[type=time], .opt input[type=number] { font-family: var(--mono); font-size: 12px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-card); color: var(--text); }
.opt input[type=number] { width: 64px; text-align: center; }
.opt input[type=range] { accent-color: var(--green); width: 130px; }
.opt .out { font-family: var(--mono); font-size: 11px; color: var(--green-light); width: 38px; text-align: right; }
.segrow { display: flex; gap: 8px; margin-bottom: 4px; }
.tpick { flex: 1; border: 1px solid var(--border); border-radius: 9px; padding: 10px; text-align: center; cursor: pointer; }
.tpick.sel { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-glow); }
.tpick .sw { height: 28px; border-radius: 6px; margin-bottom: 7px; border: 1px solid var(--border); }
.tpick .sw.lt { background: #f8f8f7; } .tpick .sw.dk { background: #1a1c18; }
.tpick .sw.deck { background: linear-gradient(90deg,#eff3f0 0 30%, #fff 30%); } .tpick .sw.grid { background: repeating-linear-gradient(0deg,#eff3f0 0 4px,#fff 4px 9px); }
.tpick .nm { font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.src-list { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-top: 4px; }
.src-row { display: grid; grid-template-columns: 17px 1fr; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); cursor: pointer; }
.src-row:last-child { border-bottom: 0; }
.src-row input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.setbtn { width: 100%; margin-top: 8px; }
.about { text-align: center; }
.about img { width: 56px; height: 56px; border-radius: 13px; }
.about .wm { font-size: 15px; font-weight: 700; margin-top: 8px; }
.about .tag { font-size: 12px; color: var(--muted); margin-top: 3px; }
.about .lk { display: flex; gap: 14px; justify-content: center; margin-top: 10px; }
.about .lk a { font-size: 12px; font-weight: 600; color: var(--green-light); text-decoration: none; }
.about .dis { font-size: 10.5px; color: var(--text-3); margin-top: 14px; line-height: 1.6; text-align: left; }

/* ================= ⌘K palette ================= */
.cmdk-back { position: absolute; inset: 0; background: rgba(20,20,18,0.34); backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; z-index: 100; }
.cmdk-back.on { display: flex; }
.cmdk { width: 540px; margin-top: 96px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-pop); overflow: hidden; animation: pop .14s ease; }
@keyframes pop { from { transform: translateY(-6px); opacity: .6; } }
.cmdk-in { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmdk-in svg { color: var(--muted); flex-shrink: 0; }
.cmdk-in input { flex: 1; border: 0; background: none; outline: none; font-family: var(--font); font-size: 15px; color: var(--text); }
.cmdk-in .esc { font-family: var(--mono); font-size: 10px; color: var(--text-3); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; }
.cmdk-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.cmdk-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; cursor: pointer; }
.cmdk-row.act { background: var(--green-glow); }
.cmdk-row .dot { width: 7px; height: 7px; border-radius: 50%; }
.cmdk-row .sy { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--text); }
.cmdk-row .cn { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-row .px { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); }
.cmdk-row .chg { font-family: var(--mono); font-size: 11px; width: 56px; text-align: right; }
.cmdk-foot { padding: 8px 14px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--text-3); display: flex; gap: 16px; }
.cmdk-foot b { font-family: var(--mono); color: var(--muted); font-weight: 500; }
.cmdk-empty { padding: 22px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.add-btn { font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--green-light); background: var(--green-glow); border: 1px solid var(--green-tint); border-radius: 7px; padding: 4px 9px; cursor: pointer; }
.add-btn:hover { background: var(--green-tint); color: var(--green-ink); }
.add-btn.block { width: 100%; padding: 9px; margin-bottom: 16px; font-size: 12px; }
.cmdk-row.add { background: var(--green-glow); }
.cmdk-row.add.act { background: var(--green-tint); }
.cmdk-row .plus { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 16px; font-weight: 500; }
.cmdk-row .addhint { font-family: var(--mono); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-light); }

/* ---- inline editing (setup/status/tags/notes) ---- */
.statpill { display: inline-flex; align-items: center; gap: 5px; background: var(--green-glow); color: var(--green-light); border: 1px solid var(--green-tint); border-radius: 999px; padding: 3px 7px 3px 9px; }
.statpill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.statpill select { font-family: var(--font); font-size: 10.5px; font-weight: 600; color: var(--green-light); background: none; border: 0; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; padding: 0 2px; }
.statpill::after { content: "▾"; font-size: 8px; color: var(--green-light); margin-left: -2px; }
.val.ed { cursor: text; border-radius: 5px; padding: 1px 4px; margin: -1px -4px; outline: none; transition: background .12s, box-shadow .12s; }
.schip[data-setup] { cursor: pointer; }
.val.ed:hover { background: var(--bg-card-2); }
.val.ed:focus { background: var(--bg-card-2); box-shadow: 0 0 0 2px var(--green-glow); }
.val.ed:empty::before { content: "—"; color: var(--text-3); }
.tagedit { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.tagchip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-family: var(--mono); color: var(--text-dim); background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 3px 2px 7px; }
.tagchip .x { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 13px; line-height: 1; padding: 0 2px; }
.tagchip .x:hover { color: var(--neg); }
.taginput { flex: 1; min-width: 78px; border: 0; background: none; outline: none; font-family: var(--font); font-size: 11px; color: var(--text); padding: 2px; }
.taginput::placeholder { color: var(--text-3); }

/* ---- density: compact ---- */
[data-density="compact"] tbody td { padding: 6px 10px; }
[data-density="compact"] .wlrow { padding: 6px 9px; }
[data-density="compact"] .mc { padding: 7px 11px; }
[data-density="compact"] .ti { padding: 8px 0; }

/* ---- ribbon is clickable -> expands to full calendar ---- */
.ribbon-h .expand { margin-left: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-light); background: var(--green-glow); border: 1px solid var(--green-tint); border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.ribbon-h .expand:hover { background: var(--green-tint); }
.ribbon { cursor: pointer; }
.ribbon:hover .dcol.today { background: var(--green-tint); }

/* ================= CALENDAR OVERLAY ================= */
.cal-overlay { position: absolute; inset: 0; z-index: 90; background: var(--bg); display: none; flex-direction: column; }
.cal-overlay.on { display: flex; animation: fade .18s ease; }
.cv-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; }
.cv-head .t { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.cv-head .t .sub { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.cv-seg { display: inline-flex; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
.cv-seg button { font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 5px 13px; border-radius: 6px; cursor: pointer; }
.cv-seg button.on { background: var(--green); color: #fff; }
.cv-nav { display: flex; align-items: center; gap: 10px; }
.cv-nav .arrow { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); font-size: 14px; cursor: pointer; }
.cv-nav .arrow:hover { background: var(--bg-hover); }
.cv-nav .range { font-size: 13.5px; font-weight: 600; min-width: 180px; text-align: center; }
.cv-nav .cv-today { height: 28px; padding: 0 13px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; }
.cv-nav .cv-today:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text); }
.cv-head .spacer { flex: 1; }
.cv-synced { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.cv-synced .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.cv-close { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.cv-close:hover { background: var(--bg-hover); }
.cv-body { flex: 1; overflow: auto; padding: 18px 20px 24px; }
.cv-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 11px; color: var(--muted); }
.cv-legend span { display: flex; align-items: center; gap: 6px; }
.cv-legend .star { color: var(--green); } .cv-legend i { width: 8px; height: 8px; border-radius: 2px; }

/* month */
.cv-month { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.cv-mhead, .cv-mrow { display: grid; grid-template-columns: repeat(7, 1fr); }
.cv-mhead div { padding: 9px 11px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--bg-card-2); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.cv-mhead div:last-child { border-right: 0; }
.cv-cell { min-height: 104px; padding: 7px 9px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-card); }
.cv-cell:nth-child(7n) { border-right: 0; }
.cv-mrow:last-child .cv-cell { border-bottom: 0; }
.cv-cell.out { background: var(--bg-card-2); }
.cv-cell .dn { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.cv-cell.today .dn { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--green); color: #fff; border-radius: 50%; }
.cv-cell .ev { display: block; font-size: 10px; padding: 2px 6px; border-radius: 5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-cell .ev.us { background: var(--us-bg); color: var(--us); } .cv-cell .ev.in { background: var(--in-bg); color: var(--in); }
.cv-cell .ev.earn { background: var(--green-glow); color: var(--green-light); cursor: pointer; } .cv-cell .ev.earn:hover { background: var(--green-tint); }
.cv-cell .ev.more { color: var(--text-3); background: transparent; }

/* week */
.cv-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cv-col { min-width: 0; }
.cv-wh { display: flex; align-items: baseline; gap: 6px; padding: 8px 4px; border-bottom: 2px solid var(--border); margin-bottom: 10px; }
.cv-wh.today { border-bottom-color: var(--green); }
.cv-wh .wd { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cv-wh .wn { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.cv-wh.today .wn { color: var(--green-light); }
.cv-macro { padding: 8px 9px; border-radius: 8px; background: var(--us-bg); margin-bottom: 8px; }
.cv-macro.india { background: var(--in-bg); }
.cv-macro .mt { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; color: var(--text); }
.cv-macro .mm { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 4px; }
.cv-grp { margin-bottom: 10px; }
.cv-gl { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.cv-tk { display: flex; align-items: center; gap: 6px; padding: 6px 9px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px; margin-bottom: 5px; font-size: 12px; cursor: pointer; }
.cv-tk:hover { border-color: var(--green-light); }
.cv-tk.watch { border-color: var(--green-tint); background: var(--green-glow); }
.cv-tk .star { color: var(--green); }
.cv-tk .ts { font-family: var(--mono); font-weight: 500; }
.cv-tk .eps { margin-left: auto; font-size: 10.5px; color: var(--muted); }

/* ================= provenance + fetch states ================= */
.srcline { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 2px 0 8px; }
.prov { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--green-light); }
.prov.page { color: var(--info); }
.prov.loading { color: var(--text-3); }
.mc .v.dash, .dm .v.dash { color: var(--text-3); }
@keyframes shim { 0% { background-position: -240px 0; } 100% { background-position: 240px 0; } }
.skel { color: transparent !important; border-radius: 5px; background: linear-gradient(90deg, var(--bg-card-2) 0%, var(--bg-hover) 50%, var(--bg-card-2) 100%); background-size: 240px 100%; animation: shim 1.1s linear infinite; }
.sym-head .px .c.skel, .sym-head .px .v.skel { display: inline-block; }
.chart-skel { height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 11.5px; color: var(--text-3); background:
  repeating-linear-gradient(90deg, transparent 0 63px, var(--border) 63px 63.5px),
  repeating-linear-gradient(0deg, transparent 0 47px, var(--border) 47px 47.5px); border-radius: 8px; }
.chart-skel .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--green); animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ================= DOCK (side-view) MODE ================= */
.ibtn.on { background: var(--green); color: #fff; border-color: var(--green); }
.dock-overlay { position: absolute; inset: 0; z-index: 95; background: var(--bg); display: none; }
.dock-overlay.on { display: grid; grid-template-columns: 1fr 384px; animation: fade .18s ease; }
/* faux site page being read */
.dock-page { position: relative; overflow: hidden; }
.dock-page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg)); pointer-events: none; }
.dp-bar { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.dp-logo { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: -0.01em; }
.dp-sym { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.dp-px { margin-left: auto; font-family: var(--mono); font-size: 14px; }
.dp-body { padding: 26px 24px; display: grid; gap: 18px; opacity: .5; }
.dp-chart { height: 200px; border-radius: 10px; border: 1px solid var(--border); background:
  repeating-linear-gradient(90deg, var(--bg-card-2) 0 1px, transparent 1px 66px),
  repeating-linear-gradient(0deg, var(--bg-card-2) 0 1px, transparent 1px 40px), var(--bg-card); }
.dp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dp-tile { height: 66px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); }
.dp-rows { display: grid; gap: 10px; }
.dp-row { height: 13px; border-radius: 6px; background: var(--bg-card-2); }
.dp-row.s { width: 42%; } .dp-row.m { width: 66%; } .dp-row.l { width: 86%; }
/* the dock panel */
.dock-panel { border-left: 1px solid var(--border); background: var(--bg-card); display: flex; flex-direction: column; overflow: hidden; box-shadow: -10px 0 30px rgba(0,0,0,0.07); }
[data-theme="midnight"] .dock-panel { box-shadow: -10px 0 30px rgba(0,0,0,0.4); }
.dock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-card-2); border-bottom: 1px solid var(--border); }
.dock-brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13px; letter-spacing: -0.01em; flex: 1; }
.dock-brand .v { width: 20px; height: 20px; border-radius: 5px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 12px; }
.dock-brand .mode { font-weight: 500; font-size: 11px; color: var(--muted); }
.dock-bar .ibtn { width: 28px; height: 28px; }
.dock-extract { display: flex; align-items: center; gap: 8px; padding: 9px 13px; font-size: 11px; color: var(--text-dim); background: var(--green-glow); border-bottom: 1px solid var(--green-tint); }
.dock-extract b { color: var(--green-ink); font-weight: 600; }
.dock-extract .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse 1.6s infinite; }
.dock-body { flex: 1; overflow-y: auto; padding: 14px; }
.dock-head { display: flex; align-items: flex-end; gap: 10px; }
.dock-head .tk { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.dock-head .co { font-size: 11px; color: var(--muted); margin-top: 3px; }
.dock-head .px { margin-left: auto; text-align: right; }
.dock-head .px .v { font-family: var(--mono); font-size: 18px; font-weight: 500; }
.dock-head .px .c { font-family: var(--mono); font-size: 11px; }
.dock-pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dock-body .dmetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dock-note { font-size: 10.5px; color: var(--text-3); line-height: 1.5; margin-top: 9px; }
.dock-sec { padding: 13px 0; border-bottom: 1px solid var(--border); }
.dock-t { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.dock-body .dchart { padding: 4px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card-2); }
.dock-body .kv { display: grid; gap: 8px; }
.dock-body .kv .r { display: grid; grid-template-columns: 52px 1fr; gap: 8px; font-size: 11.5px; }
.dock-body .kv .r .k { color: var(--muted); font-weight: 600; }
.dock-body .kv .r .val { color: var(--text-dim); line-height: 1.4; }
