


#fpanel.fc-full {
  width: auto; left: 0; right: 0; bottom: 0;
  padding: 0; overflow: hidden;
  font-size: var(--cs-3); line-height: 1.45;
}
body.hud4 #fpanel.fc-full { padding: 0 !important; overflow: hidden; clip-path: none; }
body.hud4 #fpanel.fc-full > .fc-root { max-width: none; margin: 0; }
.fc-root {
  display: grid; height: 100%; min-height: 0;
  grid-template-columns: 176px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top" "nav body" "nav skrot";
}
.fc-root > * { min-width: 0; }
.fc-top {
  grid-area: top; display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  border-bottom: 1px solid var(--cs-line); background: var(--pv-color-rail-tintA045);
}
.fc-title { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.fc-top { min-height: 52px; }
.fc-title h3 { margin: 0; font-size: var(--cs-4); letter-spacing: .08em; text-transform: uppercase; }
.fc-title-i { color: var(--pv-color-signal-accent); font-size: var(--cs-5); }
.fc-top-stats { flex: 0 1 auto; min-width: 0; max-width: 62%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }  
.fc-hchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px; border-radius: 10px; cursor: pointer;
  font: inherit; color: var(--txt); background: var(--pv-color-surface-tintA08); border: 1px solid var(--panel-border); white-space: nowrap;
}
.fc-hchip:hover { border-color: var(--pv-color-signal-accentA50); }
.fc-hchip > i { font-style: normal; color: var(--pv-color-signal-accent); }
.fc-hchip > b { font-size: var(--cs-3); font-variant-numeric: tabular-nums; }
.fc-hchip > span { font-size: var(--cs-1); color: var(--txt-dim); }
.fc-hvet { cursor: default; }
.fc-hvet .fc-bar { width: 48px; }
.fc-halarm {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px; border-radius: 10px; cursor: pointer; font: inherit;
  color: var(--pv-color-signal-warn); background: var(--pv-color-surface-tintA05); border: 1px solid var(--pv-color-signal-warn); white-space: nowrap;
}
.fc-halarm b { color: var(--txt); }
.fc-close {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; border-radius: 10px; cursor: pointer; font: inherit;
  background: transparent; border: 1px solid var(--panel-border); color: var(--txt);
}
.fc-close:hover { border-color: var(--pv-color-signal-danger); color: var(--pv-color-signal-danger); }
.fc-nav {
  grid-area: nav; display: flex; flex-direction: column; gap: 4px; padding: 10px 8px;
  border-right: 1px solid var(--cs-line); overflow-y: auto; min-height: 0;
}
.fc-nav-b {
  text-align: left; min-height: 44px; padding: 8px 12px; border-radius: 9px; cursor: pointer; font: inherit;
  background: transparent; border: 1px solid transparent; color: var(--txt-dim); white-space: nowrap;
}

@media (hover: hover) { .fc-nav-b:hover { color: var(--txt); background: var(--pv-color-surface-tintA08); } }
.fc-nav-b.on { color: var(--txt); background: var(--pv-color-signal-accentA12); border-color: var(--pv-color-signal-accentA35); }
.fc-body { grid-area: body; min-height: 0; overflow: auto; padding: 12px 14px; }
.fc-body-fc_floty, .fc-body-fc_mapa, .fc-body-fc_stocznia { overflow: hidden; }
.fc-skrot { grid-area: skrot; margin: 0; padding: 4px 14px; font-size: var(--cs-1); color: var(--txt-dim); }
.fc-body-stara .fl-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }


.fc-btn {
  min-height: 44px; padding: 6px 14px; border-radius: 9px; cursor: pointer; font: inherit; font-size: var(--cs-2);
  background: var(--pv-color-surface-tintA10); border: 1px solid var(--panel-border); color: var(--txt);
}
.fc-btn:hover { border-color: var(--pv-color-signal-accentA50); }
.fc-btn.glowna { background: var(--pv-color-signal-accentA22); border-color: var(--pv-color-signal-accentA50); color: var(--pv-color-text-bright); }
.fc-btn.wide { width: 100%; margin-top: 8px; }
.fc-btn.off, .fc-akcja.off { opacity: .42; cursor: not-allowed; }
.fc-btn.zle { border-color: var(--pv-color-signal-danger); color: var(--pv-color-signal-danger); }
.fc-ikon-btn {
  min-width: 44px; min-height: 44px; border-radius: 9px; cursor: pointer; font: inherit;
  background: transparent; border: 1px solid var(--panel-border); color: var(--txt-dim);
}
.fc-ikon-btn:hover, .fc-ikon-btn.on { color: var(--txt); border-color: var(--pv-color-signal-accentA50); }
.fc-in, .fc-sel {
  min-height: 40px; padding: 6px 10px; border-radius: 8px; font: inherit; font-size: var(--cs-2);
  background: var(--pv-color-overlay-blackA300); border: 1px solid var(--panel-border); color: var(--txt);
}
.fc-lab { display: inline-flex; align-items: center; gap: 8px; color: var(--txt-dim); font-size: var(--cs-2); }
.fc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fc-toolbar-r { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fc-chip {
  min-height: 36px; padding: 4px 11px; border-radius: 999px; cursor: pointer; font: inherit; font-size: var(--cs-2);
  background: transparent; border: 1px solid var(--panel-border); color: var(--txt-dim);
}
.fc-chip b { color: var(--txt); margin-left: 3px; }
.fc-chip.on { background: var(--pv-color-signal-accentA17); border-color: var(--pv-color-signal-accentA50); color: var(--txt); }
.fc-grupa { margin: 10px 2px 2px; font-size: var(--cs-1); letter-spacing: .1em; text-transform: uppercase; color: var(--txt-dim); }
.fc-pusto { padding: 14px; border: 1px dashed var(--panel-border); border-radius: 10px; color: var(--txt-dim); text-align: center; }
.fc-hint { margin: 6px 0; font-size: var(--cs-2); color: var(--txt-dim); }
.fc-h { margin: 16px 0 6px; font-size: var(--cs-1); letter-spacing: .12em; text-transform: uppercase; color: var(--txt-dim); font-weight: 600; }
.fc-h small { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.fc-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: var(--cs-1);
  border: 1px solid var(--panel-border); color: var(--txt-dim); white-space: nowrap; max-width: 100%;
}
.fc-tag-nota { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.fc-tag-zawin { white-space: normal; }   
.fc-tagi { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.fc-dobrze { color: var(--pv-color-signal-ok); font-style: normal; }
.fc-zle { color: var(--pv-color-signal-danger); font-style: normal; }
.fc-uwaga { color: var(--pv-color-signal-warn); font-style: normal; }
.fc-ostrz { margin: 4px 0; padding: 6px 10px; border-radius: 8px; font-size: var(--cs-2);
  color: var(--pv-color-signal-warn); border: 1px solid var(--pv-color-signal-warn); background: var(--pv-color-surface-tintA05); }
.fc-bar { display: block; height: 6px; border-radius: 4px; overflow: hidden; background: var(--pv-color-surface-tintA15); }
.fc-bar i { display: block; height: 100%; background: var(--pv-color-signal-accent); }
.fc-prog { display: block; height: 4px; border-radius: 3px; overflow: hidden; background: var(--pv-color-surface-tintA12); }
.fc-prog i { display: block; height: 100%; background: var(--pv-color-signal-info); transition: width .9s linear; }
.fc-prog-duzy { height: 6px; margin: 6px 0 2px; }


.fc-pill { font-style: normal; font-size: var(--cs-1); padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.fc-pill-port { color: var(--pv-color-signal-ok); }
.fc-pill-lot { color: var(--pv-color-signal-info); }
.fc-pill-powrot { color: var(--pv-color-signal-world); }
.fc-pill-stacja { color: var(--pv-color-signal-violet); }
.fc-pill-bitwa { color: var(--pv-color-signal-danger); }
.fc-pill-refit, .fc-pill-oczekuje { color: var(--pv-color-signal-warn); }
.fc-pill-rozbita { color: var(--pv-color-signal-bad); }


.fc-root .fl-glyph {
  background: radial-gradient(circle at 50% 45%, var(--pv-color-overlay-whiteA350), var(--pv-color-overlay-whiteA080) 70%);
}
.fc-strip-i .fl-glyph { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px; }
.fc-klasa-ico .fl-glyph, .fc-qico .fl-glyph { width: 36px; height: 36px; flex: 0 0 36px; }
.fc-ship-img .fl-glyph { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; }


.fc-emb { flex: 0 0 auto; display: grid; place-items: center; }
.fc-emb-svg { display: block; filter: drop-shadow(0 1px 2px var(--pv-color-overlay-blackA500)); }
.fc-emb-rez { width: 44px; height: 44px; border-radius: 10px; border: 1px dashed var(--panel-border); color: var(--txt-dim); font-size: var(--cs-5); display: grid; place-items: center; }


.fc-floty { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 14px; height: 100%; min-height: 0; }
.fc-kol-lista { display: flex; flex-direction: column; min-height: 0; }
.fc-lista { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 12px 0; }
.fc-lista > * { flex-shrink: 0; }
.fc-kol-szcz { min-height: 0; overflow: auto; padding-right: 4px; }
.fc-szukaj { width: 150px; }
.fc-wstecz { display: none; }
.fc-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; min-height: 64px; padding: 8px 10px 10px; border-radius: 12px; cursor: pointer; font: inherit; text-align: left;
  color: var(--txt); background: linear-gradient(135deg, var(--pv-color-surface-tintA10), var(--pv-color-surface-tintA05));
  border: 1px solid var(--panel-border); border-left: 4px solid var(--fc-kol, var(--panel-border));
}
.fc-card:hover { border-color: var(--pv-color-signal-accentA35); border-left-color: var(--fc-kol, var(--pv-color-signal-accent)); }
.fc-card.on { background: var(--pv-color-signal-accentA12); border-color: var(--pv-color-signal-accentA50); border-left-color: var(--fc-kol, var(--pv-color-signal-accent)); }
.fc-card.fc-rez { border-style: dashed; border-left-style: dashed; }
.fc-card.mini { min-height: 48px; padding: 6px 8px; }
.fc-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-card-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-card-sub { font-size: var(--cs-2); color: var(--txt-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.fc-card-side b { font-size: var(--cs-4); font-variant-numeric: tabular-nums; }
.fc-card-side i { font-style: normal; font-size: var(--cs-1); color: var(--txt-dim); }
.fc-card .fc-prog { position: absolute; left: 10px; right: 10px; bottom: 4px; }
.fc-gen-mini, .fc-prof-mini { font-size: var(--cs-1); color: var(--pv-color-signal-accent); }
.fc-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.fc-strip-i { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 1px; border-radius: 7px; background: var(--pv-color-surface-tintA08); font-size: var(--cs-1); }
.fc-strip-more { font-size: var(--cs-1); color: var(--txt-dim); align-self: center; }
.fc-wiecej { width: 100%; margin-top: 4px; }


.fc-det { display: flex; flex-direction: column; }
.fc-det-head { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(120deg, var(--pv-color-surface-tintA12), transparent 70%); border: 1px solid var(--panel-border); border-left: 5px solid var(--fc-kol, var(--panel-border)); }
.fc-emb-big { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; }
.fc-emb-big:hover .fc-emb-svg { filter: drop-shadow(0 0 6px var(--pv-color-signal-accentA50)); }
.fc-det-tyt { flex: 1; min-width: 0; }
.fc-det-tyt h2 { margin: 0 0 4px; font-size: var(--cs-5); display: flex; align-items: center; gap: 6px; }
.fc-det-sub { color: var(--txt-dim); font-size: var(--cs-2); }
.fc-det-tagi { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fc-akcje { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 10px 0 2px; }
.fc-akcja {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 7px 10px; border-radius: 10px;
  cursor: pointer; font: inherit; text-align: left; color: var(--txt); background: var(--pv-color-surface-tintA08); border: 1px solid var(--panel-border);
}
.fc-akcja:hover { border-color: var(--pv-color-signal-accentA50); }
.fc-akcja.glowna { background: var(--pv-color-signal-accentA17); border-color: var(--pv-color-signal-accentA50); }
.fc-akcja-i { font-size: var(--cs-4); line-height: 1; }
.fc-akcja small { font-size: var(--cs-1); color: var(--txt-dim); line-height: 1.3; }
.fc-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.fc-stat { padding: 7px 10px; border-radius: 10px; background: var(--pv-color-rail-tintA045); border: 1px solid var(--panel-border); }
.fc-stat span { display: block; font-size: var(--cs-1); color: var(--txt-dim); text-transform: uppercase; letter-spacing: .06em; }
.fc-stat b { font-size: var(--cs-4); font-variant-numeric: tabular-nums; }
.fc-stat b i { font-size: var(--cs-1); }
.fc-sklad { display: flex; flex-direction: column; gap: 5px; }
.fc-klasa, .fc-zlec {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px;
  border-radius: 10px; background: var(--pv-color-surface-tintA05); border: 1px solid var(--panel-border); border-left: 3px solid var(--panel-border);
}
.fc-klasa-main { display: flex; flex-direction: column; min-width: 0; }
.fc-klasa-main small { color: var(--txt-dim); font-size: var(--cs-1); }
.fc-mody { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.fc-mody i { font-style: normal; display: inline-flex; align-items: center; gap: 1px; padding: 1px 5px; border-radius: 6px; font-size: var(--cs-1);
  background: var(--pv-color-surface-tintA10); color: var(--txt); }
.fc-mody sub { font-size: var(--cs-1); color: var(--txt-dim); }
.fc-klasa-n { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.fc-klasa-n b { font-size: var(--cs-4); }
.fc-klasa-n i, .fc-klasa-n small { font-style: normal; font-size: var(--cs-1); color: var(--txt-dim); }
.fc-klasa-n em { font-style: normal; }
.fc-role-swarm { border-left-color: var(--pv-color-signal-info); }
.fc-role-line { border-left-color: var(--pv-color-signal-world); }
.fc-role-heavy { border-left-color: var(--pv-color-signal-danger); }
.fc-role-logi { border-left-color: var(--pv-color-signal-ok); }
.fc-role-desant { border-left-color: var(--pv-color-signal-accent); }
.fc-role-inz { border-left-color: var(--pv-color-signal-violet); }


.fc-gen-karta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: var(--pv-color-surface-tintA05); border: 1px solid var(--panel-border); }
.fc-gen-brak { grid-template-columns: minmax(0, 1fr) auto auto; }
.fc-gen-brak p { margin: 0; color: var(--txt-dim); font-size: var(--cs-2); }
.fc-gen-rang { display: flex; flex-direction: column; align-items: center; font-size: var(--cs-5); color: var(--pv-color-signal-accent); }
.fc-gen-rang small { font-size: var(--cs-1); color: var(--txt-dim); }
.fc-gen-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: var(--cs-2); }
.fc-gen-btn { display: flex; flex-direction: column; gap: 4px; }
.fc-cechy { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--txt-dim); }
.fc-cecha { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--pv-color-surface-tintA12); color: var(--txt); }
.fc-gen-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-top: 6px; }
.fc-gen-opt { display: flex; flex-direction: column; align-items: flex-start; min-height: 48px; padding: 6px 10px; border-radius: 10px; cursor: pointer; font: inherit; text-align: left;
  color: var(--txt); background: var(--pv-color-surface-tintA05); border: 1px solid var(--panel-border); }
.fc-gen-opt.on, .fc-gen-opt:hover { border-color: var(--pv-color-signal-accentA50); }
.fc-gen-opt small { color: var(--txt-dim); font-size: var(--cs-1); }


.fc-prof-brak { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--txt-dim); font-size: var(--cs-2); }
.fc-prof-brak p { margin: 0; flex: 1; }
.fc-prof-mini-karta { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--panel-border); background: var(--pv-color-surface-tintA05); }
.fc-prof-mini-karta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.fc-prof-mini-karta small { color: var(--txt-dim); font-size: var(--cs-1); }
.fc-prof-akcje { display: flex; gap: 6px; flex-wrap: wrap; }


.fc-edytor { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; padding: 10px; border-radius: 12px;
  border: 1px solid var(--pv-color-signal-accentA35); background: var(--pv-color-surface-tintA08); }
.fc-edytor label { display: flex; flex-direction: column; gap: 3px; font-size: var(--cs-1); color: var(--txt-dim); }

.fc-edytor-emb { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.fc-emb-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 4px; }
.fc-emb-opt { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 2px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid transparent; }
.fc-emb-opt:hover { border-color: var(--panel-border); }
.fc-emb-opt.on { border-color: var(--pv-color-signal-accent); background: var(--pv-color-signal-accentA12); }
.fc-emb-rzad { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px; align-items: center; }
.fc-emb-rzad > span { font-size: var(--cs-1); color: var(--txt-dim); text-transform: uppercase; letter-spacing: .06em; }
.fc-emb-rzad > div { display: flex; flex-wrap: wrap; gap: 2px; }
.fc-kolor-pr { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--fc-kol); border: 2px solid var(--pv-color-overlay-blackA300); }
.fc-kolory { display: flex; flex-wrap: wrap; gap: 4px; }
.fc-kol { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; cursor: pointer; background: var(--fc-kol); border: 2px solid var(--pv-color-overlay-blackA300); }
.fc-kol.on { outline: 2px solid var(--pv-color-text-bright); outline-offset: 2px; }


.fc-szuflada { margin: 10px 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--pv-color-signal-accentA35);
  background: linear-gradient(180deg, var(--pv-color-signal-accentA08), var(--pv-color-surface-tintA05)); }
.fc-sz-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.fc-sz-stopka { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.fc-sz-podglad { margin-top: 8px; }
.fc-qrow { display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--pv-color-surface-line); }
.fc-qname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fc-qname > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-qname i { font-style: normal; color: var(--txt-dim); font-size: var(--cs-1); }
.fc-qbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; justify-content: flex-end; }
.fc-q {
  min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 8px; cursor: pointer; font: inherit; font-size: var(--cs-1);
  font-variant-numeric: tabular-nums; background: var(--pv-color-surface-tintA08); border: 1px solid var(--panel-border); color: var(--txt);
}
.fc-q:hover { border-color: var(--pv-color-signal-accentA50); }
.fc-q-all { padding: 0 10px; }
.fc-qin { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.fc-porownanie { width: 100%; border-collapse: collapse; font-size: var(--cs-2); font-variant-numeric: tabular-nums; }
.fc-porownanie th, .fc-porownanie td { padding: 4px 8px; text-align: right; border-bottom: 1px solid var(--pv-color-surface-line); }
.fc-porownanie th:first-child { text-align: left; color: var(--txt-dim); font-weight: 400; }
.fc-porownanie thead th { color: var(--txt-dim); font-weight: 600; font-size: var(--cs-1); text-transform: uppercase; }
.fc-porownanie-2 { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--pv-color-surface-tintA08); font-size: var(--cs-2); }
.fc-scal-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-bottom: 6px; }


.fc-mapa { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 14px; height: 100%; min-height: 0; }
.fc-mapa-l { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.fc-mapa-r { min-height: 0; overflow: auto; padding-right: 4px; }
.fc-svg { width: 100%; max-height: 64vh; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--panel-border); background: var(--pv-color-bg-void); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.fc-svg-tlo { fill: var(--pv-color-bg-void); }
.fc-svg text { fill: var(--txt); user-select: none; }
.fc-svg .fc-svg-et { fill: var(--txt-dim); }
.fc-svg-hit { fill: var(--pv-color-surface-tintA05); stroke: var(--pv-color-surface-tintA20); }
.fc-svg-cel { cursor: pointer; }
.fc-svg-cel:hover .fc-svg-hit, .fc-svg-cel.on .fc-svg-hit { fill: var(--pv-color-signal-accentA22); stroke: var(--pv-color-signal-accent); }
.fc-svg-swiat circle { fill: var(--pv-color-signal-world); stroke: var(--pv-color-text-bright); }
.fc-svg-swiat.on circle { fill: var(--pv-color-signal-accent); }
.fc-svg-swiat.cel circle { stroke: var(--pv-color-signal-accent); stroke-width: .6; }
.fc-svg-swiat[data-fc] { cursor: pointer; }
.fc-svg-flota { cursor: grab; touch-action: none; overflow: visible; }
.fc-svg-flota.on { filter: drop-shadow(0 0 2px var(--pv-color-signal-accent)); }
.fc-svg-flota.ruch { cursor: pointer; touch-action: manipulation; }
.fc-svg-misja.inv { stroke: var(--pv-color-signal-danger); }
.fc-svg-misja { stroke: var(--pv-color-signal-info); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .8; }
.fc-svg-stacja-l { stroke: var(--pv-color-signal-violet); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.fc-svg-ruch { fill: var(--pv-color-signal-info); }
.fc-svg-stacja { fill: var(--pv-color-signal-violet); }
.fc-svg-trasa { fill: none; stroke: var(--pv-color-signal-accent); stroke-width: 2.5; stroke-dasharray: 6 4; }
.fc-svg-trasa.zle { stroke: var(--pv-color-signal-danger); }
.fc-svg .fc-svg-paliwo { fill: var(--pv-color-signal-warn); }
.fc-svg .fc-svg-paliwo.off { opacity: .45; }
.fc-svg-drag { stroke: var(--pv-color-signal-accent); stroke-width: 2; stroke-dasharray: 3 3; pointer-events: none; }
.fc-mapa-legenda { font-size: var(--cs-1); }
.fc-cele { display: flex; flex-direction: column; gap: 4px; }
.fc-cel {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 5px 10px;
  border-radius: 10px; cursor: pointer; font: inherit; text-align: left; color: var(--txt);
  background: var(--pv-color-surface-tintA05); border: 1px solid var(--panel-border);
}
.fc-cel:hover { border-color: var(--pv-color-signal-accentA35); }
.fc-cel.on { border-color: var(--pv-color-signal-accent); background: var(--pv-color-signal-accentA12); }
.fc-cel-g { font-size: var(--cs-4); text-align: center; }
.fc-cel-main { display: flex; flex-direction: column; min-width: 0; }
.fc-cel-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-cel-main small { color: var(--txt-dim); font-size: var(--cs-1); }
.fc-cel-r { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--cs-2); font-variant-numeric: tabular-nums; }
.fc-cel-r i { font-style: normal; font-size: var(--cs-1); }
.fc-trasa { margin-bottom: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--pv-color-signal-accentA50);
  background: linear-gradient(160deg, var(--pv-color-signal-accentA12), var(--pv-color-surface-tintA05) 60%); }
.fc-trasa-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-bottom: 8px; }
.fc-trasa-head div { display: flex; flex-direction: column; }
.fc-trasa-head small { color: var(--txt-dim); font-size: var(--cs-1); }
.fc-odw { margin-top: 6px; }
.fc-odw input { flex: 1; }


.fc-stocznia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); gap: 14px; height: 100%; min-height: 0; }
.fc-st-l { min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 6px 24px 0; overscroll-behavior: contain; }
.fc-st-r { min-height: 0; overflow: auto; align-self: start; max-height: 100%; }
.fc-dok { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--txt-dim); font-size: var(--cs-2); }
.fc-kolejka { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.fc-zlec.stoi { border-left-color: var(--pv-color-signal-warn); }
.fc-zlec .fc-prog { margin-top: 4px; }
.fc-zlec i { font-style: normal; color: var(--txt-dim); font-size: var(--cs-2); }
.fc-katalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; align-items: start; padding-bottom: 24px; }
.fc-ship {
  display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px;
  background: linear-gradient(160deg, var(--pv-color-surface-tintA10), var(--pv-color-surface-tintA05) 60%);
  border: 1px solid var(--panel-border); border-top: 3px solid var(--panel-border);
}
.fc-ship.fc-role-swarm { border-top-color: var(--pv-color-signal-info); }
.fc-ship.fc-role-line { border-top-color: var(--pv-color-signal-world); }
.fc-ship.fc-role-heavy { border-top-color: var(--pv-color-signal-danger); }
.fc-ship.fc-role-logi { border-top-color: var(--pv-color-signal-ok); }
.fc-ship.fc-role-desant { border-top-color: var(--pv-color-signal-accent); }
.fc-ship.fc-role-inz { border-top-color: var(--pv-color-signal-violet); }
.fc-ship.off { opacity: .55; }
.fc-ship.ref { outline: 2px solid var(--pv-color-signal-accentA50); }
.fc-ship-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fc-ship-tyt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.fc-ship-tyt b { font-size: var(--cs-4); }
.fc-ship-tyt small { color: var(--txt-dim); font-size: var(--cs-1); }
.fc-bars { display: flex; flex-direction: column; gap: 3px; }
.fc-bar-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 56px 46px; align-items: center; gap: 6px; font-size: var(--cs-1); }
.fc-bar-row > span:first-child { color: var(--txt-dim); }
.fc-bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.fc-bar-row em { font-style: normal; text-align: right; }
.fc-ship-koszt { font-size: var(--cs-2); color: var(--txt-dim); }
.fc-ship-q { display: flex; flex-direction: column; gap: 6px; }
.fc-ship-q .fc-qbtns { justify-content: flex-start; flex-wrap: nowrap; }
.fc-ship-q .fc-q { min-width: 40px; padding: 0 4px; }
.fc-ship-q .fc-qin { width: 64px; flex: 0 0 auto; }
.fc-ship-q .fc-btn { width: 100%; }
.fc-ocena summary { cursor: pointer; font-size: var(--cs-1); color: var(--txt-dim); min-height: 32px; display: flex; align-items: center; }
.fc-koszyk { position: sticky; top: 0; padding: 12px; border-radius: 14px; border: 1px solid var(--panel-border); background: var(--pv-color-rail-tintA045); }
.fc-kosz-poz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--pv-color-surface-line); }
.fc-kosz-suma { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: var(--cs-2); }
.fc-kosz-suma b { font-size: var(--cs-4); }


.fc-pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.fc-migracja { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.fc-pf { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, var(--pv-color-surface-tintA10), var(--pv-color-surface-tintA05) 60%); }
.fc-pf-head { display: flex; align-items: center; gap: 12px; }
.fc-pf-head > div { display: flex; flex-direction: column; min-width: 0; }
.fc-pf-head b { font-size: var(--cs-4); }
.fc-pf-head small { color: var(--txt-dim); font-size: var(--cs-1); }
.fc-pf-floty { display: flex; flex-direction: column; gap: 4px; }
.fc-pf-flota { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px auto repeat(4, auto); align-items: center; gap: 6px; font-size: var(--cs-2); }
.fc-pf-flota b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-pf-pct { display: flex; align-items: center; gap: 4px; font-size: var(--cs-1); }
.fc-pf-pct .fc-bar { flex: 1; }
.fc-1klik { min-width: 40px; min-height: 40px; }
.fc-pf-akcje { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-pf-ed-grid { display: grid; grid-template-columns: auto repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; align-items: end; }
.fc-pf-ed-grid .fc-lab { flex-direction: column; align-items: stretch; }
.fc-pf-wiersze { max-height: 46vh; overflow: auto; }


@media (max-width: 900px) {
  .fc-mapa, .fc-stocznia { grid-template-columns: minmax(0, 1fr); height: auto; }
  .fc-body-fc_mapa, .fc-body-fc_stocznia { overflow: auto; }
  .fc-mapa-l, .fc-mapa-r, .fc-st-l, .fc-st-r { overflow: visible; }
  .fc-koszyk { position: sticky; bottom: 0; top: auto; }
}
@media (max-width: 760px) {
  
  .fc-root { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "top" "nav" "body"; }
  .fc-top, .fc-nav, .fc-body { min-width: 0; }
  .fc-skrot { display: none; }
  .fc-top { flex-wrap: nowrap; gap: 6px; padding: 4px 6px; }
  .fc-title h3 { display: none; }
  .fc-top-stats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fc-hchip > span { display: none; }
  .fc-hchip, .fc-halarm { min-height: 44px; padding: 2px 8px; }
  .fc-close { margin-left: auto; }
  .fc-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--cs-line); padding: 6px; }
  .fc-nav-b { flex: 0 0 auto; padding: 6px 10px; }
  .fc-body { padding: 8px; }
  .fc-body-fc_floty { overflow: auto; }
  .fc-floty { grid-template-columns: minmax(0, 1fr); height: auto; }
  .fc-kol-szcz, .fc-lista { overflow: visible; }
  .fc-floty .fc-kol-szcz { display: none; }
  .fc-floty.fc-pokaz-szczegoly .fc-kol-szcz { display: block; }
  .fc-floty.fc-pokaz-szczegoly .fc-kol-lista { display: none; }
  .fc-wstecz { display: inline-block; margin-bottom: 6px; }
  .fc-szukaj { width: 100%; }
  .fc-toolbar-r { width: 100%; }
  .fc-toolbar-r .fc-sel { flex: 1; }
  .fc-det-head { flex-direction: row; padding: 8px; gap: 10px; }
  .fc-det-head .fc-emb-svg { width: 64px; height: 64px; }
  .fc-akcje { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-qrow { grid-template-columns: minmax(0, 1fr); }
  .fc-qbtns { justify-content: flex-start; }
  .fc-gen-karta, .fc-gen-brak { grid-template-columns: minmax(0, 1fr); }
  .fc-gen-btn { flex-direction: row; flex-wrap: wrap; }
  .fc-pf-grid { grid-template-columns: minmax(0, 1fr); }
  .fc-pf-flota { grid-template-columns: auto minmax(0, 1fr) 64px repeat(4, auto); }
  .fc-pf-flota .fc-pill { display: none; }
  .fc-katalog, .fc-kolejka { grid-template-columns: minmax(0, 1fr); }
  .fc-bar-row { grid-template-columns: 70px minmax(0, 1fr) 50px 40px; }
  .fc-svg { max-height: 52vh; }
  .fc-emb-rzad { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .fc-prog i { transition: none; }
}


.fc-hero { display: flex; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(120deg, var(--pv-color-surface-tintA12), transparent 75%); border: 1px solid var(--panel-border); border-left: 5px solid var(--fc-kol, var(--panel-border)); }
.fc-hero-txt { flex: 1; min-width: 0; }
.fc-hero h2 { margin: 0 0 4px; font-size: var(--cs-6, 1.5rem); display: flex; align-items: center; gap: 6px; }
.fc-fakty { margin: 8px 0 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--txt-dim); font-size: var(--cs-3); }
.fc-fakt b { color: var(--txt); font-size: var(--cs-5); font-variant-numeric: tabular-nums; }
.fc-kr { color: var(--panel-border); }
.fc-sylwety { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 2px 4px; }
.fc-syl { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-width: 0; }
.fc-syl .fl-glyph { grid-row: 1 / 3; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; }
.fc-syl b { font-size: var(--cs-5); line-height: 1; font-variant-numeric: tabular-nums; align-self: end; }
.fc-syl small { color: var(--txt-dim); font-size: var(--cs-1); align-self: start; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-mini { margin: 10px 0 4px; }
.fc-svg.fc-svg-mini { aspect-ratio: 2 / 1; max-height: 42vh; width: 100%; }
.fc-hero { padding: 10px 14px; }
.fc-akcje2 { margin: 8px 0 0; }
.fc-akcje2 { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.fc-cta .fc-akcja { width: 100%; flex-direction: row; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-size: var(--cs-4); font-weight: 600;
  background: var(--pv-color-signal-accentA22); border-color: var(--pv-color-signal-accent); color: var(--pv-color-text-bright); }
.fc-cta .fc-akcja small { font-weight: 400; }
.fc-sek { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-sek .fc-akcja { flex: 1 1 140px; min-height: 48px; padding: 5px 10px; background: transparent; }
.fc-sek .fc-akcja > span:nth-child(2) { font-size: var(--cs-2); }
.fc-wiecej-menu > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--txt-dim); font-size: var(--cs-2); list-style: none; }
.fc-wiecej-menu > summary::-webkit-details-marker { display: none; }
.fc-wiecej-menu[open] > summary { color: var(--txt); }
.fc-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; padding: 4px 0 6px; }
.fc-menu .fc-akcja { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; background: transparent; }
.fc-statdet { margin-top: 10px; }
.fc-statdet > summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; color: var(--txt-dim); font-size: var(--cs-1); letter-spacing: .12em; text-transform: uppercase; }
.fc-statdet .fc-stat-grid { display: block; columns: 2 220px; column-gap: 24px; }
.fc-statdet .fc-stat { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border: 0; border-bottom: 1px solid var(--pv-color-surface-line); border-radius: 0; background: none; break-inside: avoid; }
.fc-statdet .fc-stat b { font-size: var(--cs-2); }
.fc-statdet .fc-stat span { text-transform: none; letter-spacing: 0; }
@media (max-width: 760px) {
  .fc-hero { gap: 10px; padding: 8px 10px; }
  .fc-hero .fc-emb-svg { width: 72px; height: 72px; }
  .fc-hero h2 { font-size: var(--cs-4); }
  .fc-top-stats { max-width: none; }
  .fc-svg.fc-svg-mini { max-height: 28vh; }
  .fc-statdet .fc-stat-grid { columns: 1; }
  .fc-ship-q .fc-qbtns { flex-wrap: wrap; }
}
.fc-svg-mini .fc-svg-cel .fc-svg-et { display: none; }

body:has(#fpanel.fc-full.open) #toasts { top: auto; bottom: max(calc(52px + env(safe-area-inset-bottom, 0px)), calc(var(--dock-bottom) + 8px)); }   


.fc-sek .fc-akcja { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: 44px; padding: 4px 10px; }
.fc-sek .fc-akcja-i { grid-row: 1 / 3; }
.fc-sek .fc-akcja small { grid-column: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-hero .fc-emb-svg { width: 88px; height: 88px; }
.fc-hero h2 { font-size: var(--cs-5); margin-bottom: 2px; }
.fc-fakty { margin-top: 4px; }
.fc-sylwety { margin: 8px 2px 2px; }
.fc-cta .fc-akcja { min-height: 48px; }
@media (max-width: 760px) { .fc-hero .fc-emb-svg { width: 64px; height: 64px; } }


.fc-zwiad { margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: var(--pv-color-signal-accentA08); border: 1px solid var(--pv-color-signal-accentA35); }
.fc-zwiad.on { background: var(--pv-color-surface-tintA08); border-color: var(--pv-color-signal-ok); }
.fc-zwiad-gl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fc-zwiad-ico { font-size: 28px; line-height: 1; }
.fc-zwiad-txt { flex: 1 1 220px; min-width: 0; }
.fc-zwiad-txt p { margin: 4px 0 0; opacity: .75; font-size: .86em; }
.fc-zwiad .fc-btn { min-height: 44px; }
.fc-zwiad-dz { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--pv-color-surface-line); font-size: .84em; display: grid; gap: 4px; }
.fc-zwiad-dz li { display: flex; gap: 8px; }
.fc-zwiad-dz time { flex: none; opacity: .5; font-variant-numeric: tabular-nums; min-width: 6.5em; }
.fc-zwiad-dz .fc-dz-odkrycie { color: var(--pv-color-signal-ok); }
.fc-zwiad-dz .fc-dz-brakOdczytu, .fc-zwiad-dz .fc-dz-czeka, .fc-zwiad-dz .fc-dz-blad, .fc-zwiad-dz .fc-dz-brakCelu { color: var(--pv-color-signal-warn); }

.fc-eksploruj { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--panel-border); border-radius: 10px; }
.fc-eksploruj p { margin: 0; flex: 1 1 220px; color: var(--txt-dim); }
.fc-eksploruj .fc-btn { min-height: 44px; font-weight: 700; }


.fc-stan { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.fc-stan-s {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px; border-radius: 10px; font: inherit;
  background: var(--pv-color-surface-tintA05); border: 1px solid var(--panel-border); color: var(--txt); text-align: left;
}
.fc-stan-s.zajete { border-left: 3px solid var(--pv-color-signal-info); }
.fc-stan-s.wolne { cursor: pointer; border-style: dashed; color: var(--txt-dim); }
.fc-stan-s.wolne:hover { color: var(--txt); border-color: var(--pv-color-signal-accentA50); }
.fc-stan-s.nast { border-style: dotted; min-height: 48px; color: var(--txt-dim); }
.fc-stan-txt { display: flex; flex-direction: column; min-width: 0; }
.fc-stan-txt small { color: var(--txt-dim); font-size: var(--cs-1); overflow-wrap: anywhere; }
.fc-stan-plus { font-size: var(--cs-4); line-height: 1; flex: 0 0 auto; }
.fc-stan-ico { flex: 0 0 auto; display: inline-flex; }
.fc-stan-ico .fl-glyph { width: 32px; height: 32px; flex: 0 0 32px; }

.fc-klasa-ico, .fc-ship-img { flex: 0 0 auto; display: inline-flex; overflow: hidden; }
.fc-klasa-ico { width: 36px; height: 36px; }
.fc-ship-img { width: 64px; height: 64px; }
.fc-klasa-main b, .fc-ship-tyt b { overflow-wrap: anywhere; }
.fc-zlec .fc-ikon-btn, .fc-ship-top .fc-ikon-btn { flex: 0 0 auto; }
@media (max-width: 760px) { .fc-stan-s { flex: 1 1 100%; } }
