:root {
    --brand: #d7ff3f;
    --brand-dark: #484c41;
    --bg1: #393c33;
    --bg2: #272923;
    --surface: #1e1f1b;
    --text: #f1f1ef;
    --muted: #b8bab1;
    --line: #33362e;
    --toast-success: #d7ff3f;
    --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: #121311;
    color: #d7ff3f;
}

.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(26,27,23, .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(26,27,23, .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: #1c1d19;
    border: 1px solid #282a24;
    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: #22231e;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
}

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

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

select option:disabled {
    color: #b3b5ab;
}

select optgroup {
    background: #1c1d19;
    color: #d7ff3f;
    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: #2b2d26;
    color: #d7ff3f;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid #363930;
    padding: 6px 12px;
    cursor: pointer;
}

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

.btn.secondary {
    background: #262822;
    color: #d7ff3f;
    border: 1px solid #d7ff3f;
    border-color: #43473c;
}

.btn.gray {
    background: #1d1f1a;
    color: #d8d8d4;
    border: 2px solid #31342c;
    border-color: #484c41;
}
.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: #d8d8d4;
    border: 1px solid #31342c;
}

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

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

.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: #252721;
    border: 2px solid #d7ff3f;
    color: #d7ff3f;
}

.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: #21221d;
    border: 1px solid #282a24;
    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 #33352d;
    background:#1c1d19;
    color:#d7ff3f;
    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:#262822; }

.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: #22241e;
    border: 1.5px solid #d7ff3f;
    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: #1c1d19;
    border: 1px solid #282a24;
    border-radius: 999px;
    line-height: 1.2;
}

.daySummary b {
    color: #dddeda;
}

.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: #1c1d19;
  border: 1px solid #282a24;
}
.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 #282a24;
}

.planTable .head {
    font-weight: 600;
    background: #22241e;
    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 #282a24;
    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 #282a24;
}

.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: #20221d;
    border-radius: 999px;
    overflow: hidden;
}

.pb_in {
    height: 100%;
}

.pb_in.ok {
    background: #d7ff3f;
}

.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: #dddeda;
    font-weight: 900;
    border-bottom: 1px solid #30322b;
    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 #282a24;
}

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

.exName .bp {
    color: #a3a59a;
}

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

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

.iconBtn {
    background: #1b1d19;
    color: #d7ff3f;
    border: 1px solid #363931;
    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: #1b1c18;
    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: #131411;
    border-top: 1px solid #282a24;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    z-index: 40;
}

.tabbar a {
    color: #ddded9;
    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: #1c1d19;
}

.input {
    min-height: 36px;
    width: 100%;
    background: #22241e;
    border: 1px solid #363930;
    border-radius: 10px;
    color: #d7ff3f;
    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: #d7ff3f;
    color: #282a24;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    letter-spacing: .2px;
    box-shadow: none;
}

.input::placeholder {
    color: #b2b4aa;
}

.btn.primary {
    background: #d7ff3f;
    border-color: #d7ff3f;
    color: #282a24;
}

.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: #262822;
    border: 1px solid #43473c;
    color: #d7ff3f;
    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: #d7ff3f;
}

.bad {
    color: #ff8a8a;
}

.neu {
    color: #babbb3;
}

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

.statBox {
    background: #22241e;
    border: 1px solid #282a24;
    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: #22241e;
    border: 1px solid #363930;
    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 #282a24;
    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: #1c1d19;
    border: 1px solid #282a24;
}

.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 #282a24;
    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 #282a24;
    border-radius: 10px;
    padding: 10px;
    margin: 8px 0;
    background: #22241e;
}

.galCard img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #282a24;
    background: #1c1d19;
}

.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 #282a24;
}

.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: #22241e;
    border: 1px solid #282a24;
    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: #22241e;
    border: 1px solid #282a24;
    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 #282a24;
}

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

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

.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: #1f211c;
}

.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: #1f211c;
    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: #d7ff3f;
    color: #141512;
    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: #1f211c;
    color: #d7ff3f;
    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: #1f211c;
}

.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: #d7ff3f;
}

#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: #22241e;
    border: 1px solid #282a24;
    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: #1b1d19;
    border: 1px solid #363931;
    color: #d7ff3f;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

.tab.active {
    background: #272923;
}

.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: #22241e;
    border: 1px solid #282a24;
    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: #1c1d19;
    border-color: #282a24;
    border-radius: 10px;
    white-space: pre;
}

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

.chip {
    background: #1b1d19;
    border: 1px solid #363931;
    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 #282a24;
    background: #171814;
    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: #1d1e1a;
    color: #d7ff3f;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.ms-btn.primary {
    background: #484c41;
}

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

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

.ms-list .item {
    border-top: 1px solid #282a24;
    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: #d7ff3f;
    display: inline-block;
}

.ms-svg .ms-val {
    font-size: 11px;
    fill: #d7ff3f;
    paint-order: stroke;
    stroke: #141512;
    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 #d7ff3f;
}

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

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

.set-status.ok {
    color: #d7ff3f;
}

.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: #d7ff3f;
}

.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: #d7ff3f;
    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: #1b1d19;
    border: 1px solid #363931;
    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, #d7ff3f) !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: #d7ff3f;
    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, #eaeae8);
    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, #eaeae8);
    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: #d7ff3f;
    color: #141512;
}

#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: #fafafa;
    border: 1px solid #d8d8d4;
    border-radius: 10px;
    padding: 8px 14px;
    color: #d7ff3f;
    cursor: pointer;
}

#onboardingBanner .btn.primary {
    background: #d7ff3f;
    color: #141512;
    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: #181916;
    border: 1px solid #363931;
    border-radius: 16px;
    max-width: min(420px, 92vw);
    padding: 12px;
    color: #d7ff3f;
    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: #1b1d19;
    border: 1px solid #363931;
    border-radius: 12px;
    padding: 8px 12px;
    color: #d7ff3f;
    cursor: pointer;
}

.gptfit-tour-tip .btn.primary {
    background: #d7ff3f;
    color: #141512;
    border: none;
    font-weight: 800;
}

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

.gptfit-tour-target {
    position: relative;
    outline: 3px solid #d7ff3f;
    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, #1a1b17, #141512);
    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: #d7ff3f;
    color: #141512;
    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(215,255,63, .45);
}

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

100% {
    transform: scale(.9);
    opacity: .8;
    box-shadow: 0 0 0 0 rgba(215,255,63, 0);
}

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

#onboardingBanner .step.done {
    border-color: #d7ff3f !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: #20221d;
    background: rgba(215,255,63, .2);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #484c41;
    border-color: var(--brand, #d7ff3f);
    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, #d7ff3f) !important;
    outline-offset: 4px;
    border-radius: 12px !important;
    box-shadow: 0 0 0 0 rgba(215,255,63, .45);
}

70% {
    box-shadow: 0 0 0 14px rgba(215,255,63, 0);
}

.onb-tip {
    position: fixed;
    z-index: 9999;
    background: #0b1020;
    color: #eeeeec;
    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, #eaeae8);
    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: #d7ff3f;
    font-weight: 700;
}

#onboardingBanner .onb-toggle {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 8px;
    background: var(--surface, #0b1220);
    color: #eaeae8;
    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: #d7ff3f;
    background: #0b1422;
    border: 1px solid rgba(215,255,63, .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: #d7ff3f;
}

.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(215,255,63, .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(215,255,63, .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: #d7ff3f;
    background: #0b1422;
    border: 1px solid rgba(215,255,63, .5);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

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

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

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

#measPreview {
    margin-top: 8px;
}

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

#measPreview.collapsed .measCard:nth-last-child(-n+3) {
    display: block;
}
.timer-finished {
            color: #d7ff3f;
            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: #d7ff3f
        }

        .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: #d7ff3f
        }

        .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: #1b1d19;
            border: 1px solid #363931;
            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 #d7ff3f
        }

        .noteBadge {
            display: inline-block;
            margin-left: 6px;
            font-size: 12px;
            background: #1b1d19;
            border: 1px solid #363931;
            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: #d7ff3f
        }

        .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: #181916;
            border: 1px solid #363931;
            border-radius: 14px;
            box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
            color: #d7ff3f;
            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: #181916;
            border: 1px solid #31342c;
            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: #31332c;
            color: #d7ff3f
        }

        #onboardingBanner .step.done .dot {
            background: #d7ff3f;
            color: #141512
        }

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

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

        #onboardingBanner .btn {
            background: #1b1d19;
            border: 1px solid #363931;
            border-radius: 10px;
            padding: 8px 12px;
            color: #d7ff3f;
            cursor: pointer
        }

        #onboardingBanner .btn.primary {
            background: #d7ff3f;
            color: #141512;
            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: #181916;
            border: 1px solid #363931;
            border-radius: 16px;
            max-width: min(420px, 92vw);
            padding: 12px;
            color: #d7ff3f;
            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: #1b1d19;
            border: 1px solid #363931;
            border-radius: 12px;
            padding: 8px 12px;
            color: #d7ff3f;
            cursor: pointer
        }

        .gptfit-tour-tip .btn.primary {
            background: #d7ff3f;
            color: #141512;
            border: none;
            font-weight: 800
        }

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

        .gptfit-tour-target {
            position: relative;
            outline: 3px solid #d7ff3f;
            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, #1a1b17, #141512);
            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: #d7ff3f;
            color: #141512;
            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, #d8d8d4);
            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: #484c41;
            background: #d7ff3f
        }

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

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

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

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

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

        @keyframes onbPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(215,255,63, .55)
            }

            70% {
                box-shadow: 0 0 0 12px rgba(215,255,63, 0)
            }

            100% {
                box-shadow: 0 0 0 0 rgba(215,255,63, 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, #eaeae8);
            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, #eaeae8);
            background: rgba(255, 255, 255, .03);
        }

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

        #onboardingBanner .step.done {
            background: linear-gradient(180deg, rgba(215,255,63, 0.08), rgba(215,255,63, 0.04)) !important;
            border-color: var(--brand, #d7ff3f) !important;
        }

        #onboardingBanner .step.done::after {
            content: "✔ Wykonano";
            color: #20221d;
            background: rgba(215,255,63, .2);
            border-color: var(--brand, #d7ff3f);
        }

        #onboardingBanner .actions .btn {
            background: var(--surface, #0b1220) !important;
            color: var(--muted-100, #eaeae8);
            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, #d7ff3f) !important;
            outline-offset: 4px;
            border-radius: 12px !important;
            box-shadow: 0 0 0 0 rgba(215,255,63, .45);
            animation: onbPulse 1.3s ease-in-out 0s 3;
        }

        @keyframes onbPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(215,255,63, .45);
            }

            70% {
                box-shadow: 0 0 0 14px rgba(215,255,63, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(215,255,63, 0);
            }
        }

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

        .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: #d7ff3f !important;
        }

        #onboardingBanner .step.done::after {
            content: none !important;
            display: none !important;
        }
        #onboardingBanner {
            border: 1px solid var(--brand, #d7ff3f) !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: #d7ff3f;
            font-weight: 700;
        }

        #onboardingBanner .onb-toggle {
            padding: 4px 8px;
            font-size: 12px;
            border-radius: 8px;
            background: var(--surface, #0b1220);
            color: #eaeae8;
            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, #eaeae8);
            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: #d7ff3f;
        }
        .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: #d7ff3f;
            background: #0b1422;
            border: 1px solid rgba(215,255,63, .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(215,255,63, .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(215,255,63, .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: #d7ff3f;
            background: #0b1422;
            border: 1px solid rgba(215,255,63, .5);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
        }

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

        .gptfit-prog-box b {
            color: #d7ff3f;
/* GPFit: 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:#1b1d19; border:1px solid #484c41; box-shadow:0 2px 10px rgba(0,0,0,.18);}
.vidIcon:hover{transform:translateY(-1px); background:#22241e;}
.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:#1c1d19; border:1px solid #363930;}
.vidYes{color: var(--brand);}
.vidNo{color: #d8d8d4;}
.exVideoBtns .btn{min-height:30px;}


/* === GPFit: 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:#1b1c18;}
.statusMsg.err{background:var(--toast-error); color:#fff;}

/* === GPFit: "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; }

/* === GPFit: 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(215,255,63,.35); background: rgba(215,255,63,.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(215,255,63, .45);
  background: #0b1422;
  border-radius: 12px;
  color: #d7ff3f;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.fieldHelp .helpTitle{
  font-weight: 700;
  color: #d7ff3f;
  margin-bottom: 8px;
  letter-spacing: .2px;
}
.fieldHelp ul{
  margin: 0 0 8px 18px;
  padding: 0;
}
.fieldHelp li{
  margin: 4px 0;
}
.fieldHelp b{
  color: #d7ff3f;
}
.fieldHelp .helpExample{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,.12);
  color: #d7ff3f;
}


/* 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;
}

/* ===== Plan: zakresy powtórzeń per seria (2026-09) ===== */
.planRangeBase{
    display:grid;
    grid-template-columns:minmax(110px, .42fr) minmax(220px, 1fr);
    gap:8px;
    align-items:center;
}
.repRangePair{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    gap:7px;
    align-items:center;
}
.repRangePair > span{
    opacity:.65;
    font-weight:700;
    text-align:center;
}
.repRangePair.compact .input{ min-width:0; }
.planRangeModeRow{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:7px;
}
.planRangeModeRow .btn.active{
    border-color:#d7ff3f;
    box-shadow:0 0 0 1px rgba(215,255,63,.18) inset;
}
.planPerSetRanges{
    gap:6px;
    margin-top:8px;
    padding:8px;
    border:1px solid #2c2e27;
    border-radius:12px;
    background:rgba(22,23,20,.45);
}
.planSetRangeRow{
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    gap:8px;
    align-items:center;
}
.planSetLabel{
    font-size:12px;
    font-weight:700;
    opacity:.82;
}
.planPrescriptionLine{ line-height:1.35; }
.planTable .row{
    grid-template-columns:60px minmax(0,1fr) 18px minmax(100px,150px);
}
.planTable .planRx{
    white-space:normal;
    line-height:1.25;
    overflow-wrap:anywhere;
}

/* Dziennik treningowy: ostatni wynik + cel z planu w jednym wierszu */
.setList .setRow{
    grid-template-columns:auto minmax(72px,1fr) minmax(72px,1fr) auto auto auto auto;
}
.setNoBadge{
    width:28px;
    height:28px;
    border-radius:9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:800;
    color:#d7ff3f;
    background:#1b1d19;
    border:1px solid #363931;
}
.setTargetBadge{
    min-height:28px;
    padding:5px 8px;
    border-radius:9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:800;
    letter-spacing:.2px;
    white-space:nowrap;
    color:#d7ff3f;
    border:1px solid rgba(215,255,63,.45);
    background:rgba(215,255,63,.08);
}
.setTargetBadge.muted{
    color:#a1a397;
    border-color:#363931;
    background:#1b1d19;
}

@media (max-width: 680px){
    .planRangeBase{ grid-template-columns:1fr; }
    .planRangeModeRow{ align-items:flex-start; flex-direction:column; }
    .planTable .row{ grid-template-columns:52px minmax(0,1fr) 18px minmax(92px,118px); gap:6px; }
    .setList .setRow{
        grid-template-columns:auto minmax(72px,1fr) minmax(72px,1fr) auto auto;
        grid-template-areas:
          "no kg reps note del"
          "target target target heavy heavy";
        gap:6px;
        padding:7px 0;
        border-bottom:1px solid rgba(54,57,49,.45);
    }
    .setList .setRow .setNoBadge{ grid-area:no; }
    .setList .setRow .setWeightInput{ grid-area:kg; }
    .setList .setRow .setRepsInput{ grid-area:reps; }
    .setList .setRow .setTargetBadge{ grid-area:target; justify-self:start; }
    .setList .setRow .setHeavyBtn{ grid-area:heavy; justify-self:end; }
    .setList .setRow .setNoteBtn{ grid-area:note; }
    .setList .setRow .setDeleteBtn{ grid-area:del; }
}
.journalTarget{
    display:inline-block;
    margin-left:5px;
    padding:1px 5px;
    border-radius:6px;
    border:1px solid rgba(215,255,63,.38);
    color:#d7ff3f;
    font-size:10px;
    font-weight:700;
}

/* ===== Mobile UX planu + wskazówki do serii (2026-09-05) ===== */
.planSetRangeRow{
    grid-template-columns:64px minmax(190px,.7fr) minmax(220px,1.3fr);
    gap:8px;
}
.planSetNoteInput{
    min-width:0;
    width:100%;
}
.planRowNote{
    margin-top:3px;
    line-height:1.25;
    opacity:.78;
}
.planMobileList{ display:none; }

/* Serie treningowe: czytelny układ zamiast ściskania 7 kontrolek w jednym rzędzie */
.setList .setRow{
    display:grid;
    grid-template-columns:auto minmax(82px,1fr) minmax(82px,1fr) auto auto auto;
    grid-template-areas:
      "no kg reps target heavy actions"
      "plan plan plan plan plan plan";
    gap:7px;
    align-items:center;
    padding:8px 0;
}
.setList .setRow .setNoBadge{ grid-area:no; }
.setList .setRow .setWeightField{ grid-area:kg; }
.setList .setRow .setRepsField{ grid-area:reps; }
.setList .setRow .setTargetBadge{ grid-area:target; }
.setList .setRow .setHeavyBtn{ grid-area:heavy; }
.setList .setRow .setActionGroup{ grid-area:actions; }
.setField{
    min-width:0;
    display:block;
}
.setField .input{
    min-width:0!important;
    width:100%!important;
}
.setFieldLabel{ display:none; }
.setActionGroup{
    display:flex;
    align-items:center;
    gap:4px;
    justify-content:flex-end;
}
.setActionGroup .iconBtn{ margin:0; }
.setPlanNote{
    grid-area:plan;
    display:flex;
    align-items:flex-start;
    gap:7px;
    min-width:0;
    padding:7px 9px;
    border-radius:9px;
    border:1px solid rgba(215,255,63,.22);
    background:rgba(215,255,63,.055);
    color:#d7ff3f;
    line-height:1.3;
}
.setPlanNote > span{
    flex:0 0 auto;
    margin-top:1px;
    padding:2px 5px;
    border-radius:6px;
    font-size:9px;
    font-weight:900;
    letter-spacing:.4px;
    color:#d7ff3f;
    background:rgba(215,255,63,.12);
}
.setPlanNote > b{
    min-width:0;
    font-size:12px;
    font-weight:650;
    overflow-wrap:anywhere;
}

@media (max-width:680px){
    /* Plan: na telefonie zamiast tabeli używamy kart ćwiczeń. */
    .planDesktopTable{ display:none!important; }
    .planMobileList{
        display:grid;
        gap:7px;
    }
    .planDayCard{
        padding:10px!important;
        margin:7px 0!important;
    }
    .planDayTitle{
        margin-bottom:8px!important;
    }
    .planExerciseMobile{
        padding:10px;
        border:1px solid rgba(54,57,49,.7);
        border-radius:11px;
        background:rgba(23,24,21,.42);
    }
    .planExerciseMobileTop{
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:8px;
    }
    .planExerciseMobileName{
        min-width:0;
        font-size:13px;
        font-weight:800;
        line-height:1.3;
        overflow-wrap:anywhere;
    }
    .planExerciseMobileVideo{
        flex:0 0 auto;
    }
    .planExerciseMobileMeta{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:8px;
        margin-top:5px;
        font-size:11px;
        color:#b1b3a9;
    }
    .planExerciseMobileMeta b{
        color:#d7ff3f;
        font-size:11px;
        text-align:right;
        line-height:1.25;
    }
    .planMobileNotes{
        display:grid;
        gap:4px;
        margin-top:7px;
        padding-top:7px;
        border-top:1px dashed rgba(54,57,49,.7);
    }
    .planMobileNote{
        display:grid;
        grid-template-columns:26px minmax(0,1fr);
        gap:6px;
        font-size:11px;
        line-height:1.3;
        color:#d7ff3f;
    }
    .planMobileNote > span{
        font-weight:900;
        color:#d7ff3f;
    }

    /* Edycja planu: notatka przechodzi pod zakres, bez ściskania pól. */
    .planSetRangeRow{
        grid-template-columns:54px minmax(0,1fr);
        gap:6px 8px;
        padding:7px 0;
        border-bottom:1px solid rgba(54,57,49,.4);
    }
    .planSetRangeRow:last-child{ border-bottom:0; }
    .planSetRangeRow .planSetNoteInput{
        grid-column:2 / -1;
    }

    /* Dodawanie treningu: 3 krótkie wiersze — nagłówek, pola, opcjonalna wskazówka. */
    .setList .setRow{
        grid-template-columns:repeat(4,minmax(0,1fr));
        grid-template-areas:
          "no target heavy actions"
          "kg kg reps reps"
          "plan plan plan plan";
        gap:7px 8px;
        padding:10px 0;
        border-bottom:1px solid rgba(54,57,49,.46);
    }
    .setList .setRow:last-child{ border-bottom:0; }
    .setList .setRow .setNoBadge{ justify-self:start; }
    .setList .setRow .setTargetBadge{
        justify-self:center;
        min-height:27px;
        padding:4px 7px;
        font-size:10px;
    }
    .setList .setRow .setHeavyBtn{
        justify-self:center;
        min-width:0;
        padding:5px 7px;
        font-size:10px;
        white-space:nowrap;
    }
    .setList .setRow .setActionGroup{
        justify-self:end;
    }
    .setActionGroup .iconBtn{
        width:34px;
        min-width:34px;
        height:34px;
        padding:0!important;
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }
    .setFieldLabel{
        display:block;
        margin:0 0 4px 2px;
        font-size:9px;
        line-height:1;
        font-weight:800;
        letter-spacing:.45px;
        text-transform:uppercase;
        color:#484c41;
    }
    .setField .input{
        height:42px;
        font-size:15px;
    }
    .setPlanNote{
        padding:7px 8px;
    }
    .setPlanNote > b{ font-size:11px; }
}

@media (max-width:380px){
    .setList .setRow .setHeavyBtn{
        font-size:0;
        width:34px;
        height:34px;
        padding:0;
    }
    .setList .setRow .setHeavyBtn::after{
        content:'⚠️';
        font-size:15px;
    }
    .setTargetBadge{ font-size:9px!important; }
}

/* ===== Mobile compact sets — bez funkcji „ciężka seria” (2026-09-05) ===== */
.setList .setRow{
  grid-template-columns:auto minmax(90px,1fr) minmax(90px,1fr) auto auto;
  grid-template-areas:
    "no kg reps target actions"
    "plan plan plan plan plan";
}
.setList .setRow .setHeavyBtn{display:none!important}
.setList .setRow .setActionGroup{grid-area:actions}

@media (max-width:680px){
  .setList .setRow{
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:
      "no target actions"
      "kg kg kg"
      "reps reps reps"
      "plan plan plan";
    gap:7px;
    padding:9px 0;
  }
  .setList .setRow .setNoBadge{
    width:34px;
    height:30px;
    border-radius:9px;
    justify-self:start;
    font-size:11px;
  }
  .setList .setRow .setTargetBadge{
    justify-self:start;
    min-height:30px;
    padding:5px 9px;
    font-size:10px;
  }
  .setList .setRow .setActionGroup{
    justify-self:end;
    display:flex;
    gap:5px;
  }
  .setActionGroup .iconBtn{
    width:32px;
    min-width:32px;
    height:32px;
  }
  .setField{
    display:grid;
    grid-template-columns:54px minmax(0,1fr);
    align-items:center;
    gap:8px;
  }
  .setFieldLabel{
    display:block;
    margin:0;
    font-size:10px;
    text-align:right;
    color:#a5a79b;
  }
  .setField .input{
    height:40px;
    font-size:15px;
    padding:7px 10px!important;
  }
  .setPlanNote{
    margin-top:1px;
    padding:7px 8px;
  }
}

/* Nie pokazujemy starego statusu „heavy” także dla historycznych wpisów. */
.ex-status.heavy,.set-status.heavy{display:none!important}

/* Korekta kompaktowego układu: kg i powtórzenia obok siebie. */
@media (max-width:680px){
  .setList .setRow{
    grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;
    grid-template-areas:
      "no target target actions"
      "kg kg reps reps"
      "plan plan plan plan";
    gap:7px 8px;
  }
  .setField{
    display:block;
  }
  .setFieldLabel{
    display:block;
    margin:0 0 4px 2px;
    text-align:left;
  }
  .setField .input{
    width:100%!important;
    min-width:0!important;
  }
}

/* ===== GPFit final mobile layout hotfix 2026-09-05 10:05 ===== */

/* Plan ma jeden widok: tabelę. */
.planMobileList,
.planExerciseMobile {
  display: none !important;
}

@media (max-width: 680px) {
  #planView .planDesktopTable {
    display: block !important;
  }

  #planView .planTable .row {
    grid-template-columns: 52px minmax(0, 1fr) 18px minmax(92px, 118px);
    gap: 6px;
  }

  .setList .setRow {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-areas:
      "no target actions"
      "inputs inputs inputs"
      "plan plan plan" !important;
    gap: 7px 8px !important;
    align-items: center !important;
    padding: 9px 0 !important;
  }

  .setList .setRow .setNoBadge {
    grid-area: no !important;
    justify-self: start;
  }

  .setList .setRow .setTargetBadge {
    grid-area: target !important;
    justify-self: start;
  }

  .setList .setRow .setActionGroup {
    grid-area: actions !important;
    justify-self: end;
  }

  .setList .setRow .setInputsPair {
    grid-area: inputs !important;
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .setList .setRow .setInputsPair .setField {
    grid-area: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .setList .setRow .setInputsPair .setFieldLabel {
    display: block !important;
    margin: 0 0 4px 2px !important;
    text-align: left !important;
    font-size: 10px !important;
  }

  .setList .setRow .setInputsPair .input {
    grid-area: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    box-sizing: border-box !important;
    padding: 7px 10px !important;
    font-size: 15px !important;
  }

  .setList .setRow .setPlanNote {
    grid-area: plan !important;
  }
}

/* Na desktopie oba pola też mają dokładnie tę samą szerokość. */
.setList .setRow .setInputsPair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
}

/* ===== GPFit mobile: pojedynczy wiersz serii + równe pola KG/POWT. 2026-09-05 10:18 ===== */
@media (max-width: 680px) {
  .setList .setRow {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) auto 32px !important;
    grid-template-areas:
      "no inputs target actions"
      "plan plan plan plan" !important;
    column-gap: 6px !important;
    row-gap: 7px !important;
    align-items: end !important;
    padding: 8px 0 !important;
  }

  .setList .setRow .setNoBadge {
    grid-area: no !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 40px !important;
    align-self: end !important;
    justify-self: start !important;
    border-radius: 9px !important;
  }

  .setList .setRow .setInputsPair {
    grid-area: inputs !important;
    grid-column: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: end !important;
  }

  .setList .setRow .setInputsPair .setField {
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
  }

  .setList .setRow .setInputsPair .setFieldLabel {
    display: block !important;
    margin: 0 0 3px 2px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .25px !important;
    text-align: left !important;
    color: #a8a99f !important;
  }

  .setList .setRow .setInputsPair .input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    padding: 7px 8px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
  }

  .setList .setRow .setTargetBadge {
    grid-area: target !important;
    align-self: end !important;
    justify-self: center !important;
    min-width: 54px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .setList .setRow .setActionGroup {
    grid-area: actions !important;
    align-self: end !important;
    justify-self: end !important;
    width: 32px !important;
    min-width: 32px !important;
  }

  .setList .setRow .setActionGroup .iconBtn {
    width: 32px !important;
    min-width: 32px !important;
    height: 40px !important;
    padding: 0 !important;
  }

  .setList .setRow .setPlanNote {
    grid-area: plan !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 380px) {
  .setList .setRow {
    grid-template-columns: 29px minmax(0, 1fr) auto 29px !important;
    column-gap: 5px !important;
  }
  .setList .setRow .setNoBadge,
  .setList .setRow .setActionGroup,
  .setList .setRow .setActionGroup .iconBtn {
    width: 29px !important;
    min-width: 29px !important;
  }
  .setList .setRow .setInputsPair { gap: 5px !important; }
  .setList .setRow .setTargetBadge {
    min-width: 50px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 8.5px !important;
  }
}


/* ===== GPFit FINAL: seria w jednym poziomym wierszu na mobile 2026-09-05 10:34 ===== */
@media (max-width: 680px) {
  .setList .setRow {
    display: grid !important;
    grid-template-columns: 30px minmax(76px, 1fr) minmax(76px, 1fr) minmax(52px, auto) 30px !important;
    grid-template-areas:
      "no kg reps target actions"
      "plan plan plan plan plan" !important;
    column-gap: 5px !important;
    row-gap: 6px !important;
    align-items: end !important;
    padding: 8px 0 !important;
  }

  .setList .setRow .setNoBadge {
    grid-area: no !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 40px !important;
    align-self: end !important;
    justify-self: start !important;
  }

  .setList .setRow .setWeightField {
    grid-area: kg !important;
  }

  .setList .setRow .setRepsField {
    grid-area: reps !important;
  }

  .setList .setRow .setField {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .setList .setRow .setFieldLabel {
    display: block !important;
    margin: 0 0 3px 2px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .2px !important;
    text-align: left !important;
    color: #a8a99f !important;
  }

  .setList .setRow .setWeightInput,
  .setList .setRow .setRepsInput {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    padding: 7px 9px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
  }

  .setList .setRow .setTargetBadge {
    grid-area: target !important;
    align-self: end !important;
    justify-self: stretch !important;
    min-width: 52px !important;
    max-width: 68px !important;
    height: 40px !important;
    padding: 0 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 9px !important;
    box-sizing: border-box !important;
  }

  .setList .setRow .setActionGroup {
    grid-area: actions !important;
    width: 30px !important;
    min-width: 30px !important;
    align-self: end !important;
    justify-self: end !important;
  }

  .setList .setRow .setActionGroup .iconBtn {
    width: 30px !important;
    min-width: 30px !important;
    height: 40px !important;
    padding: 0 !important;
  }

  .setList .setRow .setPlanNote {
    grid-area: plan !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 380px) {
  .setList .setRow {
    grid-template-columns: 28px minmax(70px, 1fr) minmax(70px, 1fr) minmax(48px, auto) 28px !important;
    column-gap: 4px !important;
  }
  .setList .setRow .setNoBadge,
  .setList .setRow .setActionGroup,
  .setList .setRow .setActionGroup .iconBtn {
    width: 28px !important;
    min-width: 28px !important;
  }
  .setList .setRow .setTargetBadge {
    min-width: 48px !important;
    max-width: 60px !important;
    font-size: 8.5px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}

/* ===== GPFit mobile workout set component — rebuilt from zero 2026-09-05 11:35 ===== */
.workoutSetItem {
  padding: 7px 0;
  border-bottom: 1px solid rgba(72,76,65, .38);
}
.workoutSetItem:last-child { border-bottom: 0; }

.workoutSetMain {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.workoutSetMetric {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #363931;
  border-radius: 12px;
  background: #1e201b;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.workoutSetMetric:focus-within {
  border-color: #d7ff3f;
  background: #22231e;
  box-shadow: 0 0 0 2px rgba(215,255,63, .09);
}

.workoutSetInput {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 5px 0 12px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #d7ff3f !important;
  font-size: 16px !important;
  line-height: 42px !important;
  font-weight: 800 !important;
  text-align: left !important;
  box-sizing: border-box !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}
.workoutSetInput::-webkit-outer-spin-button,
.workoutSetInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.workoutSetMetricUnit {
  padding: 0 10px 0 2px;
  color: #a0a296;
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .15px;
  white-space: nowrap;
  text-transform: lowercase;
  pointer-events: none;
}

.workoutSetTarget {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 0 2px;
  color: #a7a99e;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}
.workoutSetTarget > span {
  margin-bottom: 3px;
  color: #484c41;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .2px;
  text-transform: lowercase;
}
.workoutSetTarget > b {
  color: #d7ff3f;
  font-size: 11px;
  font-weight: 850;
}

.workoutSetIconSpacer {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 44px;
  display: block;
}

.workoutSetIcon {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 44px;
  padding: 0;
  border: 1px solid #363931;
  border-radius: 11px;
  background: #1b1d19;
  color: #bebfb7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.workoutSetIcon:active { transform: scale(.96); }
.workoutSetIcon svg {
  width: 17px;
  height: 17px;
  display: block;
}
.workoutSetTipBtn {
  color: #d7ff3f;
  border-color: rgba(215,255,63, .35);
}
.workoutSetTipBtn.active {
  color: #d7ff3f;
  border-color: rgba(215,255,63, .72);
  background: rgba(215,255,63, .12);
}
.workoutSetDeleteBtn:hover,
.workoutSetDeleteBtn:focus-visible {
  color: #ffd0d0;
  border-color: rgba(222, 104, 104, .45);
}

.workoutPlanTip {
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(215,255,63, .35);
  border-left: 3px solid #d7ff3f;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(72,76,65, .15), rgba(22,23,19, .62));
  color: #d7ff3f;
  box-sizing: border-box;
}
.workoutPlanTip[hidden] { display: none !important; }
.workoutPlanTipTitle {
  margin-bottom: 6px;
  color: #d7ff3f;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .25px;
  text-transform: uppercase;
}
.planTipLine {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}
.planTipLine > span {
  flex: 0 0 52px;
  color: #484c41;
  font-size: 8px;
  line-height: 1.65;
  font-weight: 850;
  letter-spacing: .2px;
}
.planTipLine > b {
  min-width: 0;
  color: #d7ff3f;
  font-weight: 650;
}

@media (max-width: 680px) {
  .workoutSetItem { padding: 6px 0; }
  .workoutSetMain { gap: 5px; }
  .workoutSetMetric { height: 42px; border-radius: 10px; }
  .workoutSetInput {
    height: 40px !important;
    line-height: 40px !important;
    padding-left: 10px !important;
    padding-right: 3px !important;
    font-size: 15px !important;
  }
  .workoutSetMetricUnit {
    padding-right: 8px;
    font-size: 8.5px;
  }
  .workoutSetTarget { min-width: 43px; padding: 0 1px; }
  .workoutSetTarget > span { font-size: 7.5px; }
  .workoutSetTarget > b { font-size: 10.5px; }
  .workoutSetIconSpacer {
    flex-basis: 31px;
    width: 31px;
    min-width: 31px;
    height: 42px;
  }
  .workoutSetIcon {
    flex-basis: 31px;
    width: 31px;
    min-width: 31px;
    height: 42px;
    border-radius: 10px;
  }
  .workoutSetIcon svg { width: 16px; height: 16px; }
}

@media (max-width: 380px) {
  .workoutSetMain { gap: 4px; }
  .workoutSetInput {
    padding-left: 8px !important;
    font-size: 14px !important;
  }
  .workoutSetMetricUnit {
    padding-right: 6px;
    font-size: 8px;
  }
  .workoutSetTarget { min-width: 40px; }
  .workoutSetTarget > b { font-size: 10px; }
  .workoutSetIconSpacer {
    flex-basis: 29px;
    width: 29px;
    min-width: 29px;
  }
  .workoutSetIcon {
    flex-basis: 29px;
    width: 29px;
    min-width: 29px;
  }
  .workoutSetIcon svg { width: 15px; height: 15px; }
}

/* GPTFIT_SET_CLEAN_CSS_V1 — source mirror; critical copy is inline in index.html */
.setCleanItem{padding:7px 0;border-bottom:1px solid rgba(61,64,55,.42)}


/* === GPFIT VISUAL REFRESH 2026-09-05 === */
:root{
  --brand:#d7ff3f;
  --brand-2:#d7ff3f;
  --brand-dark:#d7ff3f;
  --bg1:#131411;
  --bg2:#191a16;
  --bg3:#20211c;
  --surface:#1c1d19;
  --surface-2:#23251f;
  --surface-3:#272923;
  --line:#353830;
  --line-soft:rgba(215,255,63,.18);
  --text:#d7ff3f;
  --muted:#aaaca1;
  --shadow:0 16px 40px rgba(0,0,0,.32);
  --glow:0 0 0 1px rgba(215,255,63,.18), 0 0 24px rgba(215,255,63,.06);
}
html{background:radial-gradient(circle at top, #2d2f28 0%, #171815 26%, #10100e 60%, #0d0e0c 100%)}
body{
  background:
    radial-gradient(circle at top center, rgba(215,255,63,.18), transparent 26%),
    radial-gradient(circle at bottom center, rgba(215,255,63,.08), transparent 24%),
    linear-gradient(180deg,#141512 0%,#11110f 100%);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  letter-spacing:.01em;
}
.container{max-width:480px;padding-bottom:94px}
.topbar{box-shadow:none}
.banner{
  height:132px;
  border-radius:0 0 26px 26px;
  overflow:hidden;
  box-shadow:0 14px 36px rgba(0,0,0,.28);
}
.profile,.orgBrand{
  background:rgba(17,17,15,.58);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 20px rgba(0,0,0,.2);
}
.profBadge{background:rgba(30,32,27,.76);border:1px solid rgba(255,255,255,.06)}
.profAvatar{background:linear-gradient(135deg,var(--brand),#d7ff3f);color:#1a1c18;box-shadow:0 0 0 3px rgba(215,255,63,.18)}
.card, .journalEntry{
  background:linear-gradient(180deg, rgba(26,27,23,.98) 0%, rgba(23,24,20,.98) 100%);
  border:1px solid rgba(215,255,63,.22);
  border-radius:18px;
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.02);
}
.card{padding:14px;margin:12px 10px}
.h2{font-size:17px;font-weight:900;letter-spacing:.01em;color:#d7ff3f}
.small{color:var(--muted)}
.sep{background:rgba(255,255,255,.06)}
.input, select, textarea.input{
  background:linear-gradient(180deg,#22241e 0%,#1c1e19 100%);
  color:var(--text);
  border:1px solid rgba(72,76,65,.28);
  border-radius:14px;
  padding:11px 12px;
  min-height:42px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .12s ease;
}
.input:hover, select:hover, textarea.input:hover{border-color:rgba(215,255,63,.42)}
.input:focus, select:focus, textarea.input:focus{
  border-color:rgba(215,255,63,.72);
  box-shadow:0 0 0 3px rgba(215,255,63,.12), inset 0 1px 0 rgba(255,255,255,.03);
  background:linear-gradient(180deg,#262822 0%,#21231e 100%);
}
.input::placeholder, textarea.input::placeholder{color:#a2a499}
button{font-family:inherit}
.btn{
  min-height:40px;
  border-radius:14px;
  border:1px solid rgba(72,76,65,.28);
  background:linear-gradient(180deg,#242621 0%,#1e201b 100%);
  color:#d7ff3f;
  padding:8px 14px;
  box-shadow:0 8px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.03);
  transition:transform .12s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover{transform:translateY(-1px);background:linear-gradient(180deg,#292b25 0%,#23251f 100%);box-shadow:0 12px 26px rgba(0,0,0,.24)}
.btn:active{transform:translateY(0)}
.btn.primary{
  background:linear-gradient(90deg,var(--brand) 0%, #d7ff3f 100%);
  border-color:rgba(215,255,63,.6);
  color:#171815;
  box-shadow:0 14px 34px rgba(215,255,63,.18);
}
.btn.secondary{
  background:rgba(29,30,26,.72);
  color:#d7ff3f;
  border-color:rgba(215,255,63,.44);
}
.btn.gray, .btn.ghost{
  background:rgba(26,27,23,.82);
  border-color:rgba(72,76,65,.26);
  color:#d7ff3f;
}
.btn.danger{background:rgba(110,18,38,.16);border-color:rgba(245,86,120,.45);color:#ffd6df}
.btn.chip{border-radius:999px;padding:7px 12px}
.iconBtn{
  background:linear-gradient(180deg,#22231e 0%, #1b1d19 100%);
  border:1px solid rgba(72,76,65,.26);
  border-radius:12px;
  color:#d7ff3f;
}
.iconBtn.danger{background:rgba(91,21,29,.22);border-color:rgba(227,87,111,.35);color:#ffcbd5}
.timerTiny{
  background:linear-gradient(180deg,#22231e 0%,#1b1d19 100%);
  border:1px solid rgba(215,255,63,.55);
  color:#d7ff3f;
  border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.daySummary{
  background:linear-gradient(180deg,#252721 0%,#1d1f1a 100%);
  border:1px solid rgba(215,255,63,.38);
  border-left-width:1px;
  border-radius:16px;
  box-shadow:var(--glow);
}
.daySummary > div, .dayToggleAll{
  background:rgba(17,18,16,.56);
  border:1px solid rgba(72,76,65,.22);
}
.dayToggleAll{color:#d7ff3f}
.planTable .head{background:linear-gradient(180deg,#292b25 0%,#232520 100%);border-radius:12px}
.planTable .row{border-bottom:1px solid rgba(72,76,65,.18)}
.suppList .item,.exItem,.exListHeader{border-bottom-color:rgba(72,76,65,.18)}
#toast-container .toast, .toast{
  border-radius:14px;
  border:1px solid rgba(215,255,63,.25);
  background:linear-gradient(180deg,#21221d 0%,#1a1b17 100%);
  color:#d7ff3f;
}
#toast-container .toast.error, .toast.error{
  background:linear-gradient(180deg,#3a1418 0%,#2a0d10 100%);
  border-color:rgba(255,113,141,.35);
}
.tabbar{
  left:10px;
  right:10px;
  bottom:10px;
  width:auto;
  border:1px solid rgba(72,76,65,.22);
  border-radius:22px;
  background:rgba(15,15,13,.88);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 18px 40px rgba(0,0,0,.34);
  padding:8px;
}
.tabbar a{
  min-height:58px;
  border-radius:16px;
  gap:6px;
  color:#b2b4aa;
  transition:background .18s ease, color .18s ease, transform .12s ease;
}
.tabbar a:hover{transform:translateY(-1px);color:#d7ff3f}
.tabbar a.active{
  background:linear-gradient(180deg, rgba(28,30,25,.95) 0%, rgba(23,24,20,.95) 100%);
  color:#d7ff3f;
  box-shadow:inset 0 0 0 1px rgba(215,255,63,.16), 0 10px 24px rgba(0,0,0,.22);
}
.tabbar a span{
  width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;
  font-size:0;line-height:1;color:currentColor;
}
.tabbar a span svg{width:22px;height:22px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tabbar a em{font-size:11px;font-weight:800;letter-spacing:.01em}
.tabbar a.active span, .tabbar a.active em{color:var(--brand)}
.filterRow{gap:10px}
.jeToggle{border-radius:10px;background:#1f211c;border-color:rgba(72,76,65,.25)}
.coachHint, .setPlanTipBox{
  border-radius:16px!important;
  border:1px solid rgba(215,255,63,.34)!important;
  background:linear-gradient(180deg, rgba(27,29,25,.48) 0%, rgba(24,25,22,.42) 100%)!important;
  box-shadow:var(--glow)!important;
}
.coachHint.warn{border-color:rgba(255,193,59,.38)!important;background:linear-gradient(180deg, rgba(63,48,13,.35) 0%, rgba(42,31,8,.28) 100%)!important}
.coachHint.ok{border-color:rgba(215,255,63,.42)!important}
.alertBar{background:rgba(20,21,18,.96)!important;border:1px solid rgba(72,76,65,.24)!important;border-radius:16px!important;box-shadow:var(--shadow)!important}
@media (max-width:520px){
  .banner{height:126px}
  .card{margin:10px 8px;padding:13px}
  .tabbar{left:8px;right:8px;bottom:8px}
}
