/* AgencyCare AI dashboard (Sheru). Plain CSS, no images, no web fonts, no blur filters: kept light on purpose. */
:root {
  --bg: #060a14; --panel: #0b1226; --panel-2: #101a33; --line: #1b2a4d; --line-2: #24407a;
  --text: #e8edf7; --muted: #8a99bb; --accent: #2f8bff; --accent-2: #7c5cff; --cyan: #2fd0ff;
  --good: #3ddc97; --bad: #ff6b81; --warn: #ffc857;
  --mood-h: 205; --mood-s: 60%;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { overflow: hidden; background: radial-gradient(900px 500px at 70% -5%, hsl(var(--mood-h) var(--mood-s) 13%), transparent), var(--bg);
       color: var(--text); font-family: "Segoe UI", system-ui, "Noto Sans Devanagari", sans-serif; font-size: 14px; }
button, select, input, textarea { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
button { cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { cursor: not-allowed; }
a { color: var(--cyan); }
.spacer { flex: 1; }
.tts { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.card { background: linear-gradient(180deg, #0d1630, #0a1124); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.card h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag.sample { border-style: dashed; }
.empty { color: var(--muted); font-size: 13px; padding: 8px 0; line-height: 1.5; }

/* ---------- shell ---------- */
#app { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100vh; }
#side { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-right: 1px solid var(--line); background: #070d1c; overflow-y: auto; }
#content { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
#views { flex: 1; overflow-y: auto; padding: 4px 18px 28px; }
.view { display: none; }
.view.on { display: block; }

/* sidebar */
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; }
.brand .mark { width: 42px; height: 42px; display: grid; place-items: center; font-size: 24px; border-radius: 12px; background: linear-gradient(135deg, #123a86, #2a1c6e); border: 1px solid var(--line-2); }
.brand b { display: block; font-size: 19px; letter-spacing: .06em; }
.brand small { color: var(--cyan); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: #cdd7ee; font-size: 15px; position: relative; }
.nav button:hover { background: #0f1a38; }
.nav button.on { background: linear-gradient(90deg, #1d63e8, #1a4fc0); color: #fff; font-weight: 600; }
.nav .ic { width: 22px; text-align: center; font-size: 17px; }
.nav .soon { margin-left: auto; font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; }
.nav .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.nav .open .chev { transform: rotate(180deg); }
.sub { display: none; flex-direction: column; gap: 2px; padding: 2px 0 4px 34px; }
.sub.open { display: flex; }
.sub button { padding: 8px 10px; font-size: 14px; color: var(--muted); }
.sub button.on { background: #12234a; color: #fff; font-weight: 600; }
#chatBtn.dot::after { content: ""; position: absolute; top: 12px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.usercard { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #0b1430; }
.avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 700; background: linear-gradient(135deg, #1d63e8, #7c5cff); }
.usercard b { display: block; }
.usercard small { color: var(--muted); display: block; }
.usercard .on { color: var(--good); font-size: 12px; }
.quote { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; padding: 14px 10px; border: 1px solid var(--line); border-radius: 14px; }
.quote span { color: var(--warn); display: block; font-size: 16px; }

/* top bar */
#topbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
#menuBtn { display: none; }
#search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #0a1330; }
#search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 4px; outline: 0; }
#search button { border: 0; background: transparent; padding: 6px 8px; font-size: 16px; }
.iconbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 12px; font-size: 17px; }
.iconbtn .badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.iconbtn .badge:empty { display: none; }
#liteBtn.on { border-color: var(--warn); color: var(--warn); }
.userchip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border: 1px solid var(--line-2); border-radius: 14px; background: #0a1330; }
.userchip b { display: block; line-height: 1.1; }
.userchip small { color: var(--warn); }

/* ---------- dashboard grid ---------- */
#dashGrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(250px, 1.05fr) minmax(190px, 230px); gap: 14px; padding: 18px;
        border-radius: 20px; border: 1px solid var(--line-2);
        background: radial-gradient(520px 300px at 50% 55%, hsl(var(--mood-h) var(--mood-s) 15%), transparent), linear-gradient(180deg, #0b1534, #080e22); }
.hello h1 { margin: 0; font-size: 34px; line-height: 1.12; }
.hello h1 em { font-style: normal; color: var(--cyan); }
.hello p { color: #b9c5e2; line-height: 1.5; margin: 10px 0 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4a5878; }
.pill.on { color: #fff; }
.pill.p-online::before { background: var(--good); } .pill.p-online { color: #fff; border-color: #1f6f4c; background: #0d2a22; }
.pill.p-listen.on { background: #0c2347; border-color: var(--accent); } .pill.p-listen.on::before { background: var(--accent); }
.pill.p-think.on { background: #231a4a; border-color: var(--accent-2); } .pill.p-think.on::before { background: var(--accent-2); }
#mood { font-size: 13px; color: var(--muted); padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; }
#mood.positive { color: var(--good); } #mood.negative { color: var(--bad); }
.voicebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.voicebar button { border-radius: 999px; padding: 8px 14px; }
#liveBtn { font-weight: 600; }
#liveBtn.on { background: var(--good); border-color: var(--good); color: #04101a; }
#mic.on { background: var(--bad); border-color: var(--bad); }
#voiceHint { font-size: 12px; color: var(--muted); }
.say { display: inline-block; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; color: #cdd7ee; background: #0a1330; line-height: 1.35; }
.say b { display: block; font-size: 17px; color: #fff; }

#orbBox { position: relative; min-height: 300px; }
#hub { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#orbMic { position: absolute; right: 6px; bottom: 6px; width: 58px; height: 58px; padding: 0; display: grid; place-items: center; border-radius: 50%;
          color: #e8edf7; background: #0a1226; border: 1px solid var(--cyan); box-shadow: 0 0 18px #2fd0ff55; }
#orbMic .slash { display: none; }
#orbMic.off { color: var(--bad); background: #2a0f16; border-color: var(--bad); box-shadow: 0 0 18px #ff6b8155; }
#orbMic.off .slash { display: inline; }
#status { position: absolute; left: 4px; bottom: 34px; width: calc(100% - 80px); font-size: 14px; letter-spacing: .06em; color: var(--cyan); }
body.muted #status { color: var(--bad); }
#lastReply { position: absolute; left: 4px; bottom: 2px; width: calc(100% - 80px); color: var(--text); opacity: .85; font-size: 13px; line-height: 1.4; max-height: 2.9em; overflow: hidden; pointer-events: none; }

.actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.actions button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; border-radius: 12px; border-color: var(--line-2); background: #0a1330; font-size: 14px; }
.actions button:hover { background: #0f1c44; }
.actions .ic { width: 20px; text-align: center; }

/* team */
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.agent { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: #0a1226; }
.agent .av { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: #0d1838; font-size: 34px; }
.agent .av svg { width: 52px; height: 52px; }
.agent b { font-size: 14px; }
.agent .st { font-size: 12px; display: flex; align-items: center; gap: 5px; color: var(--muted); }
.agent .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5a6786; }
.agent .st.online { color: var(--good); } .agent .st.online::before { background: var(--good); }
.agent .st.working { color: var(--warn); } .agent .st.working::before { background: var(--warn); }
.agent .role { font-size: 11.5px; color: var(--muted); line-height: 1.35; min-height: 3.1em; }
.agent button { width: 100%; margin-top: 4px; padding: 6px 8px; font-size: 13px; border-radius: 10px; border-color: var(--line-2); }
.agent button:disabled { opacity: .55; }

/* lists */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list { display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #14203f; font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dotc { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #0a1226; }
.stat .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; flex: none; }
.stat b { font-size: 20px; display: block; line-height: 1; }
.stat small { color: var(--muted); font-size: 12px; }
.clock .date { color: #cdd7ee; }
.clock .time { font-size: 38px; font-weight: 700; line-height: 1.15; }
.clock .motto { color: var(--muted); font-size: 13px; margin-top: 4px; }
.proj { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: #0a1330; margin-bottom: 8px; }
.proj:last-child { margin-bottom: 0; }
.proj .top { display: flex; align-items: center; gap: 8px; }
.proj .top b { flex: 1; }
.bar { height: 7px; border-radius: 99px; background: #14234a; overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.proj small { color: var(--muted); }
.pri { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid; }
.addbtn { background: linear-gradient(135deg, #1d63e8, #1a4fc0); border: 0; border-radius: 10px; padding: 7px 12px; font-weight: 600; }
.cal-ic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; font-size: 13px; flex: none; }

/* ---------- chat panel ---------- */
#panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 30; display: flex; flex-direction: column;
         background: #080d1b; border-left: 1px solid var(--line-2); transform: translateX(105%); transition: transform .25s ease; }
#panel.open { transform: none; box-shadow: -12px 0 40px #000a; }
#panel .phead { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#panel .phead b { letter-spacing: .12em; color: var(--cyan); }
#histMenu { position: absolute; top: 100%; right: 10px; z-index: 5; width: 290px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
            background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px #000a; }
#histMenu[hidden] { display: none; }
#histMenu small { color: var(--muted); line-height: 1.4; }
#histMenu .del { border-color: var(--bad); color: var(--bad); text-align: left; }
#chat { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, #1b3a66, #26346b); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.error { align-self: center; color: var(--bad); background: #2a0f16; border: 1px solid #5a1f2c; }
.msg.typing { color: var(--muted); font-style: italic; }
#composer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); }
#input { flex: 1; resize: none; max-height: 140px; }
#send { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; font-weight: 600; color: #04101a; }

/* pending approvals (always visible, bottom centre) */
#stage { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
#stage > * { pointer-events: auto; }
#pending { display: flex; flex-direction: column; gap: 6px; width: min(640px, 100%); }
.pend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--warn); border-radius: 12px; background: #2a2410; font-size: 14px; }
.pend .txt { flex: 1; min-width: 200px; }
.pend small { color: var(--muted); display: block; }
.pend .yes { border-color: var(--good); color: var(--good); }
.pend .no { border-color: var(--bad); color: var(--bad); }

/* settings modal + toast */
#modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: #000a; }
#modal.open { display: grid; }
#modal .box { width: min(420px, 92%); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #0b1226; border: 1px solid var(--line-2); border-radius: 16px; }
#modal label.f { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
#toast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 100; padding: 9px 16px; border-radius: 12px; background: #101a33; border: 1px solid var(--line-2); display: none; }
#toast.on { display: block; }

/* ---------- office (AI Agents view) ---------- */
#office { max-width: 1100px; margin: 0 auto; }
#officeBar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 6px 4px 10px; }
#officeBar b { letter-spacing: .14em; color: var(--cyan); }
#officeChips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#officeBanner { margin: 0 4px 8px; padding: 6px 12px; border: 1px solid var(--warn); border-radius: 10px; background: #2a2410; color: var(--warn); font-size: 13px; }
#officeBanner[hidden], #officeTip[hidden], #officeCard[hidden] { display: none; }
#officeStage { position: relative; aspect-ratio: 1000 / 520; }
#officeCanvas { display: block; width: 100%; height: 100%; border-radius: 14px; border: 1px solid var(--line); }
#officeTip { position: absolute; z-index: 3; pointer-events: none; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 6px 10px;
             background: #0a1020; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; max-width: 320px; }
#officeTip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
#officeTip span { grid-column: 2; color: var(--muted); }
#officeTip b { white-space: nowrap; }
#officeCard { position: absolute; left: 10px; bottom: 10px; z-index: 3; width: min(300px, calc(100% - 20px)); padding: 12px 14px;
              background: #0a1020; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 1.45; }
#officeCard h3 { margin: 0 0 2px; font-size: 16px; }
#officeCard p { margin: 6px 0 0; color: var(--muted); }
#cardStatus { font-weight: 600; }
#cardClose { position: absolute; top: 6px; right: 6px; padding: 2px 8px; }
#cardAssign { margin-top: 10px; width: 100%; }
#cardAssign:disabled { opacity: .5; }

/* Jarvis (agency) mode: teal accent instead of blue */
body.mode-jarvis .nav button.on { background: linear-gradient(90deg, #0a9bb0, #0a7792); }
body.mode-jarvis .brand .mark { background: linear-gradient(135deg, #0a7c8c, #124a66); }
body.mode-jarvis .hello h1 em { color: #3de0c8; }
body.mode-jarvis .avatar { background: linear-gradient(135deg, #0a9bb0, #2fd0ff); }
#modeTag { color: #fff; border-color: var(--line-2); }

/* task / project form */
#formModal { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; background: #000a; }
#formModal[hidden] { display: none; }
#formBox { width: min(420px, 92%); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #0b1226; border: 1px solid var(--line-2); border-radius: 16px; }
#formBox label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
#formBox .btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
#formBox .btns .del { margin-right: auto; border-color: var(--bad); color: var(--bad); }
.check { width: 18px; height: 18px; flex: none; padding: 0; accent-color: var(--accent); cursor: pointer; }
.row .x { padding: 0 6px; border: 0; background: transparent; color: var(--muted); opacity: 0; }
.row:hover .x { opacity: 1; }
.row.done .tx { text-decoration: line-through; color: var(--muted); }
.pri.high { color: #ff8a9a; border-color: #7a2a3a; } .pri.medium { color: var(--warn); border-color: #6b5420; } .pri.low { color: var(--muted); border-color: var(--line-2); }
.proj { cursor: pointer; }
.proj:hover { border-color: var(--accent); }

/* guest lock + PIN popup + security box */
#lockView { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #060a14f2; }
#lockView[hidden], #pinModal[hidden] { display: none; }
.lockbox { text-align: center; max-width: 420px; padding: 24px; }
.lockbox .lockic { font-size: 44px; }
.lockbox h2 { margin: 6px 0; }
.lockbox p { color: var(--muted); line-height: 1.5; }
.lockbox .btns, #pinForm .btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
#pinModal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: #000b; }
#pinForm { width: min(340px, 92%); padding: 20px; display: flex; flex-direction: column; gap: 10px; text-align: center; background: #0b1226; border: 1px solid var(--line-2); border-radius: 16px; }
#pinForm p { margin: 0; color: var(--muted); font-size: 13px; min-height: 1.4em; }
#pinInput { text-align: center; font-size: 30px; letter-spacing: 14px; padding: 10px 8px 10px 22px; }
#pinForm.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.secbox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.secbox small { color: var(--muted); line-height: 1.4; }
.secbox .btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* permissions matrix */
.perm { width: 100%; border-collapse: collapse; font-size: 13px; }
.perm th, .perm td { padding: 7px 6px; border-bottom: 1px solid #14203f; text-align: center; }
.perm th:first-child, .perm td:first-child { text-align: left; }
.perm small { display: block; color: var(--muted); font-size: 11.5px; }
.perm input { accent-color: var(--accent); width: 17px; height: 17px; }
.permhead { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; }
.permhead b { flex: 1; }
.people { display: flex; flex-direction: column; gap: 6px; }
.people .p { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; }
.people .p span { flex: 1; }
#formBox.wide { width: min(560px, 94%); max-height: 90vh; overflow-y: auto; }

/* YouTube mini player */
#player { position: fixed; left: 268px; bottom: 16px; z-index: 45; width: 360px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #05070f; box-shadow: 0 10px 40px #000a; }
#player[hidden] { display: none; }
#player .ph { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; background: #0b1226; font-size: 13px; }
#player .ph b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
#player .ph button { padding: 2px 8px; }
#playerFrame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  #dashGrid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr 1fr; }
  .actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #player { left: 10px; width: min(360px, calc(100% - 20px)); }
  #app { grid-template-columns: minmax(0, 1fr); }
  #side { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: 262px; transform: translateX(-105%); transition: transform .2s; }
  #side.open { transform: none; box-shadow: 10px 0 40px #000a; }
  #menuBtn { display: grid; }
  .userchip small, .userchip b { display: none; }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  #orbBox { order: -1; min-height: 260px; }
  .two { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hello h1 { font-size: 28px; }
  #views { padding: 4px 12px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* task row buttons + agent on/off switch */
.row .ico { padding: 2px 6px; border-radius: 8px; font-size: 13px; line-height: 1.2; background: transparent; border-color: transparent; color: var(--muted); }
.row .ico:hover { border-color: var(--line-2); color: #fff; }
.row .ico.del:hover { border-color: #7a2a3a; }
.agsw { margin-top: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.agsw.on { color: #3ddc97; border-color: #1f6b4f; }

/* Sheru (personal) mode: sirf Sheru ka visual. Saari detail (cards, agents, tasks, projects, stats) sirf Jarvis (agency) me. */
body:not(.mode-jarvis) #dashGrid { grid-template-columns: minmax(0, 1fr); }
body:not(.mode-jarvis) #dashGrid .col > :not(.hero),
body:not(.mode-jarvis) #dashGrid .col + .col,
body:not(.mode-jarvis) .hello h1, body:not(.mode-jarvis) .hello > p, body:not(.mode-jarvis) .pills,
body:not(.mode-jarvis) .say, body:not(.mode-jarvis) .actions,
body:not(.mode-jarvis) .nav [data-nav="agents"], body:not(.mode-jarvis) .nav [data-nav="tasks"], body:not(.mode-jarvis) .nav [data-nav="calendar"],
body:not(.mode-jarvis) .nav [data-nav="knowledge"], body:not(.mode-jarvis) .nav [data-nav="automations"], body:not(.mode-jarvis) .nav [data-nav="files"],
body:not(.mode-jarvis) #bellBtn { display: none; }
body:not(.mode-jarvis) .hero { grid-template-columns: 1fr; justify-items: center; background: transparent; border-color: transparent; }
body:not(.mode-jarvis) #orbBox { order: -1; width: min(520px, 100%); min-height: min(62vh, 520px); }
body:not(.mode-jarvis) .hello { text-align: center; }
body:not(.mode-jarvis) .voicebar { justify-content: center; }

.sched { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; }
.chip { padding: 2px 8px; border-radius: 999px; font-size: 11px; color: #9fd6ff; }
.chip.off { color: var(--muted); text-decoration: line-through; }
.chip.add { color: var(--muted); border-style: dashed; }

.headbtns { display: flex; gap: 6px; }
