:root {
    --brand: #18C56E;
    --brand-dark: #0EA75B;
    --bg1: #0D6C60;
    --bg2: #0C3D47;
    --surface: #0F2230;
    --text: #EAF6F3;
    --muted: #a8c3bf;
    --line: #1f3a4d;
    --toast-success: #18C56E;
    --toast-error: #e11d48;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif;
    font-size: 14px;
    background: #071820;
    color: #e6f3f7;
}

.container {
    min-height: 100vh;
    padding-bottom: 72px;
    max-width: 960px;
    margin: 0 auto;
}

.h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 800;
}

.small {
    font-size: 12px;
}

.topbar {
    position: relative;
    top: 0;
    z-index: 30;
    background: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    padding: 0;
}

.banner {
    height: 140px;
    background: center/cover no-repeat;
    border-radius: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.profile {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 10;
    background: rgba(20, 30, 35, .6);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
}

/* Branding organizacji (logo + nazwa siłowni) */
.orgBrand {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 30, 35, .6);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    max-width: 62vw;
}

.orgBrand img {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    object-fit: cover;
    background: rgba(0, 0, 0, .25);
}

.orgBrand .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 900;
    letter-spacing: .2px;
}

.profBadge {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
}

.profName {
    white-space: nowrap;
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    opacity: .95;
}

.card {
    background: #0b2230;
    border: 1px solid #103345;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}

/* -----------------------------
   Accordion cards (Settings + Admin sections)
   Usage: <details class="card accordion"> ...
-------------------------------- */
details.accordion.card{
    padding: 0;
    overflow: hidden;
}

details.accordion.card > summary{
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}

details.accordion.card > summary::-webkit-details-marker{
    display: none;
}

.accTitle{ font-size: 16px; font-weight: 900; }
.accSub{ font-size: 12px; opacity: .8; margin-top: 2px; }

.accChevron{
    user-select: none;
    opacity: .8;
    line-height: 1;
    margin-top: 2px;
    transition: transform .18s ease;
}

details.accordion.card[open] > summary .accChevron{
    transform: rotate(180deg);
}

details.accordion.card .accBody{
    padding: 0 12px 12px;
}

.sep{
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 12px 0;
}

/* two buttons 50/50 */
.btnSplit{
    display:flex;
    gap: 10px;
    align-items:center;
    flex-wrap: nowrap;
}
.btnSplit .btn{
    flex: 1 1 0;
    white-space: nowrap;
}

.input,
select {
    width: 100%;
    background: #122b35;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
}

.input:focus,
select:focus {
    border: 1px solid var(--brand);
    background: #163845;
    outline: none;
}

/* Improve readability of <select> placeholder/first row and options in dark UI */
select option {
    background: #122b35;
    color: #eaf6fb;
}

select option:disabled {
    color: #9ab8c6;
}

select optgroup {
    background: #0b2230;
    color: #cfe7f0;
    font-weight: 800;
}

.input.lg {
    padding: 12px;
    font-size: 16px;
}

button {
    border: none;
    border-radius: 10px;
    padding: 0px 0px;
    font-weight: 800;
    cursor: pointer;
}

.btn {
    background: #113649;
    color: #e6f3f7;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid #1b4457;
    padding: 6px 12px;
    cursor: pointer;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn.secondary {
    background: #123f28;
    color: #18C56E;
    border: 1px solid #18C56E;
    border-color: #1f6f45;
}

.btn.gray {
    background: #0e2430;
    color: #cbd5e1;
    border: 2px solid #184150;
    border-color: #315669;
}
.btn.danger{
    background: rgba(225,29,72,.12);
    color: #fecdd3;
    border: 1px solid rgba(225,29,72,.55);
}
.btn.danger:hover{
    background: #e11d48;
    color: #fff;
}

.btn.ghost {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #184150;
}

.btn.chip {
    padding: 6px 10px;
    border-radius: 999px;
}

.btn.chip.active {
    background: var(--brand);
    color: #06331f;
}

.btn.sm {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 32px;
}

.btn.xs {
    padding: 4px 8px;
    font-size: 12px;
    min-height: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.rowInputs {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}

.seg {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.seg+.gap {
    margin-top: 10px;
}

.gap {
    display: grid;
    gap: 8px;
}

.btnRow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btnRow.tight {
    gap: 6px;
    margin: auto;
}

.setList {
    margin: 8px 0 10px;
}

.setRowCompact {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.setRowCompact .input {
    text-align: center;
}

.pushTop {
    margin-top: 8px;
}

.timerRowOne {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 10px;
    align-items: center;
}

.secOnly {
    max-width: 90px;
    text-align: center;
}

.timerTiny {
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    font-weight: 800;
    justify-self: end;
    padding: 6px 8px;
    border-radius: 8px;
    background: #0e3440;
    border: 2px solid #18c56e;
    color: #18c56e;
}

.filterRow {
    display: flex;
    gap: 8px;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

#journalDate {
    grid-column: 1/-1;
}

.journalEntry {
    background: #102a35;
    border: 1px solid #103345;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 6px 0;
}

.jeHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.jeRight {
    display: flex;
    align-items: center;
    gap: 10px;
}


.jeLeft{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    flex:1;
}

.jeTitle{
    cursor:pointer;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.jeToggle{
    width:26px;
    height:26px;
    border-radius:9px;
    border:1px solid #164455;
    background:#0b2530;
    color:#d7f6ff;
    cursor:pointer;
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}

.jeBody[hidden]{ display:none !important; }
.journalEntry.open .jeToggle{ background:#0f3442; }

.jeBody {
    margin-top: 4px;
    line-height: 1.35;
}

/* Historia: kompaktowe podsumowanie dnia (zajmuje mniej miejsca) */
.daySummary {
    margin: 8px 0 6px;
    padding: 8px 44px 8px 10px; /* zostaw miejsce na strzałkę po prawej */
    background: #0f2e39;
    border: 1.5px solid #18C56E;
    border-left-width: 3px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.daySummary > div {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #0b2530;
    border: 1px solid #103345;
    border-radius: 999px;
    line-height: 1.2;
}

.daySummary b {
    color: #cfe9e5;
}

.journalDay{ margin-bottom: 12px; }

/* Dla historii: domyślnie pokazuj tylko podsumowanie dnia, a listę ćwiczeń rozwijaj przyciskiem */
.dayEntries{ margin-top: 8px; }

.daySummaryActions{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Strzałka do rozwijania dnia (zamiast "Rozwiń") */
.dayToggleAll{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-size: 18px;
  background: #0b2530;
  border: 1px solid #103345;
}
.dayToggleAll:active{ transform: translateY(1px); }

@media (max-width: 520px){
  .daySummaryActions{ right: 8px; }
  .daySummary > div{ font-size: 12px; padding: 3px 7px; }
}

.planTable {
    font-size: 13px;
}

.planTable .row {
    display: grid;
    /* Minimal space for ikona wideo + węższa kolumna "S x P", żeby nazwa ćwiczenia miała max miejsca */
    grid-template-columns: 60px auto 18px 62px;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid #103345;
}

.planTable .head {
    font-weight: 600;
    background: #0f2e39;
    border-radius: 8px;
}

.planTable .row:last-child {
    border-bottom: none;
}


.planVidCol{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 18px;
    min-width: 18px;
}

.planVideoIcon{
    appearance:none;
    -webkit-appearance:none;
    border:0;
    background:transparent;
    padding:0;
    margin:0;
    line-height:1;
    font-size:16px;
    cursor:pointer;
    opacity:.95;
}
.planVideoIcon:active{ transform: scale(.95); }

#planEditor .stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#planEditor .row2 {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

#planEditor .row2 .input {
    flex: 1 1 0;
}

#planEditor .listMini .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid #103345;
    border-radius: 8px;
    margin-top: 6px;
    font-size: 13px;
}

#planTr .h2,
#planSupp .h2 {
    font-size: 16px;
}

.suppList .item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #103345;
}

.suppList .item:last-child {
    border-bottom: none;
}

.rightStats {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    white-space: nowrap;
}

.stat .lbl {
    display: block;
    font-size: 11px;
    opacity: .7;
}

.stat .val {
    font-weight: 700;
}

.badgeWarn {
    background: #5b2a00;
    color: #ffd9a6;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
}

.muted {
    opacity: .75;
}

.pb {
    height: 6px;
    background: #0e2a36;
    border-radius: 999px;
    overflow: hidden;
}

.pb_in {
    height: 100%;
}

.pb_in.ok {
    background: #18C56E;
}

.pb_in.mid {
    background: #C93;
}

.pb_in.low {
    background: #d33;
}

.suppCard {
    padding: 12px;
    margin: 8px 0;
}

.suppRow {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.exForm2Row {
    display: grid;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas: "name name name"
        "group step btn";
}

#exname {
    grid-area: name;
}

#exgroup {
    grid-area: group;
}

#exstep {
    grid-area: step;
}

#addEx {
    grid-area: btn;
    justify-self: end;
}

.exListHeader {
    display: grid;
    grid-template-columns: 1fr 120px 120px;
    gap: 6px;
    margin: 6px 0 0;
    color: #cfe9e5;
    font-weight: 900;
    border-bottom: 1px solid #17404e;
    padding-bottom: 6px;
    font-size: 12px;
    opacity: .75;
    padding: 6px 0;
}

.exListHeader.exNarrow {
    grid-template-columns: 1fr 80px 78px;
    font-size: 11.5px;
}

.exItem {
    display: grid;
    grid-template-columns: 1fr 120px 120px;
    gap: 6px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #103345;
}

.exItem.exNarrow {
    grid-template-columns: 1fr 80px 78px;
}

.exName .bp {
    color: #88b7b0;
}

.exProg {
    text-align: center;
    font-weight: 900;
    font-size: 12px;
}

.exActions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.iconBtn {
    background: #0a2430;
    color: #cde8f5;
    border: 1px solid #18495b;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11.5px;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.iconBtn.danger {
    background: #3a0c0c;
    border-color: #5a1a1a;
    color: #ffb4b4;
}

.exItem.edit {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 10px 0;
}

.exEditRow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

#toast-container .toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 88px;
    background: var(--toast-success);
    color: #06331f;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .32);
    z-index: 120;
}

#toast-container .toast.error {
    background: #ef4444;
    color: #fff;
}

.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #081821;
    border-top: 1px solid #103345;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    z-index: 40;
}

.tabbar a {
    color: #cce5eb;
    text-decoration: none;
    border-radius: 12px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-weight: 800;
}

.tabbar a span {
    font-size: 18px;
}

.tabbar a em {
    font-size: 11px;
    font-style: normal;
    opacity: .9;
}

.tabbar a.active {
    background: #0b2230;
}

.input {
    min-height: 36px;
    width: 100%;
    background: #0f2e39;
    border: 1px solid #1b4457;
    border-radius: 10px;
    color: #e6f3f7;
    padding: 8px 10px;
    margin-bottom: 10px;
}

#profile {
    position: absolute;
    right: 8px;
    top: 8px;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.profAvatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #18C56E;
    color: #053;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    letter-spacing: .2px;
    box-shadow: none;
}

.input::placeholder {
    color: #9fb6bf;
}

.btn.primary {
    background: #18C56E;
    border-color: #18C56E;
    color: #053;
}

.gap-6 {
    gap: 6px;
}

#toast-container {
    position: fixed;
    left: 0;
    right: 0;
    top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 60;
}

.toast {
    background: #123f28;
    border: 1px solid #1f6f45;
    color: #cfeedd;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.toast.error {
    background: #2a0d0d;
    border-color: #3a1313;
    color: #ffb4b4;
}

.setList .setRow {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto auto auto;
    gap: 8px;
    margin: 6px 0;
    align-items: center;
}

.filterRow .input.sm {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
}

.sectionHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.exListHeader,
.exItem {
    display: grid;
    grid-template-columns: auto 90px 82px;
    gap: 8px;
    align-items: center;
}

.exItem .bp {
    opacity: .6;
    font-size: 12px;
}

.alertBar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 64px;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #5b2a00;
    color: #ffd9a6;
    border: 1px solid #C93;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.alertBar.show {
    display: flex;
}

.alertBar .msg {
    font-size: 13px;
}

.alertBar .close {
    background: transparent;
    border: 0;
    color: #ffd9a6;
    font-weight: 700;
    cursor: pointer;
}

.setMark {
    font-weight: 700;
    margin-left: 6px;
}

.ok {
    color: #18C56E;
}

.bad {
    color: #ff8a8a;
}

.neu {
    color: #a7c0c7;
}

.statsGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.statBox {
    background: #0f2e39;
    border: 1px solid #103345;
    border-radius: 10px;
    padding: 10px;
}

.statBox .lbl {
    font-size: 12px;
    opacity: .8;
}

.statBox .val {
    font-weight: 700;
    font-size: 16px;
    margin-top: 4px;
}

.chartBox {
    height: 90px;
    background: #0f2e39;
    border: 1px solid #1b4457;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.chartBox svg {
    width: 100%;
    height: 100%;
}

.measFormGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.galleryList .measCard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid #103345;
    border-radius: 10px;
    margin: 8px 0;
}

.measThumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.measThumbs img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background: #0b2230;
    border: 1px solid #103345;
}

.measMeta {
    font-size: 13px;
}

.measMeta .row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.measMeta b {
    white-space: nowrap;
}

.progSections {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.measList table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.measList th,
.measList td {
    border-bottom: 1px solid #103345;
    padding: 6px 4px;
    text-align: right;
}

.measList th:first-child,
.measList td:first-child {
    text-align: left;
}

.measList tr:last-child td {
    border-bottom: none;
}

.galRow {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-direction: row-reverse;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    flex-wrap: wrap;
}

.galCard {
    position: relative;
    flex: 0 0 auto;
    border: 1px solid #103345;
    border-radius: 10px;
    padding: 10px;
    margin: 8px 0;
    background: #0f2e39;
}

.galCard img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #103345;
    background: #0b2230;
}

.galMeta {
    font-size: 11px;
    opacity: .75;
    margin-top: 4px;
    text-align: center;
}

.galDel {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #2a0d0d;
    border: 1px solid #3a1313;
    color: #ffb4b4;
    border-radius: 8px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
}

.galUploadRow {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}

.collapsible .sectionHeader {
    align-items: center;
}

.collapsible .collBody {
    margin-top: 10px;
}

.galHead {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.galPreview {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 80px;
}

.galPreview img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 8px;
    border: 1px solid #103345;
}

.fileLabel {
    cursor: pointer;
}

.measRow {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.measRow .input {
    max-width: 160px;
}

.measureHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.measureCard {
    background: #0f2e39;
    border: 1px solid #103345;
    border-radius: 10px;
    padding: 10px;
}

.measureInline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.measureInline b {
    font-weight: 700;
}

.galleryGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.galleryRow {
    background: #0f2e39;
    border: 1px solid #103345;
    border-radius: 10px;
    padding: 10px;
}

.galleryRowHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.galleryStrip {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    flex-wrap: wrap;
}

.galleryStrip img {
    height: 120px;
    border-radius: 8px;
    border: 1px solid #103345;
}

.uploadArea {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.previewThumb {
    height: 60px;
    border-radius: 8px;
    border: 1px solid #103345;
}

.btn.inline {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
}

#stRange {
    margin-bottom: 10px;
}

.galRow .selInfo {
    font-size: 12px;
    color: #666;
}

.galPreviewList {
    display: grid;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.thumb {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #0f2a33;
}

.thumb img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    cursor: zoom-in;
    object-fit: cover;
}

.thumbMeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
}

.thumbMeta .small {
    color: #666;
}

.pendingPreview {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pendingPreview img {
    width: 96px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.pendingPreview .small {
    color: #666;
}

#lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .8);
    z-index: 9999;
}

#lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
    border-radius: 10px;
}

#lightbox .close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #fff;
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 20px;
    line-height: 36px;
    color: #000;
}

#gptfit-tutorial .tutCard {
    width: min(92vw, 520px);
    background: #0f2a33;
    color: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
}

.tooltip {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tooltip .tip-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #18c56e;
    color: #0a1920;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip .tip-bubble {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f2a33;
    color: #e7f6ff;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    transition: .15s;
}

.tooltip .tip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0f2a33;
}

.tooltip.show .tip-bubble,
.tooltip:hover .tip-bubble {
    opacity: 1;
}

/* Panel navigation (powrót do aplikacji) */
.panelNav{
  margin: 10px 10px 0;
  display:flex;
  align-items:center;
  gap:8px;
}

/* Org admin – branding layout helpers */
.brandingGrid{ display:grid; grid-template-columns: 1fr 280px; gap:12px; align-items:start; }
.brandingRow{ display:flex; gap:8px; align-items:center; flex-wrap:nowrap; }
.brandingRow .input{
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
  margin-bottom: 0;
}
.brandingRow .btn{ white-space: nowrap; }

/* Settings – Add exercise row */
.exForm2Row{ display:grid; grid-template-columns: 1fr 1fr 180px auto; gap:8px; }
.exStepWrap{ display:flex; flex-direction:column; gap:6px; }
.exStepLbl{ display:flex; align-items:center; gap:8px; }

@media (max-width: 520px){
  .brandingGrid{ grid-template-columns: 1fr; }
  .exForm2Row{ grid-template-columns: 1fr; }
  .exForm2Row .btn{ width:100%; }
}

.tipday-card.card p {
    margin: 4px 0 0;
    color: #cfefff;
}

#consentsPanel label,
#consentsPanel .consent-item,
#consentsPanel .item,
.settings-consents label,
.settings-consents .consent-item,
.settings-consents .item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 10px 0 !important;
    white-space: normal !important;
}

#consentsPanel input[type="checkbox"],
.settings-consents input[type="checkbox"] {
    margin-top: 3px !important;
    flex: 0 0 auto;
}

#consentsPanel .consent-text,
.settings-consents .consent-text {
    flex: 1 1 auto;
    min-width: 0;
}

#cSave {
    margin-top: 10px;
}

#exerciseTopRow {
    display: flex;
    gap: 12px;
}

#exerciseTopRow .input {
    min-height: 34px;
}

#exerciseTopRow>* {
    flex: 1 1 50%;
}

#exercise {
    margin-top: 10px;
}

#cv3Save {
    margin-top: 10px;
}

#cv3SettingsCard>div {
    display: inline-grid;
}

.galRow>input {
    width: 40% !important;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.listMini {
    display: grid;
    gap: 8px;
}

.listItem {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    background: #0f2e39;
    border: 1px solid #103345;
    border-radius: 10px;
    padding: 10px;
}

.listItem .listTxt {
    min-width: 0;
}

.listItem .listActions {
    display: flex;
    gap: 6px;
}

.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0 8px;
}

.tab {
    background: #0a2430;
    border: 1px solid #18495b;
    color: #e6f3f7;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

.tab.active {
    background: #0f3444;
}

.tableMini {
    display: grid;
    gap: 6px;
}

.tableMini .thead,
.tableMini .tr {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6px;
}

.tableMini .thead {
    font-size: 12px;
    opacity: .8;
}

.tableMini .tr>div,
.tableMini .thead>div {
    background: #0f2e39;
    border: 1px solid #103345;
    border-radius: 8px;
    padding: 8px;
}

.tableMini[data-cols="4"] .tr,
.tableMini[data-cols="4"] .thead {
    grid-template-columns: 1fr 1fr 1fr auto;
}

.tableMini .tr {
    align-items: center;
}

.codearea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    min-height: 220px;
    background: #0b2230;
    border-color: #103345;
    border-radius: 10px;
    white-space: pre;
}

.input.xs {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 13px;
}

.chip {
    background: #0a2430;
    border: 1px solid #18495b;
    border-radius: 10px;
    padding: 3px 8px;
}

#tab-supps .tableMini .thead,
#tab-supps .tableMini .tr,
#tab-exercises .tableMini .thead,
#tab-exercises .tableMini .tr {
    grid-template-columns: 1fr 1fr 1fr auto;
}

#tab-journal .measCard {
    margin-bottom: 8px;
}

body>div.container>div>section:nth-child(1)>div.sectionHeader>button {
    margin-bottom: 10px;
}

body>div.topbar>div.container>div {
    margin-top: 10px;
}

#trainerEmail {
    margin-bottom: 10px;
}

#clientControls>div:nth-child(2) {
    display: grid;
    gap: 0px !important;
}

.ms-card {
    border: 1px solid #103345;
    background: #071f29;
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0;
}

.ms-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ms-row .input {
    width: 100%;
}

.ms-top {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ms-top .left {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ms-top select,
.ms-top input {
    height: 36px;
}

.ms-last {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.ms-last .kv {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 12px;
    align-items: center;
}

.ms-last .kv .lbl {
    opacity: .8;
}

.ms-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ms-btn {
    border: 0;
    background: #0a2733;
    color: #cfe;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.ms-btn.primary {
    background: #1a7f4b;
}

.ms-btn.link {
    background: transparent;
    padding: 0;
    text-decoration: underline;
}

.ms-muted {
    opacity: .8;
    font-size: 12px;
}

.ms-list .item {
    border-top: 1px solid #103345;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ms-list .item:first-child {
    border-top: 0;
}

.ms-svg {
    width: 100%;
    height: 160px;
    display: block;
}

.ms-legend {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ms-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #18C56E;
    display: inline-block;
}

.ms-svg .ms-val {
    font-size: 11px;
    fill: #bfe;
    paint-order: stroke;
    stroke: #061b24;
    stroke-width: 3px;
}

.setList .setRow .input.sm {
    max-width: 100%;
    height: 36px;
    padding: 6px 10px;
    border-radius: 10px;
    line-height: 1.2;
}

.setList .badge {
    font-size: 12px;
    opacity: .8;
}

.iconBtn.xs {
    padding: 4px 8px;
    font-size: 12px;
}

.iconBtn.warn {
    border-color: #9a5e00;
}

.iconBtn.active {
    outline: 2px solid #18c56e;
}

.preNoteFlag {
    font-size: 12px;
    opacity: .85;
}

.set-status {
    font-weight: 800;
    opacity: 1;
    min-width: 86px;
    text-align: right;
}

.set-status.ok {
    color: #18C56E;
}

.set-status.bad {
    color: #ff6b6b;
}

.set-status.heavy {
    color: #ffb020;
}

.set-status.ok,
.set-status.bad,
.set-status.heavy {
    -webkit-text-stroke: .5px rgba(0, 0, 0, .25);
    text-shadow: 0 0 1px rgba(0, 0, 0, .15);
}

.ex-status {
    font-weight: 800;
    opacity: 1;
}

.ex-status.ok {
    color: #18C56E;
}

.ex-status.bad {
    color: #ff6b6b;
}

.ex-status.heavy {
    color: #ffb020;
}

.ex-status.ok,
.ex-status.bad,
.ex-status.heavy {
    -webkit-text-stroke: .5px rgba(0, 0, 0, .25);
    text-shadow: 0 0 1px rgba(0, 0, 0, .15);
}

.timer-finished {
    color: #18c56e;
    font-weight: 600;
    letter-spacing: 1px;
    border: 0;
    background: none;
    font-size: 16px;
}

.setList .setRow .iconBtn {
    height: 36px;
}

#journal .iconBtn.active {
    outline: none;
}

.ex-status.ok,
.ex-status.bad,
.ex-status.heavy {
    -webkit-text-stroke: .5px rgba(0, 0, 0, .25);
    text-shadow: 0 0 1px rgba(0, 0, 0, .15);
}

.tutCard[data-autoplace="center"] {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: min(560px, 94vw);
    z-index: 10010;
}

.noteBadge {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    background: #0a2430;
    border: 1px solid #18495b;
    padding: 2px 6px;
    border-radius: 8px;
}

.set-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin: 4px 0;
}

/* Historia: ciaśniejsze wiersze serii */
#journal .set-row{ margin: 2px 0; }
#journal .set-row span{ font-size: 12.5px; }

#onboardingBanner {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: var(--onb-bottom, 72px) !important;
    z-index: 2147483000 !important;
    background: var(--surface-2, #0f172a);
    border: 1px solid var(--brand, #18c56e) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .03);
    color: #e7f6ff;
    display: none width:80%;
    max-width: 1400px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    width: 80% !important;
    right: auto !important;
    top: auto !important;
}

#onboardingBanner .row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

#onboardingBanner .step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface, #0b1220) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    padding: 10px 12px !important;
    flex: 1 1 260px;
    min-width: 240px;
    position: relative;
    color: var(--muted-100, #e2e8f0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

#onboardingBanner .step .dot {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px;
    background: rgba(255, 255, 255, .03);
    color: var(--muted-100, #e2e8f0);
    border: 2px solid #64748b;
    font-weight: 700;
    margin-right: 8px;
    border-color: rgba(255, 255, 255, .22) !important;
    min-width: 24px !important;
    min-height: 24px !important;
    aspect-ratio: 1/1 !important;
    padding: 0 !important;
    line-height: 24px !important;
    flex: 0 0 24px !important;
}

#onboardingBanner .step.done .dot {
    background: #18c56e;
    color: #0a1920;
}

#onboardingBanner .step .lbl {
    font-weight: 700;
}

#onboardingBanner .actions {
    margin-top: 8px;
    display: flex;
    gap: 8px !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
}

#onboardingBanner .btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 14px;
    color: #cfefff;
    cursor: pointer;
}

#onboardingBanner .btn.primary {
    background: #18c56e;
    color: #0a1920;
    border: none;
    font-weight: 800;
}

.gptfit-tour-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: saturate(120%) blur(1px);
    z-index: 10030;
    display: none;
}

.gptfit-tour-tip {
    position: absolute;
    z-index: 10040;
    background: #0b1f28;
    border: 1px solid #18495b;
    border-radius: 16px;
    max-width: min(420px, 92vw);
    padding: 12px;
    color: #e7f6ff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
    display: none;
}

.gptfit-tour-tip .t-head {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 800;
    margin-bottom: 6px;
}

.gptfit-tour-tip .t-body {
    font-size: 14px;
    line-height: 1.35;
}

.gptfit-tour-tip .t-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.gptfit-tour-tip .btn {
    background: #0a2430;
    border: 1px solid #18495b;
    border-radius: 12px;
    padding: 8px 12px;
    color: #cfefff;
    cursor: pointer;
}

.gptfit-tour-tip .btn.primary {
    background: #18c56e;
    color: #0a1920;
    border: none;
    font-weight: 800;
}

.gptfit-tour-tip .btn.muted {
    opacity: .8;
}

.gptfit-tour-target {
    position: relative;
    outline: 3px solid #18c56e;
    border-radius: 12px;
    outline-offset: 2px;
    transition: outline .2s;
}

.tour-video {
    width: 268px;
    max-width: 88vw;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
    display: block;
    margin: 8px auto 0;
}

.tour-caption {
    opacity: .85;
    margin-top: 6px;
    text-align: center;
}

.tour-fallback {
    display: none;
    margin-top: 8px;
}

.tour-phone {
    width: 268px;
    max-width: 88vw;
    aspect-ratio: 9/19;
    border-radius: 26px;
    background: linear-gradient(180deg, #0e1f28, #0a1720);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.tour-phone:before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    border: 2px solid rgba(255, 255, 255, .06);
    pointer-events: none;
}

.tour-ui {
    position: absolute;
    inset: 12px;
    background: rgba(255, 255, 255, .04);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.tour-row {
    height: 26px;
    margin: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.tour-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    height: 34px;
    padding: 0 14px;
    background: #18c56e;
    color: #0a1720;
    border-radius: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-pulse {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffb020;
    left: calc(50% - 8px);
    bottom: 54px;
    animation: tpulse 1.2s infinite;
}

0% {
    transform: scale(.9);
    opacity: .8;
    box-shadow: 0 0 0 0 rgba(24, 197, 110, .45);
}

50% {
    transform: scale(1.25);
    opacity: 1;
}

100% {
    transform: scale(.9);
    opacity: .8;
    box-shadow: 0 0 0 0 rgba(24, 197, 110, 0);
}

#onboardingBanner .step .small {
    display: block;
    color: var(--muted-400, #91a3b0);
    margin-top: 4px;
    font-size: 12px;
}

#onboardingBanner .step.done {
    border-color: #18c56e !important;
    background: var(--surface, #0b1220) !important;
}

#onboardingBanner .step.done::after {
    content: none !important;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #063e2b;
    background: rgba(24, 197, 110, .2);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #10b981;
    border-color: var(--brand, #18c56e);
    display: none !important;
}

#onboardingBanner .btn:hover {
    filter: brightness(.98);
}

.onb-highlight {
    animation: onbPulse 1.3s ease-in-out 0s 3;
    outline: 2px solid var(--brand, #18c56e) !important;
    outline-offset: 4px;
    border-radius: 12px !important;
    box-shadow: 0 0 0 0 rgba(24, 197, 110, .45);
}

70% {
    box-shadow: 0 0 0 14px rgba(24, 197, 110, 0);
}

.onb-tip {
    position: fixed;
    z-index: 9999;
    background: #0b1020;
    color: #e5f5ed;
    padding: 10px 12px;
    font-size: 12px;
    max-width: 320px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.onb-tip::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #111827;
    left: 16px;
    bottom: -6px;
    border-top-color: #0b1020;
}

#onboardingBanner .actions .btn {
    background: var(--surface, #0b1220) !important;
    color: var(--muted-100, #e2e8f0);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

#onboardingBanner .actions .btn:hover {
    filter: none;
    background: var(--surface-2, #0f172a) !important;
}

#onboardingBanner .actions .btn#onb-go-train {
    box-shadow: none !important;
}

#onboardingBanner .onb-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#onboardingBanner .onb-hdr strong {
    color: #e2f7ed;
    font-weight: 700;
}

#onboardingBanner .onb-toggle {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 8px;
    background: var(--surface, #0b1220);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, .08);
    cursor: pointer;
}

#onboardingBanner.collapsed {
    padding: 8px 12px !important;
}

#onboardingBanner.collapsed .row,
#onboardingBanner.collapsed .actions {
    display: none !important;
}

#onboardingBanner.collapsed .onb-hdr {
    margin-bottom: 0 !important;
}

.gptfit-tour,
.gptfit-tour-mask,
.gptfit-tour-tip {
    display: none !important;
    visibility: hidden !important;
}

#onboardingBanner-placeholder {
    display: none;
}

.onb-inline-help {
    display: inline-block;
    margin-left: 8px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.35;
    color: #e6fff3;
    background: #0b1422;
    border: 1px solid rgba(24, 197, 110, .5);
    border-radius: 10px;
    vertical-align: middle;
    max-width: 260px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: none;
    z-index: 60;
    width: max-content;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.onb-inline-help b {
    color: #9ae6b4;
}

.onb-help-wrap {
    position: relative !important;
}

.onb-inline-help.below {
    top: calc(100% + 8px);
    left: 0;
    transform: none;
}

.onb-inline-help::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid rgba(24, 197, 110, .5);
}

.onb-inline-help::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #0b1422;
}

.onb-inline-help.below::before,
.onb-inline-help.below::after {
    top: -6px;
    left: 14px;
    transform: none;
    border-right: none;
}

.onb-inline-help.below::before {
    border-left: 6px solid transparent;
    border-top: 6px solid rgba(24, 197, 110, .5);
}

.onb-inline-help.below::after {
    border-left: 5px solid transparent;
    border-top: 5px solid #0b1422;
}

.onb-inline-help::before,
.onb-inline-help::after {
    display: none;
}

.onb-section-help {
    margin-top: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #e6fff3;
    background: #0b1422;
    border: 1px solid rgba(24, 197, 110, .5);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.onb-section-help b {
    color: #9ae6b4;
}

.gptfit-prog-box {
    margin-top: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #e6fff3;
    background: #0b1422;
    border: 1px solid rgba(24, 197, 110, .5);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.gptfit-prog-box b {
    color: #9ae6b4;
}

#measPreview {
    margin-top: 8px;
}

#measPreview.collapsed .measCard {
    display: none;
}

#measPreview.collapsed .measCard:nth-last-child(-n+3) {
    display: block;
}
.timer-finished {
            color: #18c56e;
            font-weight: 600;
            letter-spacing: 1px;
            border: 0;
            background: none;
            font-size: 16px;
        }

        .setList .setRow .iconBtn {
            height: 36px
        }

        #journal .iconBtn.active {
            outline: none
        }

        /* exercise-level status colors (mobile-safe) */
        .ex-status {
            font-weight: 800;
            opacity: 1
        }

        .ex-status.ok {
            color: #18C56E
        }

        .ex-status.bad {
            color: #ff6b6b
        }

        .ex-status.heavy {
            color: #ffb020
        }

        .ex-status.ok,
        .ex-status.bad,
        .ex-status.heavy {
            -webkit-text-stroke: .5px rgba(0, 0, 0, .25);
            text-shadow: 0 0 1px rgba(0, 0, 0, .15)
        }
        .tutCard[data-autoplace="center"] {
            position: fixed !important;
            left: 50% !important;
            right: auto !important;
            transform: translateX(-50%) !important;
            max-width: min(560px, 94vw);
            z-index: 10010;
        }

        .setList .setRow .iconBtn {
            height: 36px
        }

        #journal .iconBtn.active {
            outline: none
        }

        /* exercise-level status colors (mobile-safe) */
        .ex-status {
            font-weight: 800;
            opacity: 1
        }

        .ex-status.ok {
            color: #18C56E
        }

        .ex-status.bad {
            color: #ff6b6b
        }

        .ex-status.heavy {
            color: #ffb020
        }

        .ex-status.ok,
        .ex-status.bad,
        .ex-status.heavy {
            -webkit-text-stroke: .5px rgba(0, 0, 0, .25);
            text-shadow: 0 0 1px rgba(0, 0, 0, .15)
        }
        .setList .setRow {
            display: grid;
            grid-template-columns: 1fr 1fr auto auto auto auto;
            /* 2 inputs + 4 buttons (⚠️, 📝, 🗑 ; zapas) */
            align-items: center;
            gap: 8px;
            margin: 6px 0;
        }

        .setList .setRow .input.sm {
            height: 36px;
            padding: 6px 10px;
            border-radius: 10px;
            line-height: 1.2
        }

        .iconBtn {
            background: #0a2430;
            border: 1px solid #18495b;
            border-radius: 10px;
            padding: 6px 10px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px
        }

        .iconBtn.xs {
            padding: 4px 8px;
            font-size: 12px
        }

        .iconBtn.warn {
            border-color: #9a5e00
        }

        .iconBtn.active {
            outline: 2px solid #18c56e
        }

        .noteBadge {
            display: inline-block;
            margin-left: 6px;
            font-size: 12px;
            background: #0a2430;
            border: 1px solid #18495b;
            padding: 2px 6px;
            border-radius: 8px
        }

        .set-row {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px;
            align-items: center;
            margin: 4px 0
        }

        .set-status {
            min-width: 86px;
            text-align: right
        }

        .setList .setRow .iconBtn {
            height: 36px
        }

        #journal .iconBtn.active {
            outline: none
        }

        /* exercise-level status colors (mobile-safe) */
        .ex-status {
            font-weight: 800;
            opacity: 1
        }

        .ex-status.ok {
            color: #18C56E
        }

        .ex-status.bad {
            color: #ff6b6b
        }

        .ex-status.heavy {
            color: #ffb020
        }

        .ex-status.ok,
        .ex-status.bad,
        .ex-status.heavy {
            -webkit-text-stroke: .5px rgba(0, 0, 0, .25);
            text-shadow: 0 0 1px rgba(0, 0, 0, .15)
        }
        #onboardingBanner {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            bottom: 64px;
            z-index: 10020;
            background: #0b1f28;
            border: 1px solid #18495b;
            border-radius: 14px;
            box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
            color: #e7f6ff;
            display: none width:80%;
            max-width: 1400px;
            margin: 24px auto;
            padding: 16px 20px;
        }

        #onboardingBanner .row {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap
        }

        #onboardingBanner .step {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #09202a;
            border: 1px solid #164252;
            border-radius: 10px;
            padding: 8px 10px
        }

        #onboardingBanner .step .dot {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            background: #223a45;
            color: #cde8f5
        }

        #onboardingBanner .step.done .dot {
            background: #18c56e;
            color: #0a1920
        }

        #onboardingBanner .step .lbl {
            font-weight: 700
        }

        #onboardingBanner .actions {
            margin-top: 8px;
            display: flex;
            gap: 8px;
            justify-content: flex-end
        }

        #onboardingBanner .btn {
            background: #0a2430;
            border: 1px solid #18495b;
            border-radius: 10px;
            padding: 8px 12px;
            color: #cfefff;
            cursor: pointer
        }

        #onboardingBanner .btn.primary {
            background: #18c56e;
            color: #0a1920;
            border: none;
            font-weight: 800
        }

        @media (max-width:640px) {
            #onboardingBanner {
                bottom: 76px;
                padding: 10px 12px
            }
        }
        .gptfit-tour-mask {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .45);
            backdrop-filter: saturate(120%) blur(1px);
            z-index: 10030;
            display: none
        }

        .gptfit-tour-tip {
            position: absolute;
            z-index: 10040;
            background: #0b1f28;
            border: 1px solid #18495b;
            border-radius: 16px;
            max-width: min(420px, 92vw);
            padding: 12px;
            color: #e7f6ff;
            box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
            display: none
        }

        .gptfit-tour-tip .t-head {
            display: flex;
            gap: 8px;
            align-items: center;
            font-weight: 800;
            margin-bottom: 6px
        }

        .gptfit-tour-tip .t-body {
            font-size: 14px;
            line-height: 1.35
        }

        .gptfit-tour-tip .t-actions {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            margin-top: 10px
        }

        .gptfit-tour-tip .btn {
            background: #0a2430;
            border: 1px solid #18495b;
            border-radius: 12px;
            padding: 8px 12px;
            color: #cfefff;
            cursor: pointer
        }

        .gptfit-tour-tip .btn.primary {
            background: #18c56e;
            color: #0a1920;
            border: none;
            font-weight: 800
        }

        .gptfit-tour-tip .btn.muted {
            opacity: .8
        }

        .gptfit-tour-target {
            position: relative;
            outline: 3px solid #18c56e;
            border-radius: 12px;
            outline-offset: 2px;
            transition: outline .2s
        }

        .tour-video {
            width: 268px;
            max-width: 88vw;
            border-radius: 22px;
            box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
            display: block;
            margin: 8px auto 0
        }

        .tour-caption {
            opacity: .85;
            margin-top: 6px;
            text-align: center
        }

        /* Fallback mini-demos (no video files needed) */
        .tour-fallback {
            display: none;
            margin-top: 8px
        }

        .tour-phone {
            width: 268px;
            max-width: 88vw;
            aspect-ratio: 9/19;
            border-radius: 26px;
            background: linear-gradient(180deg, #0e1f28, #0a1720);
            box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
            position: relative;
            overflow: hidden;
            margin: 0 auto
        }

        .tour-phone:before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 26px;
            border: 2px solid rgba(255, 255, 255, .06);
            pointer-events: none
        }

        .tour-ui {
            position: absolute;
            inset: 12px;
            background: rgba(255, 255, 255, .04);
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, .06);
        }

        .tour-row {
            height: 26px;
            margin: 8px;
            border-radius: 8px;
            background: rgba(255, 255, 255, .06)
        }

        .tour-btn {
            position: absolute;
            right: 18px;
            bottom: 18px;
            height: 34px;
            padding: 0 14px;
            background: #18c56e;
            color: #0a1720;
            border-radius: 10px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center
        }

        .tour-pulse {
            position: absolute;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #ffb020;
            left: calc(50% - 8px);
            bottom: 54px;
            animation: tpulse 1.2s infinite
        }

        @keyframes tpulse {
            0% {
                transform: scale(.9);
                opacity: .8
            }

            50% {
                transform: scale(1.25);
                opacity: 1
            }

            100% {
                transform: scale(.9);
                opacity: .8
            }
        }
        #onboardingBanner .row {
            display: flex;
            gap: 12px;
            justify-content: center;
            align-items: stretch;
            flex-wrap: wrap;
            margin-bottom: 12px
        }

        #onboardingBanner .step {
            flex: 1 1 260px;
            min-width: 240px;
            border: 2px dashed var(--muted-600, #cbd5e1);
            border-radius: 14px;
            padding: 12px 14px;
            position: relative;
            background: #fff
        }

        #onboardingBanner .step .dot {
            display: inline-flex;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid #64748b;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 12px;
            margin-right: 8px
        }

        #onboardingBanner .step .lbl {
            font-weight: 700
        }

        #onboardingBanner .step .small {
            display: block;
            color: #64748b;
            margin-top: 4px;
            font-size: 12px
        }

        #onboardingBanner .step.done {
            border-color: #10b981;
            background: #ecfdf5
        }

        #onboardingBanner .step.done::after {
            content: "✔ Wykonano";
            position: absolute;
            top: 8px;
            right: 10px;
            font-size: 12px;
            font-weight: 700;
            color: #065f46;
            background: #d1fae5;
            padding: 3px 8px;
            border-radius: 999px;
            border: 1px solid #10b981
        }

        #onboardingBanner .actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap
        }

        #onboardingBanner .btn {
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid #cbd5e1;
            cursor: pointer;
            background: #f8fafc
        }

        #onboardingBanner .btn:hover {
            filter: brightness(.98)
        }

        .onb-highlight {
            animation: onbPulse 1.3s ease-in-out 0s 3;
            outline: 3px solid #22c55e !important;
            outline-offset: 4px;
            border-radius: 12px !important
        }

        @keyframes onbPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(34, 197, 94, .55)
            }

            70% {
                box-shadow: 0 0 0 12px rgba(34, 197, 94, 0)
            }

            100% {
                box-shadow: 0 0 0 0 rgba(34, 197, 94, 0)
            }
        }

        .onb-tip {
            position: fixed;
            z-index: 9999;
            background: #111827;
            color: #fff;
            padding: 10px 12px;
            font-size: 12px;
            max-width: 320px;
            border-radius: 10px;
            border: 1px solid #374151;
            box-shadow: 0 10px 30px rgba(0, 0, 0, .25)
        }

        .onb-tip::after {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid #111827;
            left: 16px;
            bottom: -6px
        }
        #onboardingBanner {
            width: 80% !important;
            max-width: 1400px;
            margin: 20px auto !important;
            padding: 16px 18px !important;
            background: var(--surface-2, #0f172a);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .03);
        }

        #onboardingBanner .row {
            gap: 12px;
        }

        #onboardingBanner .step {
            background: var(--surface, #0b1220) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 14px;
            padding: 12px 14px;
            color: var(--muted-100, #e2e8f0);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
        }

        #onboardingBanner .step .dot {
            border-color: rgba(255, 255, 255, .22) !important;
            color: var(--muted-100, #e2e8f0);
            background: rgba(255, 255, 255, .03);
        }

        #onboardingBanner .step .small {
            color: var(--muted-400, #91a3b0);
        }

        #onboardingBanner .step.done {
            background: linear-gradient(180deg, rgba(24, 197, 110, 0.08), rgba(24, 197, 110, 0.04)) !important;
            border-color: var(--brand, #18c56e) !important;
        }

        #onboardingBanner .step.done::after {
            content: "✔ Wykonano";
            color: #063e2b;
            background: rgba(24, 197, 110, .2);
            border-color: var(--brand, #18c56e);
        }

        #onboardingBanner .actions .btn {
            background: var(--surface, #0b1220) !important;
            color: var(--muted-100, #e2e8f0);
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 12px;
            padding: 9px 14px;
        }

        #onboardingBanner .actions .btn:hover {
            filter: none;
            background: var(--surface-2, #0f172a) !important;
        }

        /* neutralize 'Trening' highlight when logged in (safety) */
        #onboardingBanner .actions .btn#onb-go-train {
            box-shadow: none !important;
        }

        /* highlight pulse ring */
        .onb-highlight {
            outline: 2px solid var(--brand, #18c56e) !important;
            outline-offset: 4px;
            border-radius: 12px !important;
            box-shadow: 0 0 0 0 rgba(24, 197, 110, .45);
            animation: onbPulse 1.3s ease-in-out 0s 3;
        }

        @keyframes onbPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(24, 197, 110, .45);
            }

            70% {
                box-shadow: 0 0 0 14px rgba(24, 197, 110, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(24, 197, 110, 0);
            }
        }

        /* tooltip */
        .onb-tip {
            background: #0b1020;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #e5f5ed;
        }

        .onb-tip::after {
            border-top-color: #0b1020;
        }
        #onboardingBanner {
            width: 80% !important;
            margin: 16px auto !important;
            padding: 12px 14px !important;
        }

        #onboardingBanner .actions {
            gap: 8px !important;
            justify-content: center !important;
            flex-wrap: nowrap !important;
        }

        #onboardingBanner .actions .btn {
            padding: 6px 10px !important;
            font-size: 13px !important;
            border-radius: 10px !important;
            white-space: nowrap !important;
        }

        #onboardingBanner .step {
            padding: 10px 12px !important;
        }

        #onboardingBanner .step.done {
            background: var(--surface, #0b1220) !important;
            /* no fill, only border */
            border-color: #18c56e !important;
        }

        #onboardingBanner .step.done::after {
            content: none !important;
            display: none !important;
        }
        #onboardingBanner {
            border: 1px solid var(--brand, #18c56e) !important;
            border-radius: 14px !important;
            position: relative;
        }

        #onboardingBanner .onb-hdr {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        #onboardingBanner .onb-hdr strong {
            color: #e2f7ed;
            font-weight: 700;
        }

        #onboardingBanner .onb-toggle {
            padding: 4px 8px;
            font-size: 12px;
            border-radius: 8px;
            background: var(--surface, #0b1220);
            color: #e2e8f0;
            border: 1px solid rgba(255, 255, 255, .08);
            cursor: pointer;
        }

        #onboardingBanner.collapsed {
            padding: 8px 12px !important;
        }

        #onboardingBanner.collapsed .row,
        #onboardingBanner.collapsed .actions {
            display: none !important;
        }

        #onboardingBanner.collapsed .onb-hdr {
            margin-bottom: 0 !important;
        }
        #onboardingBanner {
            position: static !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            top: auto !important;
            transform: none !important;
        }
        .gptfit-tour,
        .gptfit-tour-mask,
        .gptfit-tour-tip {
            display: none !important;
            visibility: hidden !important;
        }
        #onboardingBanner {
            position: fixed !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            bottom: var(--onb-bottom, 72px) !important;
            /* nav height + gap */
            z-index: 2147483000 !important;
            width: 80% !important;
            max-width: 1400px !important;
            margin: 0 !important;
        }

        /* ensure it doesn't push layout since it's fixed */
        #onboardingBanner-placeholder {
            display: none;
        }
        #onboardingBanner .step .dot {
            width: 24px !important;
            height: 24px !important;
            min-width: 24px !important;
            min-height: 24px !important;
            aspect-ratio: 1/1 !important;
            padding: 0 !important;
            line-height: 24px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 50% !important;
            flex: 0 0 24px !important;
        }

        .onb-inline-help {
            display: inline-block;
            margin-left: 8px;
            padding: 6px 8px;
            font-size: 12px;
            line-height: 1.3;
            color: var(--muted-100, #e2e8f0);
            background: var(--surface-2, #0f172a);
            border: 1px solid rgba(255, 255, 255, .08);
            border-radius: 8px;
            vertical-align: middle;
            max-width: 320px;
        }

        .onb-inline-help b {
            color: #9ae6b4;
        }
        .onb-help-wrap {
            position: relative !important;
        }

        .onb-inline-help {
            position: absolute;
            top: 50%;
            left: calc(100% + 8px);
            transform: translateY(-50%);
            z-index: 50;
            max-width: 280px;
            width: max-content;
            white-space: normal;
        }

        .onb-inline-help.below {
            top: calc(100% + 6px);
            left: 0;
            transform: none;
        }

        @media (max-width: 520px) {
            .onb-inline-help {
                top: calc(100% + 6px);
                left: 0;
                transform: none;
            }
        }
        .onb-help-wrap {
            position: relative !important;
        }

        .onb-inline-help {
            position: absolute;
            top: 50%;
            left: calc(100% + 10px);
            transform: translateY(-50%);
            z-index: 60;
            max-width: 260px;
            width: max-content;
            padding: 10px 12px;
            font-size: 12px;
            line-height: 1.35;
            color: #e6fff3;
            background: #0b1422;
            border: 1px solid rgba(24, 197, 110, .5);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
        }

        .onb-inline-help::before {
            content: '';
            position: absolute;
            top: 50%;
            left: -6px;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 6px solid transparent;
            border-bottom: 6px solid transparent;
            border-right: 6px solid rgba(24, 197, 110, .5);
        }

        .onb-inline-help::after {
            content: '';
            position: absolute;
            top: 50%;
            left: -5px;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            border-right: 5px solid #0b1422;
        }

        .onb-inline-help.below {
            top: calc(100% + 8px);
            left: 0;
            transform: none;
        }

        .onb-inline-help.below::before,
        .onb-inline-help.below::after {
            top: -6px;
            left: 14px;
            transform: none;
            border-right: none;
        }

        .onb-inline-help.below::before {
            border-left: 6px solid transparent;
            border-top: 6px solid rgba(24, 197, 110, .5);
        }

        .onb-inline-help.below::after {
            border-left: 5px solid transparent;
            border-top: 5px solid #0b1422;
        }

        @media (max-width: 520px) {
            .onb-inline-help {
                top: calc(100% + 8px);
                left: 0;
                transform: none;
            }

            .onb-inline-help::before,
            .onb-inline-help::after {
                display: none;
            }
        }
        .onb-section-help {
            margin-top: 10px;
            padding: 12px 14px;
            font-size: 13px;
            line-height: 1.45;
            color: #e6fff3;
            background: #0b1422;
            border: 1px solid rgba(24, 197, 110, .5);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
        }

        .onb-section-help b {
            color: #9ae6b4;
        }
        .gptfit-prog-box {
            margin-top: 10px;
            padding: 12px 14px;
            font-size: 13px;
            line-height: 1.45;
            color: #e6fff3;
            background: #0b1422;
            border: 1px solid rgba(24, 197, 110, .5);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
        }

        .gptfit-prog-box b {
            color: #9ae6b4;
/* GPTFit: ikona filmu instruktażowego przy ćwiczeniu */
.vidIcon{cursor:pointer; user-select:none; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; font-size:18px; margin-left:8px; opacity:1; border-radius:10px; background:#0a2430; border:1px solid #2b7a94; box-shadow:0 2px 10px rgba(0,0,0,.18);}
.vidIcon:hover{transform:translateY(-1px); background:#0d2d3b;}
.vidPill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:6px 6px;
    margin-left:8px;
    border-radius:10px;
    border:0;
    background: transparent;
    color: var(--brand);
    font-weight:900;
    font-size:13px;
    letter-spacing:.6px;
    line-height:1;
    cursor:pointer;
    user-select:none;
    box-shadow:none;
    text-transform:uppercase;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
    appearance:none;
}
.vidPill:hover{
    opacity:.95;
    transform: translateY(-1px);
}
.vidPill:active{ transform: translateY(0); }

.vidLinkPlain:hover{ opacity:.95; transform: translateY(-1px); }
.vidLinkPlain:active{ transform: translateY(0); }
.vidLinkPlain .vidCam{font-size:16px; line-height:1;}
.vidLinkPlain .vidTxt{font-size:13px; line-height:1; font-weight:900;}

.vidPill .vidCam{font-size:16px; line-height:1;}
.vidPill .vidTxt{font-size:13px; line-height:1; font-weight:900;}

.exVideoEdit{margin-top:10px; padding:10px 12px; border-radius:12px; background:#0b2230; border:1px solid #1b4457;}
.vidYes{color: var(--brand);}
.vidNo{color: #cbd5e1;}
.exVideoBtns .btn{min-height:30px;}


/* === GPTFit: proste komunikaty w formularzach === */
.statusMsg{margin-top:10px; padding:10px 12px; border-radius:12px; font-weight:800; display:block;}
.statusMsg.ok{background:var(--toast-success); color:#06331f;}
.statusMsg.err{background:var(--toast-error); color:#fff;}

/* === GPTFit: "FILM" w planie (bez tła, bez podkreśleń) === */
.vidLinkPlain,
.vidLinkPlain:visited,
.vidLinkPlain:hover,
.vidLinkPlain:active,
.vidLinkPlain:focus{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-left:8px;
    padding:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    text-decoration:none !important;
    color: var(--brand) !important;
    font-weight:900 !important;
    font-size:13px;
    letter-spacing:.6px;
    line-height:1;
    cursor:pointer;
    user-select:none;
    text-transform:uppercase;
    -webkit-appearance:none !important;
    appearance:none !important;
    text-shadow:none !important;
    outline:none !important;
    -webkit-tap-highlight-color: transparent;
}

.vidLinkPlain span{ text-decoration:none !important; }

/* === GPTFit: upload progress (wideo) === */
.uploadStatus{
  margin-top:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  display:none;
}
.uploadStatus.ok{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.10); }
.uploadStatus.err{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); }
.uploadStatus .title{ font-weight:900; letter-spacing:.2px; }
.uploadStatus .sub{ opacity:.85; margin-top:4px; }

.uploadBar{
  margin-top:8px;
  height:8px;
  width:100%;
  background: rgba(255,255,255,.10);
  border-radius:999px;
  overflow:hidden;
}
.uploadBar .fill{
  height:100%;
  width:0%;
  background: var(--brand);
  border-radius:999px;
  transition: width .12s linear;
}

.btn[disabled], .iconBtn[disabled], .circleBtn[disabled]{
  opacity:.55;
  cursor:not-allowed;
}


/* === Panel pages: compact form fields === */
body.panelPage .input,
body.panelPage select,
body.panelPage input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]) {
    padding: 5px 8px;
    font-size: 13px;
    line-height: 18px;
}
body.panelPage textarea.input {
    min-height: 92px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 18px;
}
body.panelPage .brandingRow .input {
    padding: 4px 8px;
}
body.panelPage .accSub{
    display:none !important;
}


/* Inline field help (appears under input) */
.fieldHelp{
  margin-top: 8px;
  padding: 12px 14px;
  width: 100%;
  border: 1px solid rgba(24, 197, 110, .45);
  background: #0b1422;
  border-radius: 12px;
  color: #e6fff3;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.fieldHelp .helpTitle{
  font-weight: 700;
  color: #9ae6b4;
  margin-bottom: 8px;
  letter-spacing: .2px;
}
.fieldHelp ul{
  margin: 0 0 8px 18px;
  padding: 0;
}
.fieldHelp li{
  margin: 4px 0;
}
.fieldHelp b{
  color: #9ae6b4;
}
.fieldHelp .helpExample{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,.12);
  color: #d8fff0;
}


/* QR box (panel org) */
.qrActions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.qrBox{
  margin-top:10px;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.qrBox img{
  border-radius:14px;
  width:180px;
  height:180px;
  max-width:180px;
}
