:root {
  --bg: #f2f0ea;
  --paper: #ffffff;
  --ink: #1a1920;
  --mute: #6d6a78;
  --faint: #a3a0ab;
  --line: #e4e0d7;
  --soft: #f7f5f0;
  --sys: #0d7a64;
  --sys-deep: #075445;
  --sys-soft: #e1f1ed;
  --warn: #b0432a;
  --warn-soft: #fbe9e3;
  --amber: #8a5a00;
  --amber-soft: #faf0d9;
  --blue: #2f55b5;
  --blue-soft: #e6ecfa;
  --violet: #6a3fb0;
  --violet-soft: #efe8fa;
  --r: 20px;
  --shadow: 0 1px 2px rgba(26, 25, 32, .04), 0 12px 40px -12px rgba(26, 25, 32, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  padding-bottom: 104px; min-height: 100vh;
}
body.bar-closed { padding-bottom: 56px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
small { font-size: .84em; color: var(--mute); font-weight: 400; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--sys); outline-offset: 2px; border-radius: 6px; }

/* ---------- a rendszer „arca” ---------- */
.orb {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #7fe3c8 0%, var(--sys) 46%, var(--sys-deep) 100%);
  box-shadow: 0 0 0 4px rgba(13, 122, 100, .12);
}
.orb.tiny { width: 10px; height: 10px; box-shadow: none; margin-right: 6px; }
.orb.big { width: 56px; height: 56px; box-shadow: 0 0 0 10px rgba(13, 122, 100, .09), 0 0 0 22px rgba(13, 122, 100, .045); animation: breathe 4.5s ease-in-out infinite; }
.orb.busy { animation: breathe 1.3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.07); box-shadow: 0 0 0 14px rgba(13, 122, 100, .08), 0 0 0 30px rgba(13, 122, 100, .03); } }

.avatar {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; letter-spacing: .02em; font-style: normal;
}
.avatar.s { width: 28px; height: 28px; font-size: 11px; }
.avatar.xs { width: 18px; height: 18px; font-size: 8.5px; margin-right: 6px; vertical-align: -3px; }

/* ---------- fejléc ---------- */
#top { display: flex; align-items: center; gap: 20px; padding: 18px 28px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; color: inherit; text-decoration: none; }
.brand b { font-weight: 700; }
.brand em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
#top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.who { display: flex; align-items: center; gap: 10px; }
#top nav:empty + .who { margin-left: 0; }
.whoname { display: flex; flex-direction: column; line-height: 1.2; }
.whoname b { font-size: 14px; font-weight: 600; }
.whoname small { font-size: 12px; }
.link { color: var(--ink); font-weight: 550; font-size: 15px; border-bottom: 1.5px solid var(--line); padding-bottom: 1px; }
.link:hover { border-color: var(--ink); }
.link.quiet { color: var(--mute); font-weight: 450; font-size: 13.5px; border-bottom-color: transparent; }
.link.quiet:hover { color: var(--ink); border-bottom-color: var(--line); }
.link.armed, .bartools .armed { color: var(--warn) !important; }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--sys); color: #fff; font-size: 12px; margin-left: 4px; }

/* ---------- gombok ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 14px; font-weight: 620; font-size: 16px; border: 1.5px solid transparent; transition: transform .12s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.primary[disabled] { background: var(--faint); cursor: not-allowed; }
.btn.ghost { border-color: var(--line); background: var(--paper); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.warn { background: var(--warn); color: #fff; }
.btn.small { padding: 9px 16px; font-size: 14.5px; border-radius: 11px; background: var(--ink); color: #fff; }
.skip { margin-left: auto; color: var(--mute); font-size: 15px; font-weight: 500; padding: 10px 4px; }
.skip:hover { color: var(--ink); }
.skip span { display: inline-block; transition: transform .15s; }
.skip:hover span { transform: translateX(3px); }

/* ---------- fókusz nézet: egy feladat ---------- */
#main.v-focus, #main.v-login { max-width: 660px; margin: 0 auto; padding: 14px 20px 40px; }
.progress { text-align: center; margin: 14px 0 22px; color: var(--mute); font-size: 14.5px; }
.progress b { color: var(--ink); font-weight: 650; }
.dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 9px; flex-wrap: wrap; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3cfc5; transition: all .25s; }
.dots i.on { background: var(--sys); width: 26px; border-radius: 99px; }
.dots i.skipped { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.dots i.skipped.on { background: var(--amber); box-shadow: none; }

.card { background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); padding: 38px 40px 30px; animation: rise .38s cubic-bezier(.2, .8, .2, 1) both; }
#main.quiet .card, #main.quiet .page, #main.quiet .empty { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.eyebrow { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; color: var(--sys); margin-bottom: 14px; }
.subject { font-size: 15.5px; color: var(--mute); margin: -4px 0 10px; }
.subject b { color: var(--ink); font-weight: 620; }
.say { font-size: 27px; line-height: 1.26; font-weight: 520; letter-spacing: -.018em; text-wrap: balance; }
.say b { font-weight: 720; }

.facts { margin: 26px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); font-size: 14.5px; flex: none; }
.facts dd { margin: 0; text-align: right; font-weight: 550; }
.facts .total dd { font-size: 20px; font-weight: 720; letter-spacing: -.01em; }
.facts .bad dd { color: var(--warn); }
.okmark { color: var(--sys) !important; font-weight: 600; }

.quote { margin: 22px 0 0; padding: 16px 20px; background: var(--amber-soft); border-radius: 16px; border-left: 4px solid #d9a52b; }
.quote p { font-size: 16.5px; line-height: 1.45; }
.quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--amber); font-weight: 600; }
.note { margin: 20px 0 0; padding: 13px 16px; border-radius: 14px; background: var(--blue-soft); color: #22366f; font-size: 14.5px; }
.note p { margin-top: 4px; }
.note.bad { background: var(--warn-soft); color: #7a2a17; }
.note.warnnote { background: var(--amber-soft); color: #5e3f00; }
.alert { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: #7a2a17; font-size: 14.5px; font-weight: 500; }
.auto { margin-top: 10px; color: var(--mute); font-size: 14.5px; }
.auto b { color: var(--ink); font-weight: 600; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; margin-top: 26px; }
.grid.one { grid-template-columns: 1fr; margin-top: 16px; }
.grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 600; color: #3d3b47; }
.field > span small { font-weight: 400; }
.control { position: relative; display: flex; align-items: center; }
.control input, .control select, .control textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft);
  font-size: 16.5px; font-weight: 520; transition: border-color .15s, background .15s; min-width: 0;
}
.control textarea { font-weight: 450; resize: vertical; line-height: 1.45; }
.control input:focus, .control select:focus, .control textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.control input::placeholder, .control textarea::placeholder { color: var(--faint); font-weight: 400; }
.control i { position: absolute; right: 14px; font-style: normal; color: var(--mute); font-size: 14.5px; pointer-events: none; }
.control input:has(+ i) { padding-right: 78px; }
.field em { font-style: normal; color: var(--warn); font-size: 13px; font-weight: 500; }
.field small { font-size: 13px; }
.field.bad .control input, .field.bad .control select, .field.bad .control textarea { border-color: var(--warn); background: #fff8f6; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 14px; }
.segmented label { position: relative; text-align: center; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented b { display: block; padding: 10px; border-radius: 10px; font-weight: 560; color: var(--mute); }
.segmented input:checked + b { background: var(--ink); color: #fff; }

.result { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: var(--sys-soft); color: var(--sys-deep); }
.result:empty { display: none; }
.result span { font-size: 14.5px; font-weight: 550; }
.result b { font-size: 22px; font-weight: 740; letter-spacing: -.01em; }
.result b.dim { opacity: .45; font-size: 16px; }
.result .checks { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.result .checks i { font-style: normal; font-weight: 600; font-size: 14.5px; }
.result .checks i::before { content: "✓ "; }
.result .checks i.bad { color: var(--warn); }
.result .checks i.bad::before { content: "✕ "; }
.result:has(.bad) { background: var(--warn-soft); }

.actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.actions:empty { display: none; }
.foot { display: flex; gap: 22px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: wrap; }

.trace { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 26px 0 0; font-size: 12.5px; color: var(--faint); }
.trace li { display: flex; align-items: center; }
.trace li:not(:last-child)::after { content: ""; width: 16px; height: 1.5px; background: var(--line); margin: 0 7px; }
.trace li.done { color: var(--mute); }
.trace li.done::before { content: "✓"; margin-right: 4px; color: var(--sys); font-weight: 700; }
.trace li.now { color: var(--ink); font-weight: 650; }
.trace li.now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sys); margin-right: 6px; box-shadow: 0 0 0 3px rgba(13, 122, 100, .18); }

.equation { display: flex; align-items: stretch; gap: 10px; margin-top: 26px; }
.equation > div { flex: 1; background: var(--soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.equation > div b { font-size: 18px; font-weight: 680; white-space: nowrap; }
.equation > div.sum { background: var(--ink); color: #fff; }
.equation > div.sum small { color: #b9b6c2; }
.equation > span { align-self: center; color: var(--faint); font-size: 20px; }
.splitbar { display: flex; gap: 6px; margin-top: 16px; }
.splitbar > div { border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.splitbar b { font-size: 18px; font-weight: 700; white-space: nowrap; }
.splitbar .a { background: var(--sys-soft); color: var(--sys-deep); }
.splitbar .a small { color: var(--sys); }
.splitbar .b { background: var(--violet-soft); color: #40246f; }
.splitbar .b small { color: var(--violet); }
.items { margin-top: 12px; font-size: 14.5px; }
.items summary { cursor: pointer; color: var(--mute); font-weight: 500; }
.items ul { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.items li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }

.picklist { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.picklist button { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; text-align: left; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--soft); }
.picklist button:hover { border-color: var(--ink); background: #fff; }
.picklist span { grid-column: 1; color: var(--mute); font-size: 14px; }
.picklist i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 14px; color: var(--mute); }

/* ---------- visszajelzés: mit csinál most a rendszer ---------- */
.flash { text-align: center; padding: 54px 44px 44px; position: relative; overflow: hidden; cursor: pointer; }
.flash .say { font-size: 21px; font-weight: 500; margin: 34px auto 26px; max-width: 30em; }
.flash .timer { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--sys); transform-origin: left; animation: timer linear both; }
@keyframes timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.empty { text-align: center; padding: 11vh 20px 40px; animation: rise .5s both; }
.empty h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 40px 0 10px; }
.empty p { color: var(--mute); font-size: 17px; max-width: 26em; margin: 0 auto 30px; }

/* ---------- belépés ---------- */
.login { padding-top: 4vh; text-align: center; }
.login h1 { font-size: 34px; font-weight: 620; letter-spacing: -.025em; margin: 34px 0 10px; }
.login .lead { color: var(--mute); font-size: 17px; max-width: 30em; margin: 0 auto 10px; text-wrap: balance; }
.login h2 { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--mute); font-weight: 650; margin: 26px 4px 10px; }
.users { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.usercard { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; background: var(--paper); border-radius: 18px; border: 1.5px solid transparent; box-shadow: 0 1px 2px rgba(26, 25, 32, .05); transition: border-color .15s, transform .15s; }
.usercard:hover { border-color: var(--ink); transform: translateY(-1px); }
.uc { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.uc b { font-weight: 620; }
.usercard .state { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.usercard .state.has { color: var(--sys-deep); background: var(--sys-soft); padding: 3px 9px; border-radius: 99px; font-weight: 620; }
.animlink { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--ink); font-weight: 560; text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; }
.animlink:hover { border-color: var(--ink); }
.animlink span { color: var(--sys); }
.steps { list-style: none; display: inline-flex; gap: 0; padding: 0; margin: 0; font-size: 13.5px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; color: var(--faint); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 7px; background: #dcd8cf; color: #fff; font-size: 12px; font-weight: 700; }
.steps li:not(:last-child)::after { content: ""; width: 26px; height: 1.5px; background: var(--line); margin: 0 10px; }
.steps li.now { color: var(--ink); font-weight: 650; }
.steps li.now::before { background: var(--ink); }
.steps li.done::before { content: "✓"; background: var(--sys); }

/* ---------- oldalnézetek: Eladásaim, vezetői teljes kép ---------- */
#main.v-page { max-width: 1180px; margin: 0 auto; padding: 10px 28px 40px; }
.page { max-width: 940px; margin: 0 auto; animation: rise .35s both; }
.page.wide { max-width: none; }
.page h1 { font-size: 30px; font-weight: 640; letter-spacing: -.02em; }
.page h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); font-weight: 650; margin: 34px 0 12px; }
.pagehead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pagehead p { color: var(--mute); font-size: 14.5px; }
.pagehead p b { color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 22px 0 6px; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpis > div { background: var(--paper); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpis b { font-size: 21px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.kpis .hl { background: var(--ink); color: #fff; }
.kpis .hl small { color: #b9b6c2; }
.tabs { display: flex; gap: 4px; margin: 20px 0 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 10px 14px; font-weight: 560; color: var(--mute); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 34px; }

.rows { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.row { background: var(--paper); border-radius: 16px; overflow: hidden; }
.rowhead { display: grid; grid-template-columns: 96px minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) 150px; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 18px; }
.rowhead.wide { grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1.1fr) repeat(3, minmax(0, .9fr)) 150px; }
.rowhead:hover { background: var(--soft); }
.rowhead > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rowhead .what b, .rowhead .what small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowhead .when { font-size: 13.5px; color: var(--mute); }
.rowhead .num { text-align: right; white-space: nowrap; font-size: 15px; }
.rowhead .num small { font-size: 11.5px; }
.rowhead .who2 { font-size: 14px; }
.rowhead .st { align-items: flex-end; }
.detail { padding: 4px 18px 16px; border-top: 1px solid var(--line); background: var(--soft); }
.mutetext { color: var(--mute); font-size: 14px; padding-top: 12px; }
table { border-collapse: collapse; width: 100%; }
.mini th, .data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 650; padding: 10px 10px 8px; white-space: nowrap; }
.mini td, .data td { padding: 9px 10px; border-top: 1px solid var(--line); font-size: 14.5px; white-space: nowrap; }
.mini tr.sub td { white-space: normal; color: var(--mute); font-size: 13px; border-top: 0; padding-top: 0; }
th.r, td.r { text-align: right; }
.tablewrap { background: var(--paper); border-radius: 16px; padding: 6px 10px; overflow-x: auto; margin-top: 14px; }

.chip-s { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 620; white-space: nowrap; background: #ebe8e1; color: #55525f; }
.chip-s.ok { background: var(--sys-soft); color: var(--sys-deep); }
.chip-s.bad { background: var(--warn-soft); color: #8a2f19; }
.chip-s.a2 { background: var(--blue-soft); color: #25408c; }
.chip-s.lead { background: var(--amber-soft); color: #6f4800; }
.chip-s.sell { background: var(--violet-soft); color: #4d2b85; }

.waiting { display: flex; flex-direction: column; gap: 8px; }
.wrow { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 16px; padding: 14px 16px; }
.wrow > div { flex: 1; min-width: 0; }
.wrow ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; color: var(--mute); }
.wrow li { padding: 1.5px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow li.more { color: var(--faint); }
.wrow em { font-style: normal; font-size: 22px; font-weight: 720; }
.flow { background: var(--paper); border-radius: 16px; padding: 14px 16px 16px; margin-bottom: 8px; }
.flow h3 { font-size: 13.5px; font-weight: 620; margin-bottom: 10px; }
.flow ol { list-style: none; display: flex; gap: 5px; padding: 0; margin: 0; }
.flow li { flex: 1; min-width: 0; border-radius: 11px; padding: 9px 8px; display: flex; flex-direction: column; background: #ebe8e1; color: #55525f; }
.flow li b { font-size: 20px; font-weight: 720; line-height: 1.1; }
.flow li span { font-size: 11.5px; font-weight: 550; line-height: 1.25; margin-top: 3px; }
.flow li.ok { background: var(--sys-soft); color: var(--sys-deep); }
.flow li.bad { background: var(--warn-soft); color: #8a2f19; }
.flow li.a2 { background: var(--blue-soft); color: #25408c; }
.flow li.lead { background: var(--amber-soft); color: #6f4800; }
.flow li.sell { background: var(--violet-soft); color: #4d2b85; }
.flow li.zero { background: var(--soft); color: var(--faint); }

.log { list-style: none; padding: 0; margin: 0; background: var(--paper); border-radius: 16px; overflow: hidden; }
.log li { display: grid; grid-template-columns: 104px 150px minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.log li:first-child { border-top: 0; }
.log time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.log .actor { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li.sys { background: #f6fbf9; }
.log li.sys .actor { color: var(--sys-deep); }
.cols .log li { grid-template-columns: 1fr; gap: 2px; }
.cols .log time { order: 2; }
.filter { display: flex; align-items: center; gap: 6px; margin: 16px 0 12px; flex-wrap: wrap; }
.filter button { padding: 7px 14px; border-radius: 99px; background: var(--paper); font-size: 14px; font-weight: 550; color: var(--mute); }
.filter button.on { background: var(--ink); color: #fff; }
.filter span { margin-left: auto; color: var(--faint); font-size: 13px; }

/* ---------- tesztsáv: szándékosan „kívül” a terméken ---------- */
#bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #17161c; color: #e9e7ee; border-radius: 18px; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .45); }
body.bar-closed #bar { left: auto; padding: 0; background: none; box-shadow: none; }
.barpill { background: #17161c; color: #e9e7ee; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 99px; }
.barlabel { display: flex; flex-direction: column; line-height: 1.2; flex: none; }
.barlabel b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f2c14e; }
.barlabel small { font-size: 11px; color: #8d8a99; }
.chips { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 99px; background: #25242c; color: #e9e7ee; flex: none; position: relative; transition: background .15s; }
.chip:hover { background: #32313b; }
.chip.on { background: #e9e7ee; color: #17161c; }
.chip.on .avatar { background: var(--sys); }
.chip .avatar { background: #3d3b48; }
.chip .cn { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; font-weight: 600; text-align: left; }
.chip .cn small { font-size: 10.5px; color: #8d8a99; }
.chip.on .cn small { color: #6d6a78; }
.chip > b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #f2c14e; color: #17161c; font-size: 11.5px; font-weight: 750; display: inline-grid; place-items: center; }
.chip > b.zero { background: transparent; color: #6d6a78; box-shadow: inset 0 0 0 1px #3d3b48; }
.chip.pop > b { animation: pop 1.1s cubic-bezier(.2, 1.6, .4, 1) 2; }
.chip.pop { animation: glow 2.2s ease-out; }
@keyframes pop { 30% { transform: scale(1.7); background: #7fe3c8; } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(127, 227, 200, .8); } 100% { box-shadow: 0 0 0 16px rgba(127, 227, 200, 0); } }
.bartools { display: flex; align-items: center; gap: 4px; flex: none; }
.bartools button, .bartools a { color: #cfcdd8; font-size: 13px; font-weight: 550; padding: 8px 10px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.bartools button:hover, .bartools a:hover { background: #25242c; color: #fff; }
.bartools .armed { background: #3a1f18; color: #ffb49d !important; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: #17161c; color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14.5px; z-index: 30; max-width: min(92vw, 560px); animation: rise .3s both; transition: opacity .5s; }
.toast.out { opacity: 0; }

@media (max-width: 1560px) {
  .chip .cn small, .barlabel small { display: none; }
}
@media (max-width: 1180px) {
  #bar { flex-wrap: wrap; gap: 8px 16px; }
  .chips { order: 3; flex-basis: 100%; }
  .bartools { margin-left: auto; }
  body { padding-bottom: 150px; }
  .toast { bottom: 138px; }
}
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .rowhead, .rowhead.wide { grid-template-columns: 1fr 1fr; }
  .rowhead .num, .rowhead .st { text-align: left; align-items: flex-start; }
  .barlabel small, .chip .cn small { display: none; }
  .bartools a { display: none; }
}
@media (max-width: 640px) {
  #top { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .brand em, .whoname small { display: none; }
  .card { padding: 26px 22px 22px; border-radius: 22px; }
  .say { font-size: 22px; }
  .grid, .users, .kpis.three { grid-template-columns: 1fr; }
  .equation { flex-wrap: wrap; }
  .equation > span { display: none; }
  .skip { margin-left: 0; }
  #bar { flex-wrap: wrap; gap: 8px; }
  .chips { order: 3; flex-basis: 100%; }
  .bartools { flex-wrap: wrap; margin-left: 0; }
  .bartools button, .bartools a { padding: 6px 8px; }
  body { padding-bottom: 170px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .flash .timer { display: none; }
}
