/* Feniks – Dziennik treningowy. Kolory łatwo zmienić w zmiennych poniżej. */
.fdt {
	/* Kolory i kroje jak na fenikssiedlce.pl – zmienisz je tutaj. */
	--fdt-accent: #e9b230;        /* złoty: przyciski, paski, wyróżnienia */
	--fdt-accent-ink: #9a6f07;    /* ciemne złoto: liczby i tekst na jasnym tle */
	--fdt-accent-2: #ffc400;      /* żółty z menu: obwódka fokusu */
	--fdt-accent-soft: #fbf1d9;   /* jasny beż: etykiety, tła wyróżnień */
	--fdt-ink: #141210;           /* najciemniejszy: tekst na złotych przyciskach */
	--fdt-text: #2e2a26;
	--fdt-muted: #8a7f70;
	--fdt-line: #ebe4d6;
	--fdt-bg: #fff;
	--fdt-soft: #f8f5ef;          /* tło strony */
	--fdt-field: #d9d2c5;         /* obramowanie pól formularza */
	--fdt-shadow: 0 4px 14px rgba(20, 18, 16, .06);
	--fdt-r: 20px;
	--fdt-r-sm: 12px;
	--fdt-display: "Bebas Neue", "Barlow Condensed", "Arial Narrow", sans-serif;
	--fdt-body: "Barlow", "Segoe UI", Arial, sans-serif;
	color: var(--fdt-text);
	font-family: var(--fdt-body);
	font-size: 16px;
	line-height: 1.5;
	max-width: 960px;
	margin: 0 auto 2em;
}
.fdt *, .fdt *::before, .fdt *::after { box-sizing: border-box; }
.fdt [hidden] { display: none !important; }
.fdt h3, .fdt h4 { margin: 0; }
.fdt-muted { color: var(--fdt-muted); font-size: .92em; }

.fdt-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.fdt-head-r { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fdt-sel select { margin-left: 4px; }
.fdt-link { color: var(--fdt-muted); font-size: .92em; }

.fdt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.fdt-tile { background: var(--fdt-soft); border-radius: var(--fdt-r); padding: 12px 14px; }
.fdt-tile-v { font-size: 1.5em; font-weight: 700; color: var(--fdt-accent); line-height: 1.2; }
.fdt-tile-l { font-size: .85em; color: var(--fdt-muted); }
.fdt-tile-l small { font-size: .85em; }

.fdt-card { border: 1px solid var(--fdt-line); border-radius: var(--fdt-r); padding: 16px; margin-bottom: 16px; background: var(--fdt-bg); }
.fdt-card-t { font-weight: 700; margin-bottom: 12px; }

.fdt-bars { display: flex; gap: 6px; align-items: flex-end; height: 140px; }
.fdt-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.fdt-bar-f { width: 100%; max-width: 46px; background: #f3e3b5; border-radius: 4px 4px 0 0; min-height: 2px; }
.fdt-bar-cur .fdt-bar-f { background: var(--fdt-accent); }
.fdt-bar-v { font-size: .72em; color: var(--fdt-muted); white-space: nowrap; }
.fdt-bar-l { font-size: .72em; color: var(--fdt-muted); margin-top: 4px; }

.fdt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fdt-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; font-weight: 600; }
.fdt-form input, .fdt-form select, .fdt-form textarea, .fdt-combox textarea {
	font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--fdt-field); border-radius: 6px; width: 100%; background: #fff; color: var(--fdt-text);
}
.fdt-form input:focus, .fdt-form select:focus, .fdt-form textarea:focus { outline: 2px solid var(--fdt-accent-2); border-color: transparent; }
.fdt-full { margin-top: 12px; }
.fdt-mood { border: 0; padding: 0; margin: 0; display: flex; gap: 0; align-items: flex-end; flex-wrap: wrap; }
.fdt-mood legend { font-size: .9em; font-weight: 600; padding: 0; margin-bottom: 4px; width: 100%; }
.fdt-form .fdt-mood label { flex-direction: row; cursor: pointer; }
.fdt-mood input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fdt-mood span { font-size: 1.3em; padding: 1px 3px; border-radius: 8px; border: 2px solid transparent; opacity: .45; transition: .15s; }
.fdt-mood input:checked + span { opacity: 1; border-color: var(--fdt-accent); background: var(--fdt-accent-soft); }
.fdt-mood input:focus-visible + span { outline: 2px solid var(--fdt-accent-2); }

.fdt-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fdt-btn { font: inherit; font-weight: 600; background: var(--fdt-accent); color: #fff; border: 0; border-radius: 6px; padding: 9px 18px; cursor: pointer; }
.fdt-btn:hover { filter: brightness(1.08); }
.fdt-btn:disabled { opacity: .6; cursor: wait; }
.fdt-btn-ghost { background: transparent; color: var(--fdt-accent); border: 1px solid var(--fdt-accent); }
.fdt-more { display: block; margin: 12px auto; }

.fdt-list-h { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.fdt-list-h .fdt-btn { padding: 6px 12px; font-size: .88em; }

.fdt-entry { border: 1px solid var(--fdt-line); border-left: 4px solid var(--fdt-accent); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; background: var(--fdt-bg); }
.fdt-entry-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.fdt-meta { color: var(--fdt-muted); font-size: .9em; }
.fdt-opis { white-space: normal; word-wrap: break-word; }
.fdt-tag { display: inline-block; font-size: .75em; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #efe9de; color: #4a4038; vertical-align: middle; }
.fdt-t-bieg, .fdt-t-sprawnosc, .fdt-t-inne { background: #efe9de; color: #4a4038; }
.fdt-t-technika { background: #ede9fe; color: #5b21b6; }
.fdt-t-zawody { background: #fde68a; color: #7c4a03; }
.fdt-t-tempo { background: #ffedd5; color: #9a3412; }
.fdt-t-interwaly, .fdt-t-sprint { background: #fde2d8; color: #9a2d0c; }
.fdt-t-sila, .fdt-t-skoki { background: #dbeafe; color: #1e40af; }
.fdt-t-rozciaganie { background: #dcfce7; color: #166534; }

.fdt-comment { margin-top: 8px; background: var(--fdt-accent-soft); border-radius: 6px; padding: 8px 10px; font-size: .94em; }
.fdt-comment-a { font-weight: 600; }
.fdt-entry-a { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.fdt-mini { font: inherit; font-size: .82em; background: none; border: 0; color: var(--fdt-muted); cursor: pointer; padding: 2px 6px; text-decoration: underline; }
.fdt-mini:hover { color: var(--fdt-accent); }
.fdt-danger:hover { color: #b91c1c; }
.fdt-combox { margin-top: 8px; }

.fdt-msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; }
.fdt-msg-ok { background: #dcfce7; color: #166534; }
.fdt-msg-err { background: #fee2e2; color: #991b1b; }

.fdt-login, .fdt-info { border: 1px solid var(--fdt-line); border-radius: var(--fdt-r); padding: 20px; max-width: 420px; }
.fdt-login input[type=text], .fdt-login input[type=password] { width: 100%; padding: 8px 10px; }

/* --- zadane treningi --- */
.fdt-btn-sm { padding: 6px 12px; font-size: .88em; }
.fdt-assign { border-color: #f3e3b5; background: #fffdf8; }
.fdt-who-h { display: flex; justify-content: space-between; align-items: center; font-size: .9em; font-weight: 600; margin-bottom: 6px; }
.fdt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; max-height: 168px; overflow-y: auto; }
.fdt-chip { cursor: pointer; }
.fdt-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fdt-chip span { display: inline-block; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--fdt-field); background: #fff; font-size: .9em; transition: .12s; }
.fdt-chip input:checked + span { background: var(--fdt-accent); border-color: var(--fdt-accent); color: #fff; }
.fdt-chip input:focus-visible + span { outline: 2px solid var(--fdt-accent-2); }
.fdt-grid-2 { grid-template-columns: 1fr 1fr; }
.fdt-assign label, .fdt-combox label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; font-weight: 600; }
.fdt-assign input[type=date], .fdt-assign select, .fdt-assign textarea {
	font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--fdt-field); border-radius: 6px; width: 100%; background: #fff; color: var(--fdt-text);
}
.fdt-combox input, .fdt-combox select { font: inherit; padding: 8px 10px; border: 1px solid var(--fdt-field); border-radius: 6px; width: 100%; background: #fff; }
.fdt-combox textarea { margin-top: 8px; }

.fdt-recent { margin-top: 12px; background: #fff; border: 1px dashed #e9cf8f; border-radius: 8px; padding: 10px 12px; }
.fdt-recent p { margin: 0; }
.fdt-recent-t { font-size: .9em; font-weight: 600; margin-bottom: 6px; }
.fdt-recent-a { padding: 6px 0; border-top: 1px solid var(--fdt-line); }
.fdt-recent-a:first-of-type { border-top: 0; }
.fdt-recent-n { font-weight: 700; font-size: .92em; }
.fdt-recent-e { margin: 4px 0 4px 10px; font-size: .9em; }
.fdt-recent-h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fdt-recent-h .fdt-mini { margin-left: auto; }
.fdt-recent-o { color: #4a4038; }

.fdt-table-w { overflow-x: auto; }
.fdt-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.fdt-table th { text-align: left; font-size: .85em; color: var(--fdt-muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--fdt-line); }
.fdt-table td { padding: 6px 8px; border-bottom: 1px solid var(--fdt-line); vertical-align: middle; }
.fdt-table .fdt-go { padding: 0; color: var(--fdt-text); font-size: 1em; }
.fdt-st { display: inline-block; font-size: .78em; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.fdt-st-done { background: #dcfce7; color: #166534; }
.fdt-st-late { background: #fee2e2; color: #991b1b; }
.fdt-st-today { background: #fde68a; color: #7c4a03; }
.fdt-st-todo { background: #e0e7ff; color: #3730a3; }

.fdt-planned { border-color: #c7d2fe; background: #f8f9ff; }
.fdt-plan-list { display: flex; flex-direction: column; gap: 12px; }
.fdt-plan { background: #fff; border: 1px solid #c7d2fe; border-radius: 8px; padding: 12px 14px; }
.fdt-plan-late { border-color: #fca5a5; }
.fdt-plan-today { border-color: #f5c26b; box-shadow: 0 0 0 2px #fde68a; }
.fdt-plan .fdt-entry-h { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid #efe9de; }
.fdt-plan .fdt-form, .fdt-entry .fdt-form { margin: 12px 0 0; border-color: #a5b4fc; background: #fbfcff; }
.fdt-plan .fdt-entry-a { align-items: center; }
.fdt-plan-src { background: #eef2ff; border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; font-size: .94em; }
.fdt-plan-mini { margin: 4px 0 6px; padding: 4px 10px; font-size: .88em; }
.fdt-plan-mini summary { cursor: pointer; color: #3730a3; font-weight: 600; }
.fdt-form-plan { border-color: #a5b4fc; }

/* --- maksy i tabele % --- */
.fdt-maks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fdt-maks { background: var(--fdt-soft); border-radius: 8px; padding: 10px 12px; margin: 0; }
.fdt-maks-n { font-size: .85em; font-weight: 600; color: var(--fdt-muted); }
.fdt-maks-v { font-size: 1.45em; font-weight: 700; color: var(--fdt-accent); line-height: 1.2; }
.fdt-maks-d { font-size: .78em; margin-bottom: 8px; }
.fdt-maks-in { display: flex; flex-direction: column; gap: 5px; }
.fdt-maks-in input { font: inherit; font-size: .88em; padding: 6px 8px; border: 1px solid var(--fdt-field); border-radius: 6px; width: 100%; background: #fff; }
.fdt-kalk { margin-top: 12px; }
.fdt-kalk summary { cursor: pointer; font-weight: 600; font-size: .92em; color: var(--fdt-accent); }
.fdt-kalk-tab td, .fdt-kalk-tab th { text-align: center; }
.fdt-kalk-tab td:first-child, .fdt-kalk-tab th:first-child { text-align: left; }
.fdt-hist { margin: 8px 0 0; padding-left: 18px; font-size: .9em; }

.fdt-pct { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.fdt-pct-b { background: #fff; border: 1px solid var(--fdt-line); border-radius: 8px; padding: 8px 10px; min-width: 240px; flex: 1; max-width: 560px; }
.fdt-pct-t { font-weight: 700; font-size: .92em; margin-bottom: 4px; }
.fdt-pct-tab { width: 100%; border-collapse: collapse; font-size: .9em; }
.fdt-pct-tab th { text-align: left; font-size: .8em; color: var(--fdt-muted); font-weight: 600; padding: 2px 6px; border-bottom: 1px solid var(--fdt-line); }
.fdt-pct-tab td { padding: 3px 6px; border-bottom: 1px solid #f1ece2; }
.fdt-pct-tab strong { color: var(--fdt-accent); }
.fdt-pct-n { font-size: .82em; margin-top: 4px; }

.fdt-tab-ed { margin-top: 12px; }
.fdt-tab-b { background: #fff; border: 1px solid #e9cf8f; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.fdt-tab-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.fdt-tab-h label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.fdt-tab-h select { font: inherit; padding: 6px 8px; border: 1px solid var(--fdt-field); border-radius: 6px; background: #fff; }
.fdt-tab-t { border-collapse: collapse; margin-bottom: 4px; }
.fdt-tab-t th { font-size: .8em; color: var(--fdt-muted); font-weight: 600; text-align: left; padding: 2px 4px; }
.fdt-tab-t td { padding: 2px 4px; }
.fdt-tab-t .fdt-tab-o input { width: 220px; }
.fdt-pct-o { color: #4a4038; font-size: .95em; }
.fdt-pct-tab td:nth-child(-n+4) { white-space: nowrap; }
.fdt-tab-t input { font: inherit; width: 64px; padding: 5px 7px; border: 1px solid var(--fdt-field); border-radius: 6px; }
.fdt-tab-prev { margin-top: 8px; }
.fdt-tab-prev p { margin: 0; }
.fdt-tab-pt { font-size: .85em; font-weight: 600; margin-bottom: 4px; }
.fdt-tab-prev .fdt-table th small { font-weight: 400; }
.fdt-tab-prev strong { color: var(--fdt-accent); }

/* --- odcinki i podsumowanie --- */
.fdt-odc-ed { margin-top: 12px; }
.fdt-odc-h { font-size: .9em; font-weight: 600; margin-bottom: 4px; }
.fdt-odc { margin-top: 6px; font-size: .92em; display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.fdt-sum-ctl { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-bottom: 14px; }
.fdt-sum-ctl label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; font-weight: 600; }
.fdt-sum-ctl select, .fdt-sum-ctl input { font: inherit; font-weight: 400; padding: 7px 9px; border: 1px solid var(--fdt-field); border-radius: 6px; background: #fff; color: var(--fdt-text); }
.fdt-sum-ctl select { min-width: 220px; max-width: 100%; }
.fdt-sum-q { display: flex; gap: 2px; flex-wrap: wrap; padding-bottom: 6px; }
.fdt-sum .fdt-tiles { margin-bottom: 10px; }
.fdt-sum-avg { margin: 0 0 10px; font-size: .95em; }
.fdt-sum-n { font-size: .85em; margin: 8px 0 0; }
.fdt-sum-tab td, .fdt-sum-tab th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fdt-sum-tab .fdt-sum-cz, .fdt-sum-tab .fdt-sum-o { white-space: normal; min-width: 180px; }
.fdt-sum-cz strong { color: var(--fdt-accent); }
.fdt-sum-cz span { white-space: nowrap; }
.fdt-chart { margin: 4px 0 12px; }
.fdt-chart svg { width: 100%; height: auto; display: block; }
.fdt-chart-lg { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82em; font-weight: 600; margin-bottom: 2px; }
.fdt-lg-a { color: var(--fdt-accent); }
.fdt-lg-b { color: #2457a6; }
.fdt-ch-grid { stroke: var(--fdt-line); stroke-width: 1; }
.fdt-ch-t { fill: var(--fdt-muted); font-size: 11px; font-family: inherit; }
.fdt-ch-a { stroke: var(--fdt-accent); stroke-width: 2.5; }
.fdt-ch-b { stroke: #2457a6; stroke-width: 2; stroke-dasharray: 5 4; }
.fdt-ch-a-p { fill: var(--fdt-accent); stroke: #fff; stroke-width: 1.5; }
.fdt-ch-b-p { fill: #2457a6; stroke: #fff; stroke-width: 1.5; }
.fdt-sum-by { display: flex; flex-direction: column; gap: 6px; }
.fdt-sum-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; gap: 10px; align-items: center; font-size: .92em; }
.fdt-sum-bar { height: 10px; background: var(--fdt-soft); border-radius: 99px; overflow: hidden; }
.fdt-sum-bar i { display: block; height: 100%; background: var(--fdt-accent); border-radius: 99px; }
.fdt-sum-v { color: var(--fdt-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- plan – wykonanie --- */
.fdt-wyk-ed { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.fdt-wyk-ed .fdt-pct-t { margin-top: 4px; }
.fdt-wyk-t td { vertical-align: middle; }
.fdt-wyk-t .fdt-wyk-plan { white-space: nowrap; color: var(--fdt-muted); font-size: .92em; }
.fdt-wyk-t input[data-k=kg] { width: 80px; font-weight: 600; }
.fdt-wyk-t input[data-k=serie], .fdt-wyk-t input[data-k=powt] { width: 58px; }
.fdt-pct-tab small { color: var(--fdt-muted); }
.fdt-wyk-chg { color: #b45309 !important; font-weight: 600; }
.fdt-wyk-d { display: inline-block; font-size: .8em; font-weight: 700; padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.fdt-wyk-ok { background: #dcfce7; color: #166534; }
.fdt-wyk-down { background: #ffedd5; color: #9a3412; }
.fdt-wyk-up { background: #dbeafe; color: #1e40af; }

/* --- zawody --- */
.fdt-zaw-ed, .fdt-assign-zaw { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fdt-zaw-name input { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--fdt-field); border-radius: 6px; width: 100%; max-width: 420px; background: #fff; }
.fdt-zaw-t select { font: inherit; padding: 5px 7px; border: 1px solid var(--fdt-field); border-radius: 6px; background: #fff; max-width: 210px; }
.fdt-zaw-t input[data-s=wynik] { width: 150px; }
.fdt-zaw-t input[data-s=miejsce] { width: 64px; }
.fdt-zaw-t select[data-s=waga] { max-width: 110px; }
.fdt-zaw-g { display: flex; flex-direction: column; gap: 4px; }
.fdt-zaw-gl { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--fdt-muted); font-weight: 600; }
.fdt-assign-zaw .fdt-chips { margin-bottom: 4px; max-height: none; }
.fdt-zaw { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; }
.fdt-zaw-n { font-weight: 700; }
.fdt-zaw-r { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fdt-zaw-r strong { color: var(--fdt-accent); }
.fdt-zaw-m { font-size: .85em; color: var(--fdt-muted); }
.fdt-zaw-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fdt-pb { color: var(--fdt-accent); }

/* --- tryb zadania: opis / tabela odcinków --- */
.fdt-tryb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; font-size: .9em; font-weight: 600; }
.fdt-seg { font: inherit; font-weight: 600; font-size: .92em; cursor: pointer; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--fdt-field); background: #fff; color: var(--fdt-text); }
.fdt-seg[aria-pressed="true"] { background: var(--fdt-accent); border-color: var(--fdt-accent); color: #fff; }
.fdt-seg:focus-visible { outline: 2px solid var(--fdt-accent-2); outline-offset: 1px; }
#fdt-podc { margin-top: 8px; }
.fdt-podc-ed input[data-p=powt] { width: 64px; }
.fdt-podc-ed input[data-p=dystans] { width: 90px; }
.fdt-podc-ed input[data-p=czas] { width: 110px; }
.fdt-podc-ed input[data-p=przerwa] { width: 110px; }
.fdt-podc-tab { margin: 6px 0; max-width: 460px; }
.fdt-recent-e .fdt-pct { margin-top: 4px; }

/* --- kalendarz --- */
.fdt-list-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fdt-view { margin-top: 0; }
.fdt-cal { margin-bottom: 16px; }
.fdt-cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fdt-cal-range { font-size: 1.05em; margin-right: auto; }
.fdt-cal-w { overflow-x: auto; }
.fdt-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(108px, 1fr)); gap: 6px; min-width: 760px; }
.fdt-cal-day { background: var(--fdt-soft); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 5px; min-height: 120px; }
.fdt-cal-we { background: #f3efe6; }
.fdt-cal-today { box-shadow: inset 0 0 0 2px var(--fdt-accent); background: #fffaf0; }
.fdt-cal-dh { display: flex; justify-content: space-between; align-items: baseline; font-size: .82em; color: var(--fdt-muted); padding: 0 2px 2px; }
.fdt-cal-dh strong { color: var(--fdt-text); font-size: 1.05em; font-variant-numeric: tabular-nums; }
.fdt-cal-today .fdt-cal-dh strong { color: var(--fdt-accent); }
.fdt-cal-empty { color: #c9c0b2; font-size: .85em; text-align: center; padding-top: 14px; }
.fdt-cal-it { font: inherit; text-align: left; cursor: pointer; border: 1px solid transparent; border-radius: 6px; padding: 5px 7px; display: flex; flex-direction: column; gap: 1px; width: 100%; }
.fdt-cal-it:hover { filter: brightness(.96); }
.fdt-cal-it:focus-visible { outline: 2px solid var(--fdt-accent-2); outline-offset: 1px; }
.fdt-cal-n { font-size: .82em; font-weight: 700; line-height: 1.25; word-break: break-word; }
.fdt-cal-s { font-size: .74em; opacity: .85; }
.fdt-cal-plan { background: #fff !important; border: 1px dashed currentColor; }
.fdt-cal-late { border-color: #dc2626; }
.fdt-cal-sel { box-shadow: 0 0 0 2px var(--fdt-text); }
.fdt-cal-det { margin-top: 10px; }
.fdt-cal-det > .fdt-plan, .fdt-cal-det > .fdt-entry { box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.fdt-cal-hint { margin: 8px 0 0; font-size: .88em; }

/* kalendarz – miesiąc */
.fdt-cal-m .fdt-cal-grid { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fdt-cal-wd { font-size: .75em; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fdt-muted); text-align: center; padding: 2px 0; }
.fdt-cal-wd-we { color: #a99e8e; }
.fdt-cal-m .fdt-cal-day { min-height: 88px; padding: 4px; gap: 3px; }
.fdt-cal-m .fdt-cal-dh { padding: 0 2px; }
.fdt-cal-m .fdt-cal-it { padding: 2px 5px; border-radius: 4px; }
.fdt-cal-m .fdt-cal-n { font-size: .74em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fdt-cal-out { opacity: .45; }
.fdt-cal-out:hover { opacity: .8; }

/* --- kilka wag sprzętu --- */
.fdt-wagi-f { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.fdt-wagi-l { font-size: .9em; font-weight: 600; }
.fdt-wagi-f .fdt-chips { margin-bottom: 0; }

@media (max-width: 700px) {
	.fdt-tiles { grid-template-columns: repeat(2, 1fr); }
	.fdt-grid { grid-template-columns: 1fr 1fr; }
	.fdt-maks-grid { grid-template-columns: 1fr 1fr; }
	.fdt-sum-row { grid-template-columns: 1fr auto; }
	.fdt-cal-m .fdt-cal-day { min-height: 64px; padding: 3px 2px; }
	.fdt-cal-m .fdt-cal-n { font-size: .66em; }
	.fdt-cal-m .fdt-cal-it { padding: 1px 3px; }
	.fdt-sum-row .fdt-sum-bar { grid-column: 1 / -1; grid-row: 2; }
	.fdt-sum-ctl select { min-width: 0; width: 100%; }
	.fdt-sum-ctl label:first-child { flex-basis: 100%; }
	.fdt-bars { height: 110px; gap: 3px; }
	.fdt-bar-v { display: none; }
}
@media (max-width: 440px) {
	.fdt-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Wygląd jak na fenikssiedlce.pl: Bebas Neue w nagłówkach, Barlow w tekście,
   złote akcenty, białe karty z zaokrągleniem 20 px i złotym paskiem u góry,
   przyciski w kształcie pigułki.
   ===================================================================== */
.fdt h3, .fdt h4, .fdt-card-t, .fdt-tile-v, .fdt-maks-v, .fdt-cal-range, .fdt-zaw-n {
	font-family: var(--fdt-display); font-weight: 400; letter-spacing: .5px;
}
.fdt h3 { font-size: 2.3em; line-height: 1; color: var(--fdt-ink); }
.fdt h4 { font-size: 1.75em; line-height: 1.1; color: var(--fdt-ink); }
.fdt-card-t { font-size: 1.55em; line-height: 1.1; color: var(--fdt-ink); }
.fdt-card-t .fdt-muted { font-family: var(--fdt-body); font-size: .5em; letter-spacing: 0; }
.fdt-head .fdt-muted { font-size: .95em; }

/* karty */
.fdt-card { border: 0; border-top: 5px solid var(--fdt-accent); border-radius: var(--fdt-r); box-shadow: var(--fdt-shadow); padding: 20px; }
.fdt-tile { background: var(--fdt-bg); border-radius: 16px; box-shadow: var(--fdt-shadow); padding: 14px 16px; }
.fdt-tile-v { font-size: 2.1em; line-height: 1; color: var(--fdt-ink); }
.fdt-tile-l { color: var(--fdt-muted); font-size: .82em; }
.fdt-maks { background: var(--fdt-soft); border-radius: var(--fdt-r-sm); }
.fdt-maks-v { font-size: 2em; line-height: 1; color: var(--fdt-ink); }
.fdt-maks-n, .fdt-who-h span, .fdt-zaw-gl, .fdt-cal-wd, .fdt-table th, .fdt-pct-tab th {
	text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; font-size: .72rem; color: var(--fdt-muted);
}
.fdt-entry { border: 0; border-left: 5px solid var(--fdt-accent); border-radius: 16px; box-shadow: var(--fdt-shadow); padding: 14px 16px; }
.fdt-plan { border-radius: 16px; border-color: var(--fdt-line); box-shadow: var(--fdt-shadow); }
.fdt-plan-today { border-color: var(--fdt-accent); box-shadow: 0 0 0 2px var(--fdt-accent); }
.fdt-plan-late { border-color: #e7a59a; }
.fdt-planned { background: var(--fdt-soft); border-top-color: var(--fdt-ink); }
.fdt-assign { background: #fffdf8; }
.fdt-recent, .fdt-tab-b { border-color: #e9cf8f; border-radius: var(--fdt-r-sm); }
.fdt-plan-src { background: var(--fdt-accent-soft); color: #5c4204; border-radius: var(--fdt-r-sm); }
.fdt-plan-mini summary { color: #5c4204; }
.fdt-comment { background: var(--fdt-accent-soft); border-radius: var(--fdt-r-sm); }
.fdt-form-plan, .fdt-plan .fdt-form, .fdt-entry .fdt-form { border-color: var(--fdt-accent); background: #fffdf8; }

/* przyciski */
.fdt-btn { background: var(--fdt-accent); color: var(--fdt-ink); border-radius: 999px; padding: 11px 22px; font-weight: 700; }
.fdt-btn:hover { filter: none; background: #f0c04a; }
.fdt-btn-ghost { background: transparent; color: var(--fdt-ink); border: 1px solid var(--fdt-ink); }
.fdt-btn-ghost:hover { background: var(--fdt-ink); color: #fff; }
.fdt-btn-sm { padding: 7px 14px; }
.fdt-mini:hover { color: var(--fdt-accent-ink); }
.fdt-seg { border-color: var(--fdt-field); }
.fdt-seg[aria-pressed="true"] { background: var(--fdt-ink); border-color: var(--fdt-ink); color: #fff; }
.fdt-chip span { border-color: var(--fdt-field); }
.fdt-chip input:checked + span { background: var(--fdt-accent); border-color: var(--fdt-accent); color: var(--fdt-ink); font-weight: 700; }

/* pola formularzy */
.fdt input[type=text], .fdt input[type=number], .fdt input[type=date], .fdt select, .fdt textarea {
	border-radius: 10px; border-color: var(--fdt-field); font-family: var(--fdt-body);
}
.fdt-form input:focus, .fdt-form select:focus, .fdt-form textarea:focus, .fdt input:focus-visible, .fdt select:focus-visible, .fdt textarea:focus-visible {
	outline: 2px solid var(--fdt-accent); border-color: transparent;
}
.fdt-mood input:checked + span { border-color: var(--fdt-accent); background: var(--fdt-accent-soft); }

/* wyróżnienia liczb i wyników */
.fdt-pct-tab strong, .fdt-sum-cz strong, .fdt-tab-prev strong, .fdt-zaw-r strong, .fdt-pb { color: var(--fdt-accent-ink); }
.fdt-wyk-t input[data-k=kg] { color: var(--fdt-ink); }

/* etykiety rodzajów jak „chipsy” na stronie */
.fdt-tag { border-radius: 999px; font-weight: 600; }
.fdt-t-bieg, .fdt-t-sprawnosc, .fdt-t-inne { background: #efe9de; color: #4a4038; }
.fdt-t-tempo { background: var(--fdt-accent-soft); color: #5c4204; }
.fdt-t-zawody { background: var(--fdt-ink); color: var(--fdt-accent); }

/* wykresy */
.fdt-bar-f { background: #f3e3b5; border-radius: 6px 6px 0 0; }
.fdt-bar-cur .fdt-bar-f { background: var(--fdt-accent); }
.fdt-ch-a { stroke: #c8921a; }
.fdt-ch-a-p { fill: #c8921a; }
.fdt-lg-a { color: #9a6f07; }
.fdt-sum-bar i { background: var(--fdt-accent); }

/* kalendarz */
.fdt-cal-day { background: var(--fdt-bg); box-shadow: var(--fdt-shadow); border-radius: var(--fdt-r-sm); }
.fdt-cal-we { background: #fbf8f2; }
.fdt-cal-today { box-shadow: inset 0 0 0 2px var(--fdt-accent), var(--fdt-shadow); background: #fffaf0; }
.fdt-cal-today .fdt-cal-dh strong { color: var(--fdt-accent-ink); }
.fdt-cal-out { opacity: .5; }
.fdt-cal-sel { box-shadow: 0 0 0 2px var(--fdt-ink); }

/* logowanie */
.fdt-login, .fdt-info { border: 0; border-top: 5px solid var(--fdt-accent); border-radius: var(--fdt-r); box-shadow: var(--fdt-shadow); background: var(--fdt-bg); }
.fdt-login h3 { margin-bottom: 8px; }
.fdt-login input[type=submit] { background: var(--fdt-accent); color: var(--fdt-ink); border: 0; border-radius: 999px; padding: 11px 24px; font-weight: 700; font-family: var(--fdt-body); cursor: pointer; }
.fdt-login input[type=text], .fdt-login input[type=password] { border: 1px solid var(--fdt-field); border-radius: 10px; }
.fdt-kalk summary { color: var(--fdt-accent-ink); }
.fdt-msg { border-radius: var(--fdt-r-sm); }

/* --- mocniejsze rozróżnienie kolorów --- */
.fdt { --fdt-yellow: #ffc400; }
/* przyciski: żółte jak menu strony */
.fdt-btn, .fdt-login input[type=submit] { background: var(--fdt-yellow); color: var(--fdt-ink); box-shadow: 0 2px 0 rgba(20, 18, 16, .18); }
.fdt-btn:hover { background: #ffd43b; }
.fdt-btn-ghost { background: transparent; box-shadow: none; }
.fdt-chip input:checked + span { background: var(--fdt-yellow); border-color: var(--fdt-yellow); }
.fdt-bar-cur .fdt-bar-f { background: var(--fdt-yellow); }

/* statusy – każdy inny kolor */
.fdt-st-today { background: var(--fdt-yellow); color: var(--fdt-ink); }
.fdt-st-todo { background: #dbe7ff; color: #1e3a8a; }
.fdt-st-late { background: #ffd9d6; color: #9f1d14; }
.fdt-st-done { background: #d3f2dc; color: #14532d; }
.fdt-plan-today { border-color: var(--fdt-yellow); box-shadow: 0 0 0 2px var(--fdt-yellow); }
.fdt-plan-late { border-color: #f19c94; box-shadow: 0 0 0 1px #f19c94; }

/* rodzaje treningu – wyraźnie różne kolory */
.fdt-t-bieg { background: #e3edf9; color: #1f4c80; }
.fdt-t-tempo { background: #ffe4b8; color: #8a4600; }
.fdt-t-interwaly { background: #ffd6cc; color: #9b2412; }
.fdt-t-sprint { background: #fcd5e5; color: #8a1c4a; }
.fdt-t-sila { background: #dbe1ff; color: #283593; }
.fdt-t-technika { background: #eadcff; color: #5b21b6; }
.fdt-t-skoki { background: #d2f1ee; color: #0f5e57; }
.fdt-t-sprawnosc { background: #e4f3d2; color: #3d6614; }
.fdt-t-rozciaganie { background: #d8f3e1; color: #166534; }
.fdt-t-zawody { background: var(--fdt-ink); color: var(--fdt-yellow); }
.fdt-t-inne { background: #ece6db; color: #4a4038; }
.fdt-cal-plan { background: #fff !important; border-width: 2px; }
.fdt-cal-plan.fdt-t-zawody { color: var(--fdt-ink); border-color: var(--fdt-ink); }
.fdt-cal-today { box-shadow: inset 0 0 0 2px var(--fdt-yellow), var(--fdt-shadow); background: #fffbea; }

.fdt-dyst-h { font-size: .78em; font-weight: 400; color: var(--fdt-muted); }

/* kilka ciężarów w jednym wierszu (serie) */
.fdt-wyk-t input[data-k=kg] { width: 130px; }
.fdt-kgv-ok { color: #15803d !important; }
.fdt-kgv-down { color: #b45309 !important; }
.fdt-kgv-up { color: #1d4ed8 !important; }
.fdt-wyk-mix { background: #efe9de; color: #4a4038; }

/* inne ćwiczenie w tabeli siłowni */
.fdt-tab-add { display: flex; gap: 8px; flex-wrap: wrap; }
.fdt-tab-nazwa { font: inherit; padding: 6px 10px; border: 1px solid var(--fdt-field); border-radius: 10px; flex: 1; min-width: 160px; max-width: 280px; }
.fdt-tab-h { flex-wrap: wrap; }

/* zadane przez trenera – kalendarz */
.fdt-pcal { margin-bottom: 0; }
.fdt-pday { font: inherit; text-align: left; cursor: pointer; border: 0; color: inherit; width: 100%; }
.fdt-pday:hover { box-shadow: inset 0 0 0 2px var(--fdt-field), var(--fdt-shadow); }
.fdt-pday:focus-visible { outline: 2px solid var(--fdt-yellow); outline-offset: 1px; }
.fdt-pday .fdt-cal-it { cursor: inherit; }
.fdt-pday-sel { box-shadow: inset 0 0 0 3px var(--fdt-ink) !important; }
.fdt-cal-m .fdt-pday:not(.fdt-pday-has) { min-height: 64px; }
.fdt-cal-late { border-color: #dc2626 !important; }
.fdt-pcal .fdt-cal-it { background: #fff; border: 2px solid currentColor; }
.fdt-pcal .fdt-cal-today.fdt-cal-it { border-color: var(--fdt-yellow); }
.fdt-pcal-late { margin: 0 0 8px; font-size: .9em; color: #9f1d14; }
.fdt-pcal-det { margin-top: 14px; }
.fdt-pcal-dt { font-family: var(--fdt-display); font-size: 1.35em; color: var(--fdt-ink); margin-bottom: 6px; letter-spacing: .5px; }
.fdt-pcal-det .fdt-muted { margin: 0; }
.fdt-cal-m .fdt-cal-w { overflow-x: visible; }
.fdt-cal-m .fdt-cal-day, .fdt-pday { min-width: 0; overflow: hidden; }
@media (max-width: 700px) {
	.fdt-cal-m .fdt-pday { padding: 3px 2px; }
	.fdt-cal-m .fdt-cal-wd { font-size: .62rem; letter-spacing: .5px; }
}

/* Tabela skoków o tyczce */
.fdt-ty-t th { white-space: normal; max-width: 110px; overflow-wrap: normal; word-break: normal; line-height: 1.15; vertical-align: bottom; }
.fdt-ty-t input { width: 72px; }
.fdt-ty-t tbody tr:first-child td { padding-top: 4px; }
.fdt-ty-sum { margin: 8px 0 4px; font-size: .95em; }
.fdt-ty-tab td:last-child { white-space: nowrap; }
.fdt-ty-t input.fdt-ty-cw { width: 170px; }

/* Trener: kalendarz zadanych treningów */
.fdt-ocal .fdt-cal-done.fdt-cal-it { border-color: #16a34a; }
.fdt-ocal-stat { margin: 0 0 8px; font-size: .9em; }
.fdt-ogroup { margin-bottom: 10px; }
.fdt-otab { margin-top: 8px; }
.fdt-otab td { vertical-align: middle; }
.fdt-otab-o { font-size: .9em; color: var(--fdt-muted); max-width: 320px; }
@media (max-width: 560px) {
	.fdt-otab .fdt-otab-o { display: none; }
	.fdt-ogroup .fdt-entry-h { flex-wrap: wrap; }
}
.fdt input[type=date] { cursor: pointer; }

/* Grupy zawodników: kategorie wiekowe i trenerzy */
.fdt-grp { margin-bottom: 8px; }
.fdt-grp-h { display: flex; align-items: center; gap: 10px; font-size: .82em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--fdt-muted); margin: 6px 0 4px; }
.fdt-grp-h .fdt-muted { text-transform: none; font-weight: 500; letter-spacing: 0; }
.fdt-grp-tr { margin: 0 0 8px; font-size: .92em; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fdt-ofiltr { font: inherit; font-size: .9em; padding: 5px 8px; border: 1px solid var(--fdt-field); border-radius: 999px; background: #fff; max-width: 220px; }
.fdt-grp .fdt-chips { margin-bottom: 4px; }

/* Cel i realizacja zadanego treningu */
.fdt-ocel, .fdt-oreal { border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.fdt-ocel { background: #fff8e1; border-left: 4px solid var(--fdt-yellow); }
.fdt-oreal { background: #effaf2; border-left: 4px solid #16a34a; }
.fdt-ocel-l { display: block; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--fdt-muted); margin-bottom: 2px; }
.fdt-ocel .fdt-opis, .fdt-oreal .fdt-opis { margin: 2px 0 4px; }
.fdt-cel-real { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fdt-cel-real > div { margin: 8px 0 0; min-width: 0; }
.fdt-otab-real td { padding-top: 0; border-top: 0; }
.fdt-otab-real .fdt-oreal { margin-top: 0; }
@media (max-width: 700px) { .fdt-cel-real { grid-template-columns: 1fr; gap: 0; } }

/* Tabela: czas cel obok realizacji */
.fdt-cr-tab { margin-top: 6px; }
.fdt-cr-tab td { vertical-align: top; }
.fdt-cr-tab tr.fdt-cr-first td { border-top: 2px solid var(--fdt-line, #e7e2d8); }
.fdt-cr-tab tbody tr:first-child td { border-top: 0; }
.fdt-cr-name { white-space: nowrap; }
.fdt-cr-t { min-width: 130px; line-height: 1.9; }
.fdt-cr-tab th, .fdt-cr-tab td { padding-left: 6px; padding-right: 6px; }
@media (max-width: 560px) { .fdt-cr-tab .fdt-cr-p { display: none; } .fdt-cr-t { min-width: 110px; } }
.fdt-cr-v { display: inline-block; padding: 0 6px; border-radius: 6px; font-weight: 600; font-variant-numeric: tabular-nums; background: #f3f0ea; }
.fdt-cr-up { background: #d3f2dc; color: #14532d; }
.fdt-cr-ok { background: #fff1b8; color: #6b4e00; }
.fdt-cr-down { background: #fde0dc; color: #8f1d13; }
.fdt-cr-leg { margin: 2px 0 8px; }
.fdt-cr-leg .fdt-cr-v { font-size: .9em; }
.fdt-cr-sr { white-space: nowrap; }
.fdt-cr-tab td.fdt-cr-t { white-space: normal; }
@media (max-width: 560px) { .fdt-cr-tab td.fdt-cr-t { min-width: 0; max-width: 150px; } }
