/* Firmy a peniaze (/firmy) */
.fm-main { position: relative; z-index: 1; display: grid; gap: 18px; padding-block: 26px 70px; overflow-x: clip; }
.fm-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fm-head h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.fm-emb { width: 76px; height: 76px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); animation: fmFloat 6s ease-in-out infinite; }
@keyframes fmFloat { 50% { transform: translateY(-5px) rotate(-3deg); } }
.fm-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.fm-chip { display: grid; gap: 1px; padding: 8px 14px; border-radius: 8px; background: rgb(var(--glass-rgb) / .7); border: 1px solid var(--line); min-width: 120px; }
.fm-chip b { font-family: var(--f-num); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-chip i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.fm-chip.bad { border-color: color-mix(in srgb, var(--bad) 60%, transparent); } .fm-chip.bad b { color: var(--bad); }
.fm-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.fm-tabs a { padding: 8px 14px; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 600; transition: .15s; }
.fm-tabs a:hover { color: var(--text); background: var(--panel); }
.fm-tabs a.on { color: var(--btn-ink); background: var(--btn-bg); }
#view { display: grid; gap: 18px; }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.fm-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fm-kpis .kpi { background: rgb(var(--glass-rgb) / .55); }
.fm-kpis .kpi .v { font-size: clamp(17px, 2vw, 22px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .fm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fm-strip { margin-left: 0; } }
.fm-owner .big { font-size: clamp(30px, 4.6vw, 48px); }
.fm-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fm-form input { flex: 1 1 160px; width: auto; min-width: 0; }
.fm-form.fm-col { display: grid; grid-template-columns: 1fr; }
.fm-form.fm-col input { width: 100%; }
.fm-sm { font-size: 15px; padding: 5px 10px; }
.fm-alerts { display: grid; gap: 10px; }
.fm-alert { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 8px; background: rgba(95,224,230,.08); border: 1px solid rgba(95,224,230,.35); }
.fm-alert > div:first-child { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.fm-alert.gold { background: rgb(var(--gold-rgb) / .08); border-color: rgb(var(--gold-rgb) / .4); }
.fm-alert.bad { background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.45); }
.fm-paths { display: grid; gap: 10px; }
.fm-path { position: relative; display: grid; gap: 4px; padding: 12px 14px; border-radius: 8px; background: rgb(var(--glass-rgb) / .55); border: 1px solid var(--line); }
.fm-tag { display: inline-block; font-size: 11px; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--torch); color: #1a1000; margin-left: 6px; vertical-align: middle; }
.fm-path .fm-tag { position: absolute; right: 10px; top: 10px; }
.fm-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-flag { font-size: 12px; padding: 3px 9px; border-radius: 20px; background: rgb(var(--glass-rgb) / .6); border: 1px solid var(--line); }
.fm-flag.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.fm-flag.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.fm-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.fm-dl dt { color: var(--muted); } .fm-dl dd { margin: 0; font-variant-numeric: tabular-nums; }
.fm-dl.sm { font-size: 13px; gap: 3px 12px; }
.fm-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fm-people li, .fm-who { display: flex; align-items: center; gap: 8px; }
.fm-people img, .fm-who img { border-radius: 4px; image-rendering: pixelated; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3a4566; display: inline-block; flex: none; }
.dot.on { background: var(--good); box-shadow: 0 0 6px var(--good); }
.fm-tblwrap { overflow-x: auto; }
.fm-pending { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 20px; background: rgb(var(--glass-rgb) / .6); border: 1px solid var(--line); font-size: 13px; }
.fm-pill button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 4px; }
.fm-pill button:hover { color: var(--bad); }
.fm-box { display: grid; gap: 8px; padding: 14px; border-radius: 8px; background: rgb(var(--glass-rgb) / .5); border: 1px solid var(--line); align-content: start; }
.fm-box.danger { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.fm-radio { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.fm-radio input { width: auto; }
.fm-radio i { font-style: normal; }
.fm-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-wrap: wrap; }
.fm-toggle input { position: absolute; opacity: 0; width: 1px; }
.fm-toggle span { width: 46px; height: 26px; border-radius: 20px; background: var(--line); position: relative; transition: .2s; flex: none; }
.fm-toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #cfd6e6; transition: .2s; }
.fm-toggle input:checked + span { background: var(--good); }
.fm-toggle input:checked + span::after { transform: translateX(20px); background: #fff; }
.fm-toggle input:focus-visible + span { outline: 2px solid var(--diamond); outline-offset: 2px; }
.fm-toggle i { font-style: normal; font-size: 13px; }
.fm-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.fm-filter input { flex: 1 1 220px; width: auto; }
.fm-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-reg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.fm-card { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 8px; background: rgb(var(--glass-rgb) / .55); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.fm-card:hover { transform: translateY(-2px); border-color: rgba(95,224,230,.4); }
.fm-card.mine { border-color: var(--torch); box-shadow: 0 0 0 1px var(--torch) inset; }
.fm-card.red { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.fm-card-h b { font-size: 17px; }
.fm-card.red .fm-card-h b { color: var(--bad); }
.fm-mic { font-size: 42px; text-align: center; }
.fm-mbtn { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.fm-modal input.bad { border-color: var(--bad); }
body.fm-busy #view { opacity: .7; pointer-events: none; transition: opacity .2s; }
.fm-form .fm-radio { justify-content: flex-start; }
.fm-form .fm-radio input { width: auto; flex: none; margin: 0; accent-color: var(--torch); }
.balance-hero .big.bad { color: var(--bad); }
.fm-tabs a { display: inline-flex; align-items: center; gap: 8px; }
.fm-tabs a img { width: 30px; height: 30px; margin: -4px 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); transition: transform .2s; }
.fm-tabs a:hover img, .fm-tabs a.on img { transform: scale(1.12) rotate(-4deg); }
.fm-emb { width: 84px; height: 84px; }
.fm-ci { width: 26px; height: 26px; vertical-align: -7px; margin-right: 2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
/* 1.9.5 – obrázky namiesto emoji */
.pcard h3 .gi { width: 1.35em; height: 1.35em; vertical-align: -.32em; margin-right: 3px; }
