/* Сводка (7.2). 04.10 owner «Доделай за агентами что они не доедали»: written by hand. Tokens only; fixed row heights,
   tabular numbers, single-line labels with ellipsis (the owner's no-flicker, no-jump rules). */

/* health strip */
.hs { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 var(--pad); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.hs-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ink-4); }
.hs-dot[data-l="ok"] { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.hs-dot[data-l="info"] { background: var(--info); }
.hs-dot[data-l="warn"] { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.hs-dot[data-l="bad"] { background: var(--down); box-shadow: 0 0 0 3px var(--down-bg); }
.hs-t { flex: 1 0 auto; min-width: 0; max-width: 100%; font-weight: 600; font-size: var(--fs-body); }
.hs-n, .hs-f { font-size: var(--fs-micro); white-space: nowrap; }
/* (09.10 owner «куча хуйни»: on a phone «чистыми +$2,52/сут · +$0,10/ч» was cut to «чистыми…» by the long note beside it) the note gives way */
.hs-f { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* «Всего денег» */
.hero-v { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.hero-s { font-size: var(--fs-micro); line-height: var(--lh-micro); margin-top: 2px; }
.hero-p { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); margin-top: 6px; min-height: var(--lh-small); }
.alist { margin-top: 10px; display: flex; flex-direction: column; }
.arow { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; height: 48px; border-top: 1px solid var(--line); }
.a-ic { width: 10px; height: 10px; border-radius: 3px; }
.a-mid, .b-mid, .l3-mid, .f-mid { min-width: 0; display: flex; flex-direction: column; }
.a-n { font-size: var(--fs-body); font-weight: 600; }
.a-s { font-size: var(--fs-micro); line-height: var(--lh-micro); }
.a-end { text-align: right; }
.a-v { font-size: var(--fs-body); font-weight: 600; }
.a-sh { font-size: var(--fs-micro); }

/* bots */
.blist { display: flex; flex-direction: column; }
.brow { border-top: 1px solid var(--line); }
.brow:first-child { border-top: 0; }
.b-h { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: center; min-height: 52px; cursor: pointer; }
.b-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.b-dot[data-t="up"] { background: var(--up); }
.b-dot[data-t="info"] { background: var(--info); }
.b-dot[data-t="warn"] { background: var(--warn); }
.b-dot[data-t="down"] { background: var(--down); }
.b-l1 { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.b-n { font-weight: 600; font-size: var(--fs-body); flex: 1; }
.b-s { font-size: var(--fs-micro); white-space: nowrap; }
.b-v { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.b-v[data-t="up"] { color: var(--up); }
.b-v[data-t="warn"] { color: var(--warn); }
.b-v[data-t="down"] { color: var(--down); }
.b-kv { display: flex; flex-direction: column; gap: 6px; padding: 0 0 6px 20px; }
.kv-t { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.kv-l { display: flex; flex-direction: column; gap: 3px; }
.kv-r { display: grid; grid-template-columns: 36px 1fr; gap: 6px; font-size: var(--fs-small); line-height: var(--lh-small); }
.kv-v { font-weight: 700; text-align: center; }
.kv-v[data-t="up"] { color: var(--up); }
.kv-v[data-t="down"] { color: var(--down); }
.kv-v[data-t="zero"] { color: var(--ink-3); }
.kv-v[data-t="info"] { color: var(--info); }
.kv-mid { min-width: 0; }
/* 05.10: a bot's own rows - the words first, the number at the right (the NEAR readiness list keeps its 36px marks) */
.kv-r.w { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.kv-r.w .kv-v { order: 2; text-align: right; white-space: nowrap; font-weight: 600; }
.kv-r.w .kv-mid { order: 1; }
.kv-r.w .kv-v:empty { display: none; }
.kv-r.w:has(.kv-v:empty) { grid-template-columns: 1fr; }
.b-f { font-size: var(--fs-micro); padding: 0 0 8px 20px; }
.brow:not(.open) .b-f { display: none; }
.b-off { font-size: var(--fs-micro); line-height: var(--lh-micro); padding-top: 8px; border-top: 1px solid var(--line); }
.b-off:empty { display: none; }

/* mining */
.m-per { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); min-height: var(--lh-small); }
.mlist { display: flex; flex-direction: column; }
.l3 { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; height: 48px; border-top: 1px solid var(--line); }
.l3-a { font-size: var(--fs-body); font-weight: 600; }
.l3-b { font-size: var(--fs-micro); line-height: var(--lh-micro); }
.l3-c { font-weight: 600; text-align: right; white-space: nowrap; }
.l3-c[data-t="up"] { color: var(--up); }
.l3-c[data-t="down"] { color: var(--down); }
.l3-c[data-t="warn"] { color: var(--warn); }

/* the feed */
.flist { display: flex; flex-direction: column; }
.frow { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; height: 44px; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; }
.f-t { font-size: var(--fs-micro); }
.f-h { font-size: var(--fs-small); font-weight: 600; }
.f-h[data-t="down"] { color: var(--down); }
.f-q { font-size: var(--fs-micro); line-height: var(--lh-micro); }
.f-v { font-weight: 600; font-size: var(--fs-small); white-space: nowrap; }
.f-v[data-t="up"] { color: var(--up); }
.f-v[data-t="down"] { color: var(--down); }

/* two columns from 760 px: the money and the bots side by side */
@media (min-width: 760px) {
  #v-home { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  #h-health { grid-column: 1 / -1; }
  /* (09.10 owner «куча хуйни»: a gap the height of the NEAR cards stood under «Всего денег», the feed alone at the bottom right)
     the left column stacks its cards; the NEAR cards take the right column beside them */
  #h-hero, #h-bots, #h-mining, #h-feed { grid-column: 1; }
  #h-near { grid-column: 2; grid-row: span 4; }
}

/* shared by the other views (04.10, by hand) */
.seg > button { flex: 1 1 0; min-width: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: var(--fs-small); font-weight: 500; white-space: nowrap; cursor: pointer; }
.seg > button[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); font-weight: 600; }
.lnk { border: 0; background: none; padding: 0; color: var(--ink-2); font: inherit; font-size: var(--fs-micro); cursor: pointer; white-space: nowrap; }
.lnk:hover { color: var(--ink); }
.more-btn { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.more-btn[hidden] { display: none; }
.dayrow { height: 32px; display: flex; align-items: flex-end; padding-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border-top: 1px solid var(--line); }
.dayrow:first-child { border-top: 0; }
.l3.rent2, .l3.pool2 { height: auto; min-height: 52px; padding: 6px 0; }
.l3.rent2 .l3-b, .l3.pool2 .l3-b { white-space: normal; }
@media (min-width: 760px) {
  #v-mining, #v-money, #v-trade { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  #m-chips { grid-column: 1 / -1; }
}
/* (04.10) the boxes of the parts not built yet take no cell of the grid */
.view > div:empty { display: none; }
/* (04.10) the period's result under the total: one line, a tap opens Деньги */
.hero-r { all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 28px; margin-top: 4px; font-size: var(--fs-small); cursor: pointer; }
.hero-r b { font-weight: 700; white-space: nowrap; }
.hero-r b[data-t="up"] { color: var(--up); }
.hero-r b[data-t="down"] { color: var(--down); }
.hero-r .ell { min-width: 0; flex: 1; }
/* (07.10 owner «все актуально … везде»: «сделки +$86,00 · м…» was cut on a phone) the result's parts wrap */
.hero-r .ell { flex: 0 0 auto; }               /* (07.10 «короче»: the result one line, its arrow beside it) */

/* 07.10 the QTC -> NEAR card: the button «Отправить пачку», «Точно?», what is on its way, the route's profit */
.nb-btn { display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--acc); color: var(--acc-ink);
  font: inherit; font-weight: 600; font-size: var(--fs-small); cursor: pointer; text-align: center; }
.nb-btn:disabled { background: var(--surface-3); color: var(--ink-3); cursor: default; }
.nb-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); }
.nb-ask[hidden], .nb-btn[hidden], .nb-msg[hidden] { display: none; }
.nb-q { flex: 1 1 220px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink); }
.nb-ab { display: flex; gap: 8px; }
.nb-yes, .nb-no { border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.nb-yes { background: var(--acc); color: var(--acc-ink); }
.nb-no { background: var(--surface-3); color: var(--ink); }
.nb-l { margin-top: 8px; font-size: var(--fs-micro); line-height: var(--lh-micro); }
.nb-msg { color: var(--ink-2); }
.nb-l[data-t="up"] { color: var(--up); }
.nb-l[data-t="down"] { color: var(--down); }

/* 07.10 the route's status by stages (owner «статус типо идет столько то отправили столько продается столько на закрытом счету») */
.nb-st { margin-top: 10px; }
.nb-st:empty { display: none; }
.nb-l[hidden] { display: none; }
.nb-wait { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.35; }   /* (08.10) the NEAR price the coins wait for */

/* 07.10 «Как сейчас, но короче»: an empty sub line takes no room; the health line hidden when all is well */
.arow .a-s:empty, .arow .a-sh:empty { display: none; }
#h-health[hidden] { display: none; }
.nb-st .l3-b:empty { display: none; }

/* 07.10 the buy on NEAR: a sum and its button on one line */
.nbb-row { display: flex; gap: 8px; margin-top: 8px; }
.nbb-row[hidden] { display: none; }
.nbb-in { width: 7.5em; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #333); background: transparent; color: inherit; font: inherit; }
.nbb-btn { flex: 1; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #333); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.nbb-btn:disabled { opacity: .5; cursor: default; }
/* 07.10 owner «… моя позиция в аирдропе на дашборд» -> «Ну бля сделай красиво»: NEAR@X's card */
.nx { display: flex; flex-direction: column; gap: 14px; }
.nx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nx-tile { background: var(--surface-2); border-radius: var(--r-m); padding: 10px 10px 9px; min-width: 0; }
.nx-tl { font-size: 11px; line-height: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.nx-tv { font-size: var(--fs-stat); line-height: var(--lh-stat); font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-ts { font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-ok[data-t="up"] { color: var(--up); }
.nx-ok[data-t="down"] { color: var(--down); }
.nx-drops { display: flex; flex-direction: column; }
.nx-drop { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.nx-drop:first-child { border-top: 0; padding-top: 0; }
.nx-drop[data-done="1"] { opacity: .75; }
.nx-dh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nx-dn { font-weight: 700; }
.nx-dt { color: var(--ink-2); font-size: var(--fs-small); }
.nx-dp { margin-left: auto; font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.nx-bar { display: flex; flex-direction: column; gap: 4px; }
.nx-bl { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--ink-3); }
.nx-track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.nx-fill { height: 100%; border-radius: 3px; background: var(--acc); }
.nx-fill[data-t="up"] { background: var(--up); }
.nx-dc { font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--ink-3); }
.nx-foot { font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--ink-3); }
/* (08.10) the drop calculator: the place in, what each drop may give out */
.nx-calc { margin: 14px 0; padding: 10px; border-radius: var(--r-m); background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.nx-chead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-ct { font-weight: 700; }
.nx-cl { display: flex; align-items: center; gap: 4px; font-size: var(--fs-small); color: var(--ink-2); }
.nx-cin { width: 6.5em; padding: 6px 8px; }
.nx-cout { display: flex; flex-direction: column; gap: 4px; }
.nx-crow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nx-cd { font-size: var(--fs-small); color: var(--ink-2); min-width: 3.4em; }
.nx-cv { font-weight: 700; }
.nx-cr { font-size: var(--fs-small); color: var(--ink-3); }
.nx-cu { margin-left: auto; font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.nx-cnote { font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--ink-3); }
