/* PadDash — tuned for iPad 2 (Safari 9): flexbox only (no grid, no gap), no CSS variables,
   no blur/backdrop, cheap paints. Palette: validated dark data-viz slots on surface #1a1a19. */

* { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #0e0e0d; color: #f0efec; overflow: hidden; }
body {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  -webkit-font-feature-settings: "tnum"; font-feature-settings: "tnum";
}
b { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; outline: none; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: #9a998f; }
.tiny { font-size: 11px; }

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.sm { width: 15px; height: 15px; margin-top: -2px; }

#app { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

/* ---------- header ---------- */
#top {
  position: absolute; top: 0; left: 0; right: 0; height: 60px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  padding: 0 14px; border-bottom: 1px solid #1f1f1d;
}
.clock { font-size: 34px; font-weight: 300; letter-spacing: -0.5px; margin-right: 14px; white-space: nowrap; -webkit-flex: none; flex: none; }
.clock-s { font-size: 15px; color: #9a998f; margin-left: 3px; font-weight: 400; }
.date-block { margin-right: 18px; -webkit-flex: none; flex: none; }
.date { font-size: 14px; font-weight: 600; }
.host { font-size: 12px; color: #9a998f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.weather { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding-left: 16px; border-left: 1px solid #262624; }
.weather .w-emoji { font-size: 26px; margin-right: 8px; }
.weather .w-temp { font-size: 22px; font-weight: 300; margin-right: 8px; }
.weather .w-sub { font-size: 12px; color: #9a998f; line-height: 1.3; }
.weather .w-days { margin-left: 14px; display: -webkit-flex; display: flex; }
.weather .w-day { text-align: center; font-size: 11px; color: #9a998f; margin-left: 10px; }
.weather .w-day b { display: block; color: #f0efec; font-weight: 500; }
.spacer { -webkit-flex: 1; flex: 1; }
.conn { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 12px; color: #c3c2b7; padding: 5px 10px; border-radius: 14px; background: #1a1a19; border: 1px solid #262624; margin-right: 8px; margin-left: 8px; -webkit-flex: none; flex: none; }
.conn .dot { width: 8px; height: 8px; border-radius: 4px; background: #9a998f; margin-right: 6px; display: inline-block; }
.conn.ok .dot { background: #0ca30c; }
#top.compact .conn span { display: none; }
#top.compact .date-block { margin-right: 12px; }
/* with agenda/mail in the header: theme button shows only its icon, weather only icon + temperature */
#top.compact .hbtn.wide { width: 40px; padding: 0; -webkit-justify-content: center; justify-content: center; }
#top.compact .hbtn.wide span { display: none; }
#top.compact .weather .w-sub { display: none; }
#top.compact .weather { padding-left: 10px; margin-right: 6px; }
.date { white-space: nowrap; }
#top.compact .conn .dot { margin-right: 0; }
#top.compact .weather .w-days { display: none; }
.conn.wait .dot { background: #fab219; }
.conn.off .dot { background: #d03b3b; }
.hbtn { width: 40px; height: 40px; border-radius: 20px; background: #1a1a19; border: 1px solid #262624; color: #c3c2b7; -webkit-flex: none; flex: none; }
.hbtn.wide { width: auto; padding: 0 13px 0 10px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 13px; font-weight: 500; color: #f0efec; }
.hbtn.wide span { margin-left: 6px; }
.hbtn.down { background: #262624; }

/* ---------- pages ---------- */
#pages { position: absolute; top: 60px; left: 0; right: 0; bottom: 64px; }
.page { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px; display: none; }
.page.active { display: block; }

.row { display: -webkit-flex; display: flex; }
.row.wrap { -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: stretch; align-items: stretch; }
/* a column of stacked cards inside a wrapped row (Claude page) */
.col3 { width: 33.333%; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.col3 > .card { -webkit-flex: none; flex: none; }
.col3 > .card.grow { -webkit-flex: 1 0 auto; flex: 1 0 auto; }
.card {
  background: #1a1a19; border: 1px solid #252523; border-radius: 14px;
  margin: 5px; padding: 12px 14px; position: relative; overflow: hidden;
}
.w50 { width: calc(50% - 10px); }
.w33 { width: calc(33.333% - 10px); }
.w66 { width: calc(66.666% - 10px); }
.w100 { width: calc(100% - 10px); }
.card-h { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center; margin-bottom: 8px; min-height: 20px; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: #c3c2b7; white-space: nowrap; }
.card-h .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.legend { font-size: 12px; color: #c3c2b7; white-space: nowrap; }
.legend b { color: #f0efec; margin-right: 10px; font-weight: 600; }
.legend b:last-child { margin-right: 0; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #2c2c2a; color: #c3c2b7; }
.pill.good { background: #0ca30c; color: #0e0e0d; }
.pill.warn { background: #fab219; color: #0e0e0d; }
.pill.crit { background: #d03b3b; color: #fff; }
.pill.info { background: #3987e5; color: #fff; }

/* ---------- tiles (home) ---------- */
.tiles .tile { -webkit-flex: 1; flex: 1; width: 0; height: 128px; padding: 10px 3px 8px; text-align: center; }
.ring { position: relative; width: 72px; height: 72px; margin: 0 auto 6px; }
.ring canvas { width: 72px; height: 72px; display: block; }
.ring-val { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.ring-val > div { text-align: center; line-height: 1.05; }
.ring-val b { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.ring-val small { display: block; font-size: 10px; color: #9a998f; font-weight: 500; }
.ring-val small:empty { display: none; }
.tile-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.2px; text-transform: uppercase; color: #c3c2b7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: 11px; color: #9a998f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

/* ---------- charts ---------- */
.chart { position: relative; height: 150px; }
.chart canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.chart.md { height: 200px; }
.chart.sm { height: 78px; margin-top: 8px; }
.chart.xs { height: 44px; margin: 2px 0 10px; }
.chart-card .chart { height: 118px; }
.tip { position: absolute; top: 2px; left: 0; display: none; background: #2c2c2a; border: 1px solid #3a3a37; border-radius: 8px; padding: 5px 9px; font-size: 12px; color: #f0efec; white-space: nowrap; pointer-events: none; z-index: 5; }
.tip .muted { font-size: 11px; }

/* ---------- bars, meters ---------- */
.bar { height: 8px; border-radius: 4px; background: #2c2c2a; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: #3987e5; }
.bar.thin { height: 5px; }
.quota { margin-bottom: 8px; }
.q-top { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: baseline; align-items: baseline; margin-bottom: 4px; }
.q-name { font-size: 13px; color: #c3c2b7; }
.q-pct { font-size: 16px; }
.q-reset { font-size: 11px; margin-top: 3px; }
.big-q .q-pct { font-size: 22px; }
.big-q .bar { height: 10px; border-radius: 5px; }
.qrows { margin-bottom: 4px; }
.qrow { padding: 2px 0 3px; }
.qr-top { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; height: 20px; }
.qrow .q-name { width: 118px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .qbar { -webkit-flex: 1; flex: 1; margin: 0 10px; }
.qrow .bar { height: 7px; }
.qrow .q-pct { width: 40px; text-align: right; font-size: 15px; }
.qr-sub { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; margin: 0 50px 0 128px; font-size: 11px; height: 14px; white-space: nowrap; overflow: hidden; }
.qr-sub .q-reset { font-size: 11px; margin: 0; }
/* pace: marker at the elapsed share of the window, colored dot + text beside the bar */
.qbar { position: relative; }
.pace-mark { position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: #f0efec; display: none; }
.q-pace { font-size: 12px; color: #c3c2b7; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-sub .q-pace { font-size: 11px; margin: 0; }
.q-pace em { font-style: normal; }
.pace-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 5px; background: #2c2c2a; }
.pace-help { font-size: 11px; line-height: 1.35; margin-top: 4px; }

.stats3, .stats4 { display: -webkit-flex; display: flex; margin-top: 4px; }
.stats3 > div, .stats4 > div { -webkit-flex: 1; flex: 1; }
.stats3 span, .stats4 span { display: block; font-size: 11px; }
.stats3 b, .stats4 b { font-size: 17px; }
.stats4 { margin-top: 10px; padding-top: 10px; border-top: 1px solid #262624; }

.big-row { display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; margin-bottom: 8px; }
.big-row .muted { margin-left: 10px; font-size: 13px; }
.big { font-size: 32px; font-weight: 600; letter-spacing: -0.5px; }
.net-big span { margin-right: 18px; font-size: 13px; color: #c3c2b7; white-space: nowrap; }
.net-big b { font-size: 19px; color: #f0efec; }
.kv { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 13px; padding: 4px 0; border-top: 1px solid #232321; }
.kv span { color: #9a998f; }
.kv b { font-weight: 500; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%; }

/* cores */
.cores { display: -webkit-flex; display: flex; height: 70px; -webkit-align-items: flex-end; align-items: flex-end; margin-bottom: 8px; }
.core { -webkit-flex: 1; flex: 1; margin-right: 3px; text-align: center; }
.core:last-child { margin-right: 0; }
.core .cb { height: 52px; background: #2c2c2a; border-radius: 4px; position: relative; overflow: hidden; }
.core .cb i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #3987e5; border-radius: 4px 4px 0 0; }
.core.e .cb i { background: #199e70; }
.core span { font-size: 10px; color: #9a998f; }

/* memory stack: 2px surface gaps between segments */
.stack { display: -webkit-flex; display: flex; height: 14px; border-radius: 5px; overflow: hidden; background: #2c2c2a; margin-bottom: 8px; }
.stack i { display: block; height: 100%; width: 0; margin-right: 2px; }
.legend-rows > div { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 13px; color: #c3c2b7; padding: 2px 0; }
.legend-rows b { margin-left: auto; color: #f0efec; font-weight: 500; }

.temps .trow, .gbars .trow { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 13px; padding: 3px 0; }
.trow span { width: 34%; color: #9a998f; }
.trow .bar { -webkit-flex: 1; flex: 1; margin: 0 10px; height: 6px; }
.trow b { width: 52px; text-align: right; font-weight: 500; }

.vol { margin-bottom: 10px; }
.vol .q-top b { font-size: 14px; }

/* process / project lists */
.plist .prow { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 13px; padding: 4px 0; border-top: 1px solid #232321; }
.plist .prow:first-child { border-top: 0; }
.prow .pn { width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.prow .pn small { color: #9a998f; font-size: 11px; }
.prow .bar { -webkit-flex: 1; flex: 1; height: 6px; margin-right: 10px; }
.prow b { width: 64px; text-align: right; font-weight: 500; }

.projects .prj { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 7px 0; border-top: 1px solid #232321; font-size: 14px; }
.projects .prj:first-child { border-top: 0; }
.prj .pn { width: 30%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.prj .bar { -webkit-flex: 1; flex: 1; height: 8px; margin-right: 12px; }
.prj .pct { width: 52px; text-align: right; color: #c3c2b7; }
.prj .tok { width: 90px; text-align: right; color: #9a998f; }
.prj .cost { width: 110px; text-align: right; font-weight: 600; }

.seg { display: -webkit-flex; display: flex; background: #0e0e0d; border-radius: 9px; padding: 2px; }
.seg button { font-size: 12px; padding: 4px 12px; border-radius: 7px; color: #9a998f; }
.seg button.on { background: #2c2c2a; color: #f0efec; }

/* sessions */
.sessions .s { padding: 8px 0; border-top: 1px solid #232321; }
.sessions .s:first-child { border-top: 0; padding-top: 0; }
.sessions .s-group { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #9a998f; margin: 12px 0 2px; }
.sessions .s-group + .s { border-top: 0; padding-top: 4px; }
.s-top { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.s-name { -webkit-flex: 1; flex: 1; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.s-sub { font-size: 12px; color: #9a998f; margin-top: 2px; display: -webkit-flex; display: flex; }
.s-sub span:first-child { -webkit-flex: 1; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.s-sub span:last-child { white-space: nowrap; }
.status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.status.busy { background: #d95926; color: #fff; }
.status.idle { background: #2c2c2a; color: #c3c2b7; }
.sess-mini { margin-top: 8px; border-top: 1px solid #262624; padding-top: 5px; }
.sess-mini .sm-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 13px; padding: 3px 0; }
.sm-row .sm-name { -webkit-flex: 1; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.sm-row .sm-t { color: #9a998f; font-size: 12px; margin-left: 8px; }
/* how long ago each session last did something (small, at the right end) */
.sm-row .sm-ago, .s-ago { color: #9a998f; font-size: 11px; white-space: nowrap; }
.sm-row .sm-ago { margin-left: 10px; }
.s-sub .s-ago { font-size: 11px; }
html.light .sm-row .sm-ago, html.light .s-ago { color: #6c6b65; }
.models .mrow { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 12px; color: #9a998f; padding: 2px 0; }

/* ---------- now playing ---------- */
/* now playing: cover on the left (fixed slot), title/artist with the transport right below,
   full-width progress with times at both ends, then the volume row */
.np-body { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 4px 0 14px; }
.np-cover { position: relative; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; background: #262624; color: #5a5a55;
  -webkit-flex: none; flex: none; margin-right: 18px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center; }
.np-cover .np-ph { width: 46px; height: 46px; }
.np-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; }
.np-art.on { display: block; }
.np-main { -webkit-flex: 1; flex: 1; min-width: 0; }
.np-title { font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.np-prog.off { visibility: hidden; }
.np-prog { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 11px; color: #9a998f; margin-bottom: 12px; }
.np-prog span { width: 38px; }
.np-prog span:last-child { text-align: right; }
.np-prog .bar { -webkit-flex: 1; flex: 1; height: 5px; margin: 0 8px; }
.np-prog .bar i { background: #f0efec; }
.np-ctrl { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 12px 0 0 -10px; }
.np-ctrl .cbtn { width: 46px; height: 46px; border-radius: 23px; background: none; margin: 0; }
.np-ctrl .cbtn .ic { width: 24px; height: 24px; }
.np-ctrl .cbtn.big { width: 56px; height: 56px; border-radius: 28px; background: #f0efec; color: #0e0e0d; margin: 0 12px; }
.np-ctrl .cbtn.big .ic { width: 26px; height: 26px; }
.np-ctrl .cbtn.down { background: #2c2c2a; }
.np-ctrl .cbtn.big.down { background: #c3c2b7; }
.cbtn { width: 52px; height: 52px; border-radius: 26px; background: #262624; color: #f0efec; margin: 0 10px; }
.cbtn .ic { width: 26px; height: 26px; }
/* round buttons hold only an icon: center it on the circle, not on the text baseline (it sat ~3.6px low) */
.cbtn { padding: 0; }
.cbtn .ic { display: block; margin: 0 auto; }
.cbtn.big { width: 64px; height: 64px; border-radius: 32px; background: #f0efec; color: #0e0e0d; }
.cbtn.big .ic { width: 30px; height: 30px; }
.cbtn.sm { width: 40px; height: 40px; border-radius: 20px; margin: 0; }
.cbtn.sm .ic { width: 20px; height: 20px; }
.cbtn.down { background: #3a3a37; }
.cbtn.big.down { background: #c3c2b7; }
.cbtn.on { background: #d03b3b; color: #fff; }
.vol-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.slider { -webkit-flex: 1; flex: 1; height: 40px; position: relative; margin: 0 12px; }
.slider-track { position: absolute; left: 0; right: 0; top: 17px; height: 6px; border-radius: 3px; background: #2c2c2a; overflow: hidden; }
.slider-track i { display: block; height: 100%; width: 0; background: #f0efec; }
.slider-knob { position: absolute; top: 9px; left: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 11px; background: #f0efec; }
.vol-val { width: 34px; text-align: right; margin-right: 12px; font-size: 14px; }

/* ---------- deck ---------- */
.deck { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: 2px; }
.key {
  width: calc(25% - 10px); height: 172px; margin: 5px;
  background: #1a1a19; border: 1px solid #262624; border-radius: 18px;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  position: relative; overflow: hidden; color: #f0efec;
}
.key .kicon { width: 64px; height: 64px; border-radius: 16px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; margin-bottom: 12px; background: #262624; }
.key .kicon .ic { width: 34px; height: 34px; }
.key .kicon img { width: 64px; height: 64px; }
.key .kicon.img { background: none; }
.key .kicon.emoji { font-size: 38px; background: none; }
.key .klbl { font-size: 15px; font-weight: 500; text-align: center; padding: 0 8px; line-height: 1.2; }
.key .kstate { position: absolute; top: 10px; right: 12px; width: 10px; height: 10px; border-radius: 5px; background: #2c2c2a; }
.key.active { border-color: #f0efec; }
.key.active .kstate { background: #0ca30c; }
.key.down { background: #262624; }
.key.busy .klbl { opacity: 0.6; }
.key.ok { border-color: #0ca30c; }
.key.err { border-color: #d03b3b; }

/* ---------- tabs ---------- */
#tabs {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  display: -webkit-flex; display: flex; border-top: 1px solid #1f1f1d; background: #0e0e0d; padding: 0 6px;
}
.tab { -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; color: #8d8c84; font-size: 11px; font-weight: 500; }
/* Safari 9 (iPad 2) ignores flexbox on <button>: icon and label are blocks centered on their own, so the tab
   looks the same with or without flex (the button already centers its content vertically) */
.tab .ic { width: 24px; height: 24px; display: block; margin: 0 auto 3px; }
.tab span { display: block; text-align: center; white-space: nowrap; line-height: 1.2; }
.tab.on { color: #f0efec; }
.tab.on .ic { color: #3987e5; }
/* tab counters around the icon: blue top-left, yellow top-right, red bottom-right (ringed in the bar color) */
.ic-w { display: block; position: relative; width: 24px; height: 24px; margin: 0 auto 3px; }
.tab .ic-w .ic, .more-item .ic-w .ic { margin: 0; width: 100%; height: 100%; }
.tbg { position: absolute; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; box-sizing: border-box;
  font-size: 10px; font-weight: 700; font-style: normal; line-height: 16px; text-align: center; color: #fff;
  box-shadow: 0 0 0 2px #0e0e0d; z-index: 1; }
.tbg.tl { top: -7px; right: 100%; margin-right: -9px; background: #3987e5; }
.tbg.tr { top: -7px; left: 100%; margin-left: -9px; background: #fab219; color: #0e0e0d; }
.tbg.br { bottom: -5px; left: 100%; margin-left: -9px; background: #d03b3b; }
.more-sheet .tbg { box-shadow: 0 0 0 2px #1a1a19; }
html.light .tbg { box-shadow: 0 0 0 2px #ecebe7; }
html.light .more-sheet .tbg { box-shadow: 0 0 0 2px #fcfcfb; }
/* phone "Mais" sheet: the pages that don't fit the tab bar */
.more-sheet { display: none; position: absolute; left: 8px; right: 8px; bottom: 72px; z-index: 30; padding: 8px; border-radius: 16px;
  background: #1a1a19; border: 1px solid #2c2c2a; box-shadow: 0 10px 30px rgba(0,0,0,0.5); -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.more-sheet.open { display: -webkit-flex; display: flex; }
.more-item { width: 33.333%; height: 72px; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; color: #c3c2b7; font-size: 12px; border-radius: 12px; }
.more-item .ic { width: 26px; height: 26px; margin-bottom: 4px; }
.more-item .ic-w { width: 26px; height: 26px; margin: 0 0 4px; }
.more-item.on, .more-item.down { background: #262624; color: #f0efec; }
html.light .more-sheet { background: #fcfcfb; border-color: #dedcd6; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
html.light .more-item { color: #52514e; }
html.light .more-item.on, html.light .more-item.down { background: #ecebe7; color: #0b0b0b; }

/* ---------- overlays ---------- */
.overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #0e0e0d; z-index: 50; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.pair-box { width: 360px; text-align: center; }
.pair-icon { width: 64px; height: 64px; border-radius: 32px; background: #1a1a19; border: 1px solid #262624; margin: 0 auto 14px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; color: #3987e5; }
.pair-icon .ic { width: 30px; height: 30px; }
.pair-box h1 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.pair-box p { font-size: 14px; margin-bottom: 18px; }
.pin-dots i { display: inline-block; width: 16px; height: 16px; border-radius: 8px; border: 2px solid #5a5a55; margin: 0 7px; }
.pin-dots i.on { background: #f0efec; border-color: #f0efec; }
.pin-msg { height: 22px; margin: 10px 0 8px; font-size: 13px; color: #ec835a; }
/* pairing through the public address: 8-character code typed in a field */
.pair-code input { display: block; width: 220px; margin: 0 auto 12px; padding: 10px 12px; font-size: 24px; letter-spacing: 3px; text-align: center;
  text-transform: uppercase; border-radius: 10px; border: 1px solid #3a3a37; background: #1a1a19; color: #f0efec; -webkit-appearance: none; }
.pair-code button { display: block; margin: 0 auto; padding: 10px 28px; font-size: 16px; border-radius: 10px; border: 0; background: #3987e5; color: #fff; }
html.light .pair-code input { background: #fcfcfb; color: #0b0b0b; border-color: #dedcd6; }
.keypad { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; width: 300px; margin: 0 auto; }
.keypad button { width: 88px; height: 70px; margin: 6px; border-radius: 16px; background: #1a1a19; border: 1px solid #262624; font-size: 26px; font-weight: 400; }
.keypad button.down { background: #2c2c2a; }
.keypad .k-ok { font-size: 18px; font-weight: 600; color: #3987e5; }

.toast { position: absolute; left: 50%; bottom: 84px; width: 520px; margin-left: -260px; background: #2c2c2a; border: 1px solid #3a3a37; color: #f0efec; border-radius: 12px; padding: 12px 16px; font-size: 14px; text-align: center; z-index: 60; }
.toast.err { border-color: #d03b3b; }


/* ---------- header: next meeting + mail badges ---------- */
.hdr-next { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex: 0 1 auto; flex: 0 1 auto; min-width: 0; max-width: 330px; margin-left: 4px; padding: 5px 12px 5px 8px; border-radius: 12px; background: #1a1a19; border: 1px solid #262624; }
.hdr-next .hn-bar { width: 4px; height: 30px; border-radius: 2px; background: #3987e5; margin-right: 9px; -webkit-flex: none; flex: none; }
.hdr-next .hn-txt { min-width: 0; }
.hdr-next .hn-top { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-width: 0; }
.hdr-next .hn-top b { min-width: 0; }
.hn-more { display: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 8px; background: #fab219; color: #0e0e0d; margin-left: 6px; -webkit-flex: none; flex: none; }
.hn-more.on { display: inline-block; }
.tag.warn { background: #fab219; color: #0e0e0d; }
html.light .tag.warn { background: #fab219; color: #0b0b0b; }
.hdr-next b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-next .hn-sub { display: block; font-size: 11px; color: #9a998f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-next.soon { border-color: #fab219; }
.hdr-next.now { border-color: #0ca30c; }
.hdr-mail { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-flex: none; flex: none; margin-left: 8px; padding: 3px 10px 3px 9px; border-radius: 12px; background: #1a1a19; border: 1px solid #262624; font-size: 11px; line-height: 14px; color: #c3c2b7; }
.hm { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; white-space: nowrap; }
.hm .hm-l { -webkit-flex: 1; flex: 1; padding-right: 8px; }
.hm .sw { width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.hm b { min-width: 20px; text-align: right; font-weight: 400; color: #9a998f; }
.hm b.on { font-weight: 700; color: #f0efec; }
.hm .hm-f { min-width: 30px; text-align: right; color: #f0efec; }
.hm .ic { width: 11px; height: 11px; margin-right: 2px; vertical-align: -2px; }

/* ---------- agenda ---------- */
.ag-day { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #c3c2b7; margin: 12px 0 6px; }
.ag-day:first-child { margin-top: 2px; }
.ag-ev { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 7px 0; border-top: 1px solid #232321; }
.ag-ev .ag-t { width: 92px; font-size: 13px; color: #c3c2b7; -webkit-flex: none; flex: none; }
.ag-ev .ag-bar { width: 4px; height: 30px; border-radius: 2px; margin-right: 10px; -webkit-flex: none; flex: none; }
.ag-ev .ag-main { -webkit-flex: 1; flex: 1; min-width: 0; }
.ag-ev .ag-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev .ag-sub { font-size: 11px; color: #9a998f; }
.ag-ev.past { opacity: 0.45; }
.ag-ev.now .ag-title { color: #0ca30c; }
.ag-join { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 9px; background: #3987e5; color: #fff; margin-left: 8px; -webkit-flex: none; flex: none; }
.ag-join .ic { width: 15px; height: 15px; margin-right: 5px; }
.ag-join.down { background: #256abf; }
.tag { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 8px; background: #2c2c2a; color: #c3c2b7; margin-left: 6px; }
.mail-card .mc-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: 6px; }
.mail-card .mc-head .lbl { -webkit-flex: 1; flex: 1; }
.mail-card .mc-sec { font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: #9a998f; margin: 8px 0 2px; }
.mail-item { padding: 5px 0; border-top: 1px solid #232321; }
.mail-item:first-child { border-top: 0; }
.mail-item .mi-s { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-item .mi-f { font-size: 11px; color: #9a998f; display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; }
.mail-item .mi-f span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.mail-item.unread .mi-s { font-weight: 700; }
/* Painel, network card: internet status at the right end of the ↓/↑ legend */
.inet { display: inline-block; padding-left: 10px; border-left: 1px solid #2c2c2a; }
.inet .dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #9a998f; margin-right: 5px; vertical-align: 0; }
.inet .in-txt b { color: #f0efec; font-weight: 600; margin: 0; }
.inet .in-txt em { font-style: normal; color: #9a998f; margin-left: 4px; }
.inet .ls { display: none; }
.inet.ok .dot { background: #0ca30c; }
.inet.warn .dot { background: #fab219; }
.inet.bad .dot { background: #d03b3b; }
.inet.bad .in-txt b { color: #ec835a; }
.chart-card.inet-bad { border-color: #d03b3b; }
html.light .inet { border-left-color: #dedcd6; }
html.light .inet .in-txt b { color: #0b0b0b; }
html.light .inet.bad .in-txt b { color: #d03b3b; }
html.light .inet .in-txt em { color: #6c6b65; }
/* ---------- solar ---------- */
.tile.alert { border-color: #d03b3b; }
.tile.alert .tile-sub { color: #ec835a; font-weight: 600; }
.tile.warn .tile-sub { color: #fab219; }
.hdr-alert { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex: none; flex: none; margin-left: 8px; padding: 6px 10px; border-radius: 12px; background: #3a1a1a; border: 1px solid #d03b3b; color: #ec835a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hdr-alert.warn { background: #3a2e12; border-color: #fab219; color: #fab219; }
.hdr-alert .ic { width: 14px; height: 14px; margin-right: 5px; }
.sol3 { width: calc(33.333% - 10px); }
.sol-login { border-color: #fab219; color: #f0efec; font-size: 14px; }
.sol-now { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.sol-now-txt { margin-left: 14px; min-width: 0; }
.ring.big { width: 104px; height: 104px; margin: 0; -webkit-flex: none; flex: none; }
.ring.big canvas { width: 104px; height: 104px; }
.ring.big .ring-val b { font-size: 24px; }
.sol-big { font-size: 28px; font-weight: 300; letter-spacing: -0.3px; white-space: nowrap; }
.sol-money { font-size: 20px; font-weight: 600; margin-top: 2px; }
.sol-acc .r { display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; padding: 4px 0; border-top: 1px solid #232321; font-size: 13px; white-space: nowrap; }
.sol-acc .r:first-child { border-top: 0; }
.sol-acc .r span { color: #9a998f; -webkit-flex: 1 0 auto; flex: 1 0 auto; padding-right: 8px; }
.sol-acc .r b { font-weight: 600; -webkit-flex: none; flex: none; }
.sol-acc .r.sol-sub span { font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; margin-top: 6px; }
.sol-acc .r em { font-style: normal; color: #9a998f; margin-left: 6px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; -webkit-flex: 0 1 auto; flex: 0 1 auto; min-width: 0; }
/* a bill in the history: label + tariff, details on a second line */
.sol-acc .bl { padding: 4px 0; border-top: 1px solid #232321; font-size: 13px; }
.sol-acc .bl .l1 { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; }
.sol-acc .bl .l1 span { color: #9a998f; }
.sol-acc .bl .l2 { font-size: 11px; color: #9a998f; margin-top: 1px; }
.sol-acc .bl .l2.dim { opacity: 0.6; }
html.light .sol-acc .bl { border-top-color: #ebeae5; }
html.light .sol-acc .bl .l1 span, html.light .sol-acc .bl .l2 { color: #6c6b65; }
.sol-chart { height: 180px; }
.sol-bars { height: 130px; }
.sol-dev { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 6px 0 2px; border-top: 1px solid #232321; font-size: 13px; white-space: nowrap; }
.sol-dev:first-child { border-top: 0; }
.sol-dev.child { padding: 1px 0 5px 14px; border-top: 0; font-size: 12px; color: #c3c2b7; }
.sol-dev .dot { width: 8px; height: 8px; border-radius: 4px; margin-right: 7px; background: #9a998f; -webkit-flex: none; flex: none; }
.sol-dev .dot.on { background: #0ca30c; }
.sol-dev .dot.off { background: #d03b3b; }
.sol-dev .nm { -webkit-flex: 1; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sol-dev .t { color: #9a998f; font-size: 11px; margin-left: 8px; }
.sol-dev .t.bad { color: #ec835a; font-weight: 600; }
html.light .hdr-alert { background: #fdecec; color: #d03b3b; }
html.light .hdr-alert.warn { background: #fff6e0; color: #a36a00; }
html.light .sol-login { color: #0b0b0b; }
html.light .sol-acc .r, html.light .sol-dev { border-top-color: #ebeae5; }
html.light .sol-acc .r span, html.light .sol-acc .r em, html.light .sol-dev .t { color: #6c6b65; }
html.light .sol-dev.child { color: #52514e; }
html.light .sol-dev .t.bad { color: #d03b3b; }
/* ---------- exness (read-only) ---------- */
.pos { color: #0ca30c; }
.neg { color: #ec835a; }
.hdr-fx { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-flex: none; flex: none; margin-left: 8px; padding: 3px 10px; border-radius: 12px; background: #1a1a19; border: 1px solid #262624; line-height: 15px; white-space: nowrap; }
.hdr-fx .fx-k { font-size: 10px; color: #9a998f; text-transform: uppercase; letter-spacing: 0.4px; }
.hdr-fx .fx-v b { font-size: 13px; font-weight: 700; }
.hdr-fx .fx-v em { font-style: normal; font-size: 11px; color: #9a998f; margin-left: 6px; }
.hdr-fx.warn { border-color: #fab219; }
.hdr-fx.warn .fx-v b { color: #fab219; font-size: 12px; }
.fx-rows { margin-top: 8px; }
.fx-rows .r b { font-weight: 600; }
.chart-card .chart.fx-chart { height: 230px; }
.fx-pos { padding: 6px 0; border-top: 1px solid #232321; font-size: 13px; }
.fx-pos:first-child { border-top: 0; }
.fx-pos .l1 { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; }
.fx-pos .l2 { font-size: 11px; color: #9a998f; margin-top: 2px; }
.fx-table .tr { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 5px 0; border-top: 1px solid #232321; font-size: 13px; white-space: nowrap; }
.fx-table .tr:first-child { border-top: 0; }
.fx-table .tr.th { font-size: 11px; color: #9a998f; text-transform: uppercase; letter-spacing: 0.3px; padding-top: 0; }
.fx-table .c1 { width: 92px; color: #c3c2b7; }
.fx-table .c2 { width: 84px; font-weight: 600; }
.fx-table .c3 { width: 86px; }
.fx-table .c4 { -webkit-flex: 1; flex: 1; color: #9a998f; overflow: hidden; text-overflow: ellipsis; }
.fx-table .c5 { width: 74px; text-align: right; font-weight: 600; }
.fx-table .c6 { width: 56px; text-align: right; color: #9a998f; font-size: 11px; }
.fx-table .c7 { width: 66px; text-align: right; font-size: 12px; }
.fx-table i { font-style: normal; }
/* GPU card: renderer / tiler bars (same look as the temperature rows) */
.gbars { margin: 6px 0 4px; }
.fx-table .ls { display: none; }
.fx-table .c8 { width: 78px; text-align: right; color: #c3c2b7; }
.fx-table .c9 { width: 78px; text-align: right; font-weight: 600; }
.fx-table .c10 { width: 64px; text-align: right; font-size: 12px; }
.fx-filter { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; margin: 2px 0 8px; }
.fx-filter .seg { margin: 0 12px 4px 0; }
.fx-sum { font-size: 13px; color: #9a998f; margin-bottom: 4px; }
.fx-sum b { font-weight: 700; }
.fx-rows .r .pc { margin-left: 10px; min-width: 62px; text-align: right; font-size: 12px; }
/* Exness → Hoje: average return per business day */
.fx-biz { margin-top: 10px; }
.fx-biz .r .pc { font-size: 13px; font-weight: 700; min-width: 56px; }
.fx-biz .pace-help { margin-top: 6px; }
html.light .pos { color: #008300; }
html.light .neg { color: #d03b3b; }
html.light .hdr-fx { background: #fcfcfb; border-color: #dedcd6; }
html.light .hdr-fx .fx-k, html.light .hdr-fx .fx-v em, html.light .fx-pos .l2, html.light .fx-table .tr.th, html.light .fx-table .c4, html.light .fx-table .c6 { color: #6c6b65; }
html.light .fx-table .c1, html.light .fx-table .c8 { color: #52514e; }
html.light .fx-pos, html.light .fx-table .tr { border-top-color: #ebeae5; }
/* Agenda header: count next to the 7/15/30-day selector */
.card-h .ag-note { -webkit-flex: 1; flex: 1; text-align: right; margin-right: 10px; max-width: none; }
/* Agenda tab: which accounts the header shows */
.ag-prefs { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; padding: 8px 12px; }
.ag-prefs .ap-lbl { margin-right: 14px; }
.ag-prefs .ap-grp { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin: 3px 16px 3px 0; }
.ag-prefs .ap-k { font-size: 12px; color: #9a998f; margin-right: 6px; }
.chip { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 13px; font-weight: 600; padding: 6px 11px; margin-right: 6px; border-radius: 16px; border: 1px solid #3a3a37; color: #7d7c74; cursor: pointer; }
.chip .sw { border: 2px solid; width: 11px; height: 11px; border-radius: 4px; box-sizing: border-box; }
.chip.on { background: #2c2c2a; border-color: #2c2c2a; color: #f0efec; }
.chip.down { background: #3a3a37; }
html.light .ag-prefs .ap-k { color: #6c6b65; }
html.light .chip { border-color: #d6d5cf; color: #8a8983; }
html.light .chip.on { background: #e7e6e1; border-color: #e7e6e1; color: #1a1a19; }
html.light .chip.down { background: #d6d5cf; }
.mail-item .mi-na { font-weight: 400; font-style: italic; color: #9a998f; }
html.light .mail-item .mi-na { color: #6c6b65; }
html.light .hdr-next, html.light .hdr-mail { background: #fcfcfb; border-color: #dedcd6; }
html.light .hdr-next .hn-sub, html.light .ag-ev .ag-sub, html.light .mail-item .mi-f, html.light .mail-card .mc-sec { color: #6c6b65; }
html.light .hm b { color: #6c6b65; }
html.light .hm b.on, html.light .hm .hm-f { color: #0b0b0b; }
html.light .hdr-mail, html.light .ag-day, html.light .ag-ev .ag-t { color: #52514e; }
html.light .ag-ev, html.light .mail-item { border-top-color: #ebeae5; }
html.light .tag { background: #e7e6e1; color: #52514e; }


/* ---------- sensores (like iStat Menus' Sensors) ---------- */
.sens-wrap { display: -webkit-flex; display: flex; }
.sens-left { width: 44%; padding-right: 14px; }
.sens-right { -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; min-width: 0; }
.s-rings { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; }
.s-ring { position: relative; width: 31%; height: 86px; }
.s-ring canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.s-ring .rv { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center; }
.s-ring .rv span { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #9a998f; }
.s-ring .rv b { font-size: 19px; font-weight: 600; line-height: 1.15; }
.sens-ch-h { margin-top: 8px; }
.sens-ch-h .seg { display: -webkit-inline-flex; display: inline-flex; }
.sg-col { width: 50%; padding-left: 12px; box-sizing: border-box; }
.sg { margin-bottom: 8px; }
.sg-h { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #3987e5; margin-bottom: 2px; }
.sr { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 13px; padding: 2px 0; border-top: 1px solid #232321; }
.sr span { color: #9a998f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.sr b { font-weight: 500; white-space: nowrap; }

/* ---------- espaço em disco ---------- */
.dk-entry { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #232321; cursor: pointer; }
.dk-entry > div { -webkit-flex: 1; flex: 1; min-width: 0; }
.dk-entry b { display: block; font-size: 14px; font-weight: 600; }
.dk-entry span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-entry > i { font-style: normal; font-size: 22px; color: #9a998f; margin-left: 8px; }
.dk-entry.down { background: #2c2c2a; }
.dk-back { color: #3987e5; margin-right: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; }
.dk-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; margin-bottom: 10px; }
.dk-vols { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; min-width: 0; }
.dk-vols .chip { margin-bottom: 4px; }
.dk-vols .chip small { font-weight: 400; margin-left: 6px; color: #9a998f; }
.dk-act { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex: none; flex: none; }
.dk-act .muted { margin-right: 12px; text-align: right; max-width: 380px; }
.dk-btn { font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 10px; background: #3987e5; color: #fff; }
.dk-btn.stop { background: #d03b3b; }
.dk-btn[disabled] { opacity: 0.5; }
.dk-bar { height: 16px; margin: 0 0 6px; }
.dk-top .legend { white-space: normal; }
.dk-top .legend .sw { margin-left: 0; }
.dk-top .legend .muted { margin-left: 4px; }
.dk-note { margin-top: 10px; font-size: 13px; line-height: 1.4; padding: 8px 12px; border-radius: 10px; background: rgba(250, 178, 25, 0.12); color: #e9c46a; }
.dk-note b { color: #fab219; }
.dk-crumbs { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: baseline; align-items: baseline; font-size: 14px; margin-bottom: 8px; }
.dk-crumbs span { color: #3987e5; cursor: pointer; padding: 2px 0; }
.dk-crumbs span.cur { color: #f0efec; font-weight: 600; cursor: default; }
.dk-crumbs i { font-style: normal; color: #6c6b65; margin: 0 6px; }
.dk-crumbs em { font-style: normal; color: #9a998f; font-size: 12px; margin-left: auto; padding-left: 10px; }
.dk-map { position: relative; margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.dk-map .tm { position: absolute; border-radius: 4px; overflow: hidden; padding: 4px 6px; box-sizing: border-box; color: #fff; cursor: pointer; }
.dk-map .tm.file { opacity: 0.6; }
.dk-map .tm.down { opacity: 0.8; }
.dk-map .tm b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.dk-map .tm span { display: block; font-size: 11px; opacity: 0.9; white-space: nowrap; }
.dk-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 6px 0; border-top: 1px solid #232321; cursor: pointer; }
.dk-row.down { background: #232321; }
.dk-row > .sw { width: 10px; height: 10px; border-radius: 3px; -webkit-flex: none; flex: none; margin-right: 10px; }
.dk-row .nm { -webkit-flex: 1; flex: 1; min-width: 0; }
.dk-row .nm b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-row .nm b em { font-style: normal; color: #9a998f; margin-left: 6px; }
.dk-row .nm small { display: block; font-size: 11px; color: #9a998f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-row .bar { width: 22%; height: 6px; margin: 0 12px; -webkit-flex: none; flex: none; }
.dk-row .bar i { background: #3987e5; }
.dk-row .sz { width: 74px; text-align: right; font-size: 14px; font-weight: 600; -webkit-flex: none; flex: none; }
.dk-row .sz small { display: block; font-size: 11px; font-weight: 400; color: #9a998f; }
.dk-dots { width: 34px; height: 30px; margin-left: 6px; border-radius: 8px; color: #c3c2b7; font-size: 18px; -webkit-flex: none; flex: none; }
.dk-dots.down { background: #2c2c2a; }
.dk-rest, .dk-showmore { font-size: 12px; color: #9a998f; padding: 8px 0 2px 20px; border-top: 1px solid #232321; }
.dk-showmore { color: #3987e5; cursor: pointer; }
.dk-empty { color: #9a998f; font-size: 14px; padding: 24px 6px; text-align: center; line-height: 1.5; }
.dk-h2 { margin-top: 14px; }
.dk-cat, .dk-f { padding: 7px 0; border-top: 1px solid #232321; cursor: pointer; }
.dk-cat.down, .dk-f.down { background: #232321; }
.dk-cat .l1, .dk-f .l1 { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 14px; }
.dk-cat .l1 b, .dk-f .l1 b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.dk-cat .l1 span, .dk-f .l1 span { font-weight: 600; white-space: nowrap; }
.dk-cat .l2, .dk-f .l2 { font-size: 12px; color: #9a998f; margin-top: 3px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
.dk-f .l2 { white-space: nowrap; }
.dk-cat .pill { font-size: 10px; padding: 1px 7px; margin-right: 4px; }
.dk-lg { cursor: default; }
.dk-lg .l2 { white-space: normal; }
.dk-undo { font-size: 12px; font-weight: 600; color: #3987e5; padding: 2px 8px; margin-left: 4px; border-radius: 6px; border: 1px solid #3987e5; }
.dk-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.55); z-index: 70; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.dk-box { width: 440px; max-width: 92%; background: #1a1a19; border: 1px solid #3a3a37; border-radius: 16px; padding: 16px 18px; box-sizing: border-box; }
.dk-mh { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 17px; margin-bottom: 6px; }
.dk-mh b { font-weight: 600; word-break: break-all; padding-right: 10px; }
.dk-mh span { font-weight: 600; white-space: nowrap; }
.dk-mp { font-size: 13px; color: #c3c2b7; word-break: break-all; margin-bottom: 4px; line-height: 1.4; }
.dk-mi { font-size: 12px; margin-bottom: 12px; }
.dk-mn { font-size: 13px; color: #c3c2b7; line-height: 1.45; margin: 8px 0 4px; }
.dk-mb { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-top: 10px; }
.dk-mb button { -webkit-flex: 1 0 40%; flex: 1 0 40%; margin: 4px; padding: 10px 8px; border-radius: 10px; background: #2c2c2a; color: #f0efec; font-size: 14px; font-weight: 500; }
.dk-mb button.danger { background: #d03b3b; color: #fff; font-weight: 600; }
.dk-mb button.down { opacity: 0.8; }
html.light .sr, html.light .dk-row, html.light .dk-cat, html.light .dk-f, html.light .dk-rest, html.light .dk-showmore { border-top-color: #ebeae5; }
html.light .sr span, html.light .dk-row .nm small, html.light .dk-cat .l2, html.light .dk-f .l2, html.light .s-ring .rv span { color: #6c6b65; }
html.light .sg-h, html.light .dk-back, html.light .dk-crumbs span { color: #2a78d6; }
html.light .dk-crumbs span.cur { color: #0b0b0b; }
html.light .dk-entry { background: #ecebe7; }
html.light .dk-row.down, html.light .dk-cat.down, html.light .dk-f.down { background: #ecebe7; }
html.light .dk-box { background: #fcfcfb; border-color: #d3d1ca; }
html.light .dk-mp, html.light .dk-mn { color: #52514e; }
html.light .dk-mb button { background: #ecebe7; color: #0b0b0b; }
html.light .dk-mb button.danger { background: #d03b3b; color: #fff; }
html.light .dk-note { background: rgba(250, 178, 25, 0.16); color: #7a5600; }
html.light .dk-note b { color: #7a5600; }
html.light .dk-vols .chip small { color: #6c6b65; }


/* ---------- agendamentos (Sistema) ---------- */
.sch-h { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.sch-h .muted { margin-right: 10px; }
.sch-wrap { display: -webkit-flex; display: flex; }
.sch-main { width: 58%; padding-right: 18px; box-sizing: border-box; }
.sch-side { -webkit-flex: 1; flex: 1; min-width: 0; }
.sch-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #3987e5; margin: 10px 0 4px; }
.sch-sub:first-child { margin-top: 0; }
.sch-job { padding: 7px 0; border-top: 1px solid #232321; }
.sj-l1 { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center; font-size: 14px; }
.sj-l1 b { font-weight: 600; }
.sj-l2 { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 12px; color: #9a998f; margin-top: 3px; }
.sj-l2 b { color: #f0efec; font-weight: 500; }
.sj-l2 em, .sch-chip em, .sch-row i { font-style: normal; color: #fab219; }
.sch-row i { color: #9a998f; }
.sj-l2 em.bad { color: #ff6b6b; }
.sch-fix { font-size: 12px; line-height: 1.4; color: #f0efec; background: rgba(208, 59, 59, 0.16); border-left: 3px solid #d03b3b;
  padding: 7px 10px; margin: 2px 0 6px; border-radius: 4px; }
.sch-fix b { font-weight: 600; white-space: nowrap; }
html.light .sch-fix { color: #0b0b0b; background: rgba(208, 59, 59, 0.10); }
html.light .sj-l2 em.bad { color: #c02f2f; }
.sj-l3 { font-size: 12px; color: #c3c2b7; margin-top: 3px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-chip { display: inline-block; font-size: 13px; margin: 2px 16px 2px 0; }
.sch-chip .pill { margin-left: 4px; }
.sch-apps { margin-top: 8px; }
.sch-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-size: 13px; padding: 5px 0; border-top: 1px solid #232321; }
.sch-row .sr-t { width: 110px; -webkit-flex: none; flex: none; color: #c3c2b7; white-space: nowrap; }
.sch-row .sr-k { width: 82px; -webkit-flex: none; flex: none; color: #9a998f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-row .pill { -webkit-flex: none; flex: none; margin-right: 8px; font-size: 10px; padding: 1px 7px; }
.sch-row .sr-x { -webkit-flex: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.light .sch-job, html.light .sch-row { border-top-color: #ebeae5; }
html.light .sj-l2, html.light .sch-row .sr-k, html.light .sch-row i { color: #6c6b65; }
html.light .sj-l2 b { color: #0b0b0b; }
html.light .sj-l3, html.light .sch-row .sr-t { color: #52514e; }
html.light .sch-sub { color: #2a78d6; }
html.light .sj-l2 em, html.light .sch-chip em { color: #a36a00; }

/* ---------- portrait (768 × 1024) ---------- */
@media (orientation: portrait) {
  .tiles { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  /* 9 tiles: 5 on the first row, 4 stretched on the second */
  .tiles .tile { -webkit-flex: 1 1 auto; flex: 1 1 auto; width: calc(20% - 10px); }
  .chart-card .chart { height: 220px; }
  .chart-card .chart.sol-chart { height: 150px; }
  .chart-card .chart.fx-chart { height: 220px; }
  .sol-wide { width: calc(100% - 10px); }
  .fx-table .c4 { display: none; }
  .chart-card .chart.sol-bars { height: 120px; }
  /* narrow card: short internet label ("13 ms", "Sem internet") */
  .inet .lf { display: none; }
  .inet .ls { display: inline; }
  .inet.bad .in-txt em { display: none; }
  .np-cover { width: 104px; height: 104px; margin-right: 14px; }
  .np-ctrl .cbtn.big { margin: 0 8px; }
  .qrow .q-name { width: 96px; }
  .qr-sub { margin-left: 106px; margin-right: 0; }
  .qrow .q-pct { width: 36px; }
  .col3 { width: 100%; -webkit-flex-direction: row; flex-direction: row; }
  .col3 > .card { -webkit-flex: 1; flex: 1; width: 0; }
  .w33 { width: calc(50% - 10px); }
  .w66, .w100 { width: calc(100% - 10px); }
  .key { width: calc(33.333% - 10px); }
  .weather .w-days { display: none; }
  .toast { width: 420px; margin-left: -210px; }
}
/* ---------- phone (iPhone, portrait): header in rows, everything stacked ---------- */
@media (max-width: 700px) {
  #top { height: auto; min-height: 52px; -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: 6px 10px 8px; }
  .clock { font-size: 28px; margin-right: 10px; -webkit-order: 1; order: 1; }
  .clock-s { font-size: 13px; }
  .date-block { display: block; margin-right: 0; -webkit-order: 2; order: 2; }
  #top.compact .date-block { margin-right: 0; }
  .date { font-size: 13px; }
  .host, .weather { display: none; }
  #top .spacer { -webkit-order: 3; order: 3; }
  .conn { -webkit-order: 4; order: 4; margin: 0 6px; }
  #theme-btn { -webkit-order: 5; order: 5; width: 36px; height: 36px; }
  .hdr-next { -webkit-order: 10; order: 10; -webkit-flex: 1 0 100%; flex: 1 0 100%; max-width: none; margin: 6px 0 0; }
  .hdr-mail { -webkit-order: 11; order: 11; margin: 6px 6px 0 0; }
  .hdr-fx { -webkit-order: 12; order: 12; margin: 6px 6px 0 0; }
  .hdr-alert { -webkit-order: 13; order: 13; margin: 6px 6px 0 0; }
  .page { padding: 4px; }
  .row { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .w33, .w50, .w66, .w100, .sol3, .sol-wide { width: calc(100% - 10px); }
  .sens-wrap { display: block; }
  .sch-wrap { display: block; }
  .sch-main { width: auto; padding-right: 0; margin-bottom: 12px; }
  .sj-l2 { display: block; }
  .sj-l2 span { display: block; }
  .sch-row .sr-k { width: 64px; }
  .sens-left { width: auto; padding-right: 0; margin-bottom: 10px; }
  .sg-col { padding-left: 0; padding-right: 8px; }
  .dk-head { display: block; }
  #dk-sub { display: none; }
  .dk-act { margin-top: 8px; -webkit-justify-content: space-between; justify-content: space-between; }
  .dk-act .muted { text-align: left; }
  .dk-row .bar { display: none; }
  .dk-crumbs em { width: 100%; padding-left: 0; margin-top: 2px; }
  .col3 { width: 100%; -webkit-flex-direction: column; flex-direction: column; }
  .col3 > .card { -webkit-flex: none; flex: none; width: auto; }
  /* 9 rings in 3 rows of 3 */
  .tiles .tile { -webkit-flex: 1 1 auto; flex: 1 1 auto; width: calc(33.333% - 10px); height: 112px; padding: 8px 2px 6px; }
  .ring { width: 60px; height: 60px; }
  .ring canvas { width: 60px; height: 60px; }
  .ring-val b { font-size: 16px; }
  .tile-lbl, .tile-sub { font-size: 10px; }
  .chart-card .chart { height: 130px; }
  .chart-card .chart.sol-chart { height: 140px; }
  .chart-card .chart.fx-chart { height: 220px; }
  .chart-card .chart.sol-bars { height: 110px; }
  /* tab bar: 4 pages + Mais, icon and name */
  .tab { font-size: 11px; }
  .tab .ic { width: 25px; height: 25px; margin: 0 auto 3px; }
  .tab .ic-w { width: 25px; height: 25px; }
  .key { width: calc(50% - 10px); height: 150px; }
  /* orders on a phone: when, symbol, result, % and balance */
  .fx-table .lf, #fx-nclosed { display: none; }
  .fx-table .ls { display: inline; }
  .fx-table .c2, .fx-table .c3, .fx-table .c4, .fx-table .c6, .fx-table .c10 { display: none; }
  .fx-table .c1 { -webkit-flex: 1; flex: 1; width: auto; font-size: 12px; }
  .fx-table .c5 { width: 50px; font-size: 12px; }
  .fx-table .c7 { width: 56px; font-size: 11px; }
  .fx-table .c9 { width: 56px; font-size: 12px; }
  .fx-table .c8 { width: 60px; font-size: 12px; }
  .fx-filter .seg button { padding: 4px 9px; }
  .toast { width: 300px; margin-left: -150px; }
}

/* ================= light theme (html.light) =================
   Same layout; colors from the validated light data-viz slots on surface #fcfcfb. */
html.light, html.light body { background: #ecebe7; color: #0b0b0b; }
html.light .muted, html.light .clock-s, html.light .host, html.light .weather .w-sub, html.light .weather .w-day,
html.light .kv span, html.light .tile-sub, html.light .s-sub, html.light .sm-row .sm-t, html.light .models .mrow,
html.light .core span, html.light .prow .pn small, html.light .prj .tok, html.light .ring-val small { color: #6c6b65; }
html.light .lbl, html.light .tile-lbl, html.light .legend, html.light .q-name, html.light .legend-rows > div,
html.light .net-big span, html.light .prj .pct, html.light .conn { color: #52514e; }
html.light .legend b, html.light .legend-rows b, html.light .net-big b, html.light .weather .w-day b { color: #0b0b0b; }
html.light #top { border-bottom-color: #dedcd6; }
html.light .weather { border-left-color: #dedcd6; }
html.light .card { background: #fcfcfb; border-color: #e0ded8; }
html.light .conn, html.light .hbtn { background: #fcfcfb; border-color: #dedcd6; }
html.light .hbtn.wide { color: #0b0b0b; }
html.light .hbtn.down { background: #ecebe7; }
html.light .pill { background: #e7e6e1; color: #52514e; }
html.light .pill.good { background: #0ca30c; color: #fff; }
html.light .pill.warn { background: #fab219; color: #0b0b0b; }
html.light .bar, html.light .stack, html.light .core .cb, html.light .slider-track { background: #e7e6e1; }
html.light .tip { background: #fcfcfb; border-color: #d3d1ca; color: #0b0b0b; }
html.light .kv, html.light .plist .prow, html.light .projects .prj, html.light .sessions .s { border-top-color: #ebeae5; }
html.light .sess-mini, html.light .stats4 { border-top-color: #e3e1db; }
html.light .seg { background: #ecebe7; }
html.light .seg button { color: #6c6b65; }
html.light .seg button.on { background: #fcfcfb; color: #0b0b0b; }
html.light .status.idle { background: #e7e6e1; color: #52514e; }
html.light .cbtn { background: #ecebe7; color: #0b0b0b; }
html.light .cbtn.down { background: #dedcd6; }
html.light .cbtn.big { background: #0b0b0b; color: #fcfcfb; }
html.light .cbtn.big.down { background: #52514e; }
html.light .slider-track i, html.light .slider-knob, html.light .pace-mark, html.light .np-prog .bar i { background: #0b0b0b; }
html.light .np-cover { background: #ecebe7; color: #a9a8a1; }
html.light .np-prog { color: #6c6b65; }
html.light .np-ctrl .cbtn { background: none; }
html.light .np-ctrl .cbtn.down { background: #e7e6e1; }
html.light .np-ctrl .cbtn.big { background: #0b0b0b; color: #fcfcfb; }
html.light .q-pace { color: #52514e; }
html.light .key { background: #fcfcfb; border-color: #e0ded8; color: #0b0b0b; }
html.light .key .kicon { background: #ecebe7; }
html.light .key .kicon.img, html.light .key .kicon.emoji { background: none; }
html.light .key .kstate { background: #e7e6e1; }
html.light .key.active { border-color: #0b0b0b; }
html.light .key.down { background: #ecebe7; }
html.light #tabs { background: #ecebe7; border-top-color: #dedcd6; }
html.light .tab { color: #7a7973; }
html.light .tab.on { color: #0b0b0b; }
html.light .tab.on .ic { color: #2a78d6; }
html.light .overlay { background: #ecebe7; }
html.light .pair-icon, html.light .keypad button { background: #fcfcfb; border-color: #dedcd6; }
html.light .keypad button.down { background: #e7e6e1; }
html.light .pin-dots i { border-color: #a9a8a1; }
html.light .pin-dots i.on { background: #0b0b0b; border-color: #0b0b0b; }
html.light .toast { background: #fcfcfb; border-color: #d3d1ca; color: #0b0b0b; }

/* Sistema → Este Mac: last freeze / connection drop of this device */
.s-frz-last { margin-top: 4px; line-height: 1.35; }
