/* ---------- układ ---------- */
.app { min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 20; background: var(--s1); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; max-width: 1280px; margin: 0 auto; padding: 0 32px; min-height: 72px; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav > a, .nav-more > summary { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-full); color: var(--text-2); font-size: 15px; letter-spacing: -.03em; cursor: pointer; white-space: nowrap; }
.nav > a:hover, .nav-more > summary:hover { color: var(--text); background: var(--s2); }
.nav > a[aria-current], .nav-more.on > summary { color: var(--accent-t); background: var(--s3); font-weight: 600; }
.nav-more { position: relative; } .nav-more > summary { list-style: none; } .nav-more > summary::-webkit-details-marker { display: none; } .nav-more[open] > summary svg { transform: rotate(180deg); }
.nav-drop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 5; min-width: 250px; display: grid; gap: 2px; padding: 8px; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.nav-drop a, .nav-drop button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--r-md); color: var(--text-2); letter-spacing: -.02em; } .nav-drop a:hover, .nav-drop button:hover { background: var(--s2); color: var(--text); } .nav-drop a[aria-current] { color: var(--accent-t); background: var(--s3); } .nav-drop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; width: auto; }
.top-r { display: flex; align-items: center; gap: 4px; } .who { display: inline-flex; align-items: center; margin-left: 4px; } .role { display: none; }
.badge { min-width: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; letter-spacing: 0; flex: none; }
main { max-width: 1280px; margin: 0 auto; padding: 40px 32px 80px; outline: none; }
.bottom { display: none; }
.grow { flex: 1; min-width: 0; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.page-h p { margin-top: 10px; color: var(--text-2); font-size: 18px; font-weight: 300; letter-spacing: -.03em; line-height: 1.35; }
.page-h .btn.primary, .glow { box-shadow: var(--glow); }
h2.sub { margin: 40px 0 16px; }
h3 { margin: 20px 0 10px; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .end { justify-content: flex-end; } .between { justify-content: space-between; } .mid { justify-content: center; } .gap-t { margin-top: 20px; }
.muted { color: var(--text-2); font-size: 14px; } .nowrap { white-space: nowrap; } .cap { color: var(--text-2); font-size: 13px; letter-spacing: .015em; line-height: 1.38; }
/* ---------- karty ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; min-width: 0; margin-bottom: 24px; container-type: inline-size; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; min-height: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 24px; }
.grid2 > .card, .stack > .card { margin-bottom: 0; } .grid2.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .grid2.eq { align-items: stretch; }
.stack { display: grid; gap: 24px; min-width: 0; align-content: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; margin-bottom: 24px; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 136px; padding: 20px 24px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); transition: background .15s; min-width: 0; }
a.tile:hover { background: var(--s3); }
.tile > span:first-child { min-width: 0; }
.tile small { display: block; color: var(--text-2); font-size: 14px; letter-spacing: -.02em; }
.tile strong { display: block; margin: 8px 0 6px; font-size: 36px; font-weight: 450; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile em { display: block; font-style: normal; font-size: 13px; letter-spacing: .01em; color: var(--text-2); } .tile em.up { color: var(--accent-t); } .tile em.down { color: var(--danger-t); } .tile em.dot::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--danger); }
.tile-ic, .tile-i { width: 44px; height: 44px; border-radius: var(--r-md); background: color-mix(in srgb, var(--tone, var(--accent-t)) 15%, var(--s1)); color: var(--tone, var(--accent-t)); display: grid; place-items: center; flex: none; align-self: flex-start; }
.mring { flex: none; } .mring .b { fill: none; stroke: var(--s3); stroke-width: 7; } .mring .v { fill: none; stroke: var(--tone, var(--data)); stroke-width: 7; stroke-linecap: round; } .mring text { fill: var(--text); font: 500 17px var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.card.fill { display: flex; flex-direction: column; } .rings { flex: 1; align-content: center; padding: 8px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .rings > div { display: grid; justify-items: center; gap: 10px; text-align: center; min-width: 0; } .rings b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.02em; } .rings small { display: block; color: var(--text-2); font-size: 13px; }
/* karta wyróżniona: jedyna z poświatą na ekranie */
.hero-c { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px; } .hero-c::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 300px at 92% 8%, color-mix(in srgb, var(--c-violet) 26%, transparent), transparent 70%), radial-gradient(420px 300px at 66% 100%, color-mix(in srgb, var(--c-blue) 22%, transparent), transparent 72%); pointer-events: none; } .hero-c > * { position: relative; }
.hero-c .when { display: block; margin: 10px 0 14px; font-size: clamp(36px, 4.4vw, 56px); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; font-variant-numeric: tabular-nums; } .hero-c h2 { margin-bottom: 4px; } .hero-c .row { margin-top: 24px; } .hero-c .bodies { height: 216px; }
.eyebrow { font-size: 14px; color: var(--text-2); letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px; border-radius: var(--r-full); background: var(--s2); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; max-width: 100%; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; } .pill.ok::before { background: var(--success); } .pill.cream::before { background: var(--info); } .pill.warn::before { background: var(--warning); } .pill.bad::before { background: var(--danger); } .pill.plain::before { display: none; } .pill.l1::before { background: var(--c-yellow); } .pill.l2::before { background: var(--c-orange); } .pill.l3::before { background: var(--c-red); } .pill:is(.t1, .t2, .t3, .t4, .t5)::before { background: var(--tone); }
.avatar { display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--tone, var(--muted)) 22%, var(--s1)); color: var(--text); border: 2px solid color-mix(in srgb, var(--tone, var(--muted)) 70%, var(--s1)); font-weight: 500; letter-spacing: -.02em; flex: none; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 14px; } .btn.block { width: 100%; margin-top: 20px; } .btn.danger { background: var(--danger); color: #0B0E0C; font-weight: 600; } .btn.danger-ghost { color: var(--danger-t); border-color: var(--line-2); } .btn.danger-ghost:hover { background: var(--s2); }
.list .btn.primary.small { background: var(--s2); color: var(--accent-t); } .list .btn.primary.small:hover { background: var(--s3); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: var(--text-2); transition: background .15s; } .iconbtn:hover { background: var(--s3); color: var(--text); } .iconbtn.accent { background: var(--s2); color: var(--accent-t); } .iconbtn.accent:hover { background: var(--s3); } .iconbtn:disabled { opacity: .35; cursor: default; }
.list li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--line); } .list li:first-child { border-top: 0; } .list li:has(> .rowbtn:only-child) { padding: 0; }
.list small, .rowbtn small, .person small { display: block; color: var(--text-2); font-size: 13px; letter-spacing: .005em; } .list b { font-weight: 500; letter-spacing: -.015em; }
.list-t { margin: 20px 0 4px; color: var(--text-2); font-size: 14px; }
.rowbtn { display: flex; align-items: center; gap: 14px; width: calc(100% + 24px); margin: 2px -12px; padding: 8px 12px; border-radius: var(--r-md); min-width: 0; min-height: 56px; transition: background .15s; } .rowbtn:hover, .rowbtn.on { background: var(--s3); } .list li > .rowbtn:not(:only-child) { width: auto; flex: 1; margin-right: 0; }
.rowbtn > span { min-width: 0; } .rowbtn > .ic { flex: none; color: var(--muted); } .rowbtn .grow b, .rowbtn .grow small { display: block; overflow: hidden; text-overflow: ellipsis; }
.rowbtn > .st { align-self: stretch; width: 4px; min-height: 40px; margin: 2px -4px 2px 0; border-radius: 2px; background: var(--tone, var(--line-2)); flex: none; } .time { flex: none; width: 62px; font-size: 17px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .time small { font-weight: 400; } .dotic { width: 44px; height: 44px; border-radius: var(--r-md); background: color-mix(in srgb, var(--tone, var(--accent-t)) 15%, var(--s1)); color: var(--tone, var(--accent-t)); display: grid; place-items: center; flex: none; }
.cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 28px 16px; color: var(--text-2); text-align: center; font-size: 15px; } .empty svg { color: var(--muted); }
/* ---------- filtry ---------- */
.filters { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; } .search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-height: 48px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 14px; color: var(--muted); } .search input:not([type=checkbox]):not([type=radio]):not([type=file]) { border: 0; background: none; padding: 0; min-height: 46px; outline: none; box-shadow: none; border-radius: 0; color: var(--text); } .search:focus-within { border-color: var(--accent-t); box-shadow: 0 0 0 2px var(--ring-f); }
#food-list { margin-top: 16px; } .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; } .chips + .chips { margin-top: -4px; }
.chip { position: relative; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 16px; border-radius: var(--r-full); border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; letter-spacing: -.02em; white-space: nowrap; transition: background .15s; } .chip::after { content: ''; position: absolute; inset: -5px 0; } .chip:hover { color: var(--text); background: var(--s2); } .chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chips-l { color: var(--text-2); font-size: 13px; letter-spacing: .015em; align-self: center; margin-right: 4px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-full); background: var(--s2); } .seg button { min-height: 36px; padding: 0 16px; border-radius: var(--r-full); font-size: 14px; letter-spacing: -.02em; color: var(--text-2); position: relative; } .seg button::after { content: ''; position: absolute; inset: -4px 0; } .seg .on { background: var(--text); color: var(--base); font-weight: 500; }
.people, .plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; } .plans { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); align-items: start; } .plans .card { margin: 0; }
.person { display: flex; flex-direction: column; width: 100%; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; transition: background .15s; min-width: 0; } .person:hover { background: var(--s3); } .person:hover .mring .b, .person:hover .meter-b { stroke: var(--line-2); background: var(--line-2); } .person > .row:first-child { gap: 14px; } .person > .row > div { min-width: 0; flex: 1; } .person strong { font-size: 18px; font-weight: 500; letter-spacing: -.03em; } .person > .row + .meter { margin-top: 20px; } .person .meter + .meter { margin-top: 14px; }
.person dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); } dt { font-size: 13px; letter-spacing: .015em; color: var(--text-2); } dd { margin-top: 2px; font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
dl.data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } dl.data dd { overflow-wrap: anywhere; } dl.four { grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; padding: 16px; background: var(--s2); border-radius: var(--r-md); } dl.four dd { font-size: 20px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 8px; color: var(--text-2); } .back:hover { color: var(--text); } .profile { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; } .profile p { margin-top: 6px; color: var(--text-2); } .profile.in h3 { margin: 0; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -4px 24px; padding: 6px 4px; scrollbar-width: none; } .tabs a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--r-full); color: var(--text-2); font-size: 15px; letter-spacing: -.02em; white-space: nowrap; } .tabs a::after { content: ''; position: absolute; inset: -3px 0; } .tabs a:hover { background: var(--s2); color: var(--text); } .tabs a[aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 12px 0 0; position: relative; } table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; } th { text-align: left; font-weight: 400; font-size: 13px; letter-spacing: .015em; color: var(--text-2); padding: 8px 12px 10px 0; white-space: nowrap; } td { padding: 8px 12px 8px 0; height: 56px; border-top: 1px solid var(--line); vertical-align: middle; } td b { font-weight: 500; }
/* ---------- wykresy ---------- */
.chart { width: 100%; max-width: 820px; max-height: 300px; margin: 0 auto; height: auto; overflow: visible; } .chart text { font: 400 12px var(--font); fill: var(--text-2); font-variant-numeric: tabular-nums; } .chart .grid { stroke: var(--line); } .chart .line { fill: none; stroke: var(--tone, var(--data)); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; } .chart .area { fill: var(--tone, var(--data)); opacity: .1; } .chart .dot { fill: var(--s1); stroke: var(--tone, var(--data)); stroke-width: 3; } .chart .goal { stroke: var(--text-2); stroke-dasharray: 4 6; stroke-width: 1.5; } .chart .goal-t { fill: var(--text-2); } .chart .bar { fill: var(--tone, var(--data)); fill-opacity: .34; } .chart .bar.hot { fill-opacity: 1; } .chart .val { fill: var(--text); font-weight: 500; font-size: 14px; paint-order: stroke; stroke: var(--s1); stroke-width: 5px; }
.ring-b, .ring-v { fill: none; stroke-width: 8; stroke: var(--s3); } .ring-v { stroke: var(--tone, var(--data)); stroke-linecap: round; } .ring-n { font: 450 30px var(--font); letter-spacing: -.03em; fill: var(--text); font-variant-numeric: tabular-nums; } .ring-l { font: 400 11px var(--font); fill: var(--text-2); }
.day-sum { display: flex; gap: 28px; align-items: center; } .day-sum + .list { margin-top: 20px; } .meters { flex: 1; min-width: 0; display: grid; gap: 14px; } .meter { flex: 1; } .meter > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--text-2); } .meter b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; } .meter-b { height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; margin-top: 8px; } .meter-b i { display: block; height: 100%; background: var(--tone, var(--data)); border-radius: 4px; } .meter .kd::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--tone); }
/* ---------- kalendarz ---------- */
.cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .cal-w span { text-align: center; font-size: 13px; color: var(--text-2); padding: 4px 0 8px; }
.day { min-height: 104px; border-radius: var(--r-md); border: 1px solid transparent; background: var(--s2); padding: 8px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; transition: background .15s; } .day:hover { background: var(--s3); } .day > span { display: grid; place-items: center; width: 26px; height: 26px; margin: -2px 0 2px -3px; border-radius: 50%; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; } .day i { font-style: normal; font-size: 12px; line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .day i b { display: inline; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; } .day i { display: flex; align-items: center; gap: 5px; } .day i::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--line-2)); flex: none; } .day i.off { text-decoration: line-through; opacity: .6; } .day em { font-style: normal; font-size: 12px; color: var(--text-2); } .day > b { display: none; } .day.dim { opacity: .38; } .day.today > span { background: var(--accent); color: var(--on-accent); font-weight: 600; } .day.sel { border-color: var(--accent-t); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: start; }
/* ---------- plany i atlas ---------- */
.plan-list li { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 0; border-top: 1px solid var(--line); } .plan-list li:first-child { border: 0; } .plan-list .n { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--s2); color: var(--text-2); display: grid; place-items: center; font-size: 14px; font-weight: 500; flex: none; } .plan-list div { flex: 1; min-width: 0; } .plan-list small { color: var(--text-2); font-size: 13px; } .plan-list li.done .n { background: var(--accent); color: var(--on-accent); } .plan-list li.done .link { color: var(--text-2); text-decoration: line-through; } .spec { display: block; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; } .link { font-weight: 500; letter-spacing: -.02em; text-align: left; min-height: 28px; } .link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tick { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; min-height: 44px; cursor: pointer; }
input[type=checkbox], input[type=radio] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex: none; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--s2) center/16px no-repeat; cursor: pointer; } input[type=radio] { border-radius: 50%; } input[type=checkbox]:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0E0C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.500 4.500 4.500L19 7.500'/%3E%3C/svg%3E"); } input[type=radio]:checked { border: 7px solid var(--accent-t); background-color: var(--s1); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; } .ex-card { display: flex; gap: 18px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px 20px 16px 16px; transition: background .15s; } .ex-card:hover { background: var(--s3); } .ex-card > span:last-child { min-width: 0; } .ex-card strong { display: block; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; } .ex-card small { display: block; color: var(--text-2); font-size: 13px; margin: 4px 0 10px; } .ex-grid .empty { grid-column: 1 / -1; }
.body-svg { height: 100%; width: auto; overflow: visible; } .bp, .bz { fill: var(--s2); stroke: var(--body-line); stroke-width: .8; stroke-linejoin: round; vector-effect: non-scaling-stroke; } .bp { fill: none; } .bz.l1 { fill: var(--c-yellow); } .bz.l2 { fill: var(--c-orange); } .bz.l3 { fill: var(--c-red); } .bz:is(.l1, .l2, .l3) { stroke: var(--s1); stroke-opacity: .5; }
.body-fig { display: grid; place-items: center; width: 84px; height: 128px; padding: 8px; border-radius: var(--r-lg); background: var(--base); flex: none; } .bodies { display: flex; gap: 20px; justify-content: center; } .body-fig .body-svg { height: 112px; } .bodies { height: 200px; } .bodies.mid-b { height: 190px; padding: 14px 0; border-radius: var(--r-lg); background: var(--base); box-sizing: content-box; margin-bottom: 12px; } .bodies.big { height: clamp(240px, 60cqw, 340px); } .ex-full { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; } .ex-full .bodies { height: 250px; padding: 16px; border-radius: var(--r-lg); background: var(--base); } .ex-full ol { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; margin-bottom: 16px; } .ex-full ol li::marker { color: var(--text-2); } .legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.note { background: var(--s2); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; color: var(--text-2); margin-top: 16px; } .note b { color: var(--text); }
/* ---------- czat ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; } .chat-list { padding: 12px 24px; margin: 0; } .chat-main { display: flex; flex-direction: column; height: min(680px, calc(100vh - 240px)); min-height: 380px; margin: 0; padding: 20px; } .chat-h { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 18px; letter-spacing: -.02em; } .chat-h b { font-weight: 500; } .thread { flex: 1; overflow-y: auto; padding: 16px 4px; display: flex; flex-direction: column; gap: 8px; } .thread .empty { margin: auto; } .msg { max-width: 78%; align-self: flex-start; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 16px; } .msg p { overflow-wrap: anywhere; white-space: pre-wrap; } .msg small { font-size: 12px; color: var(--text-2); } .msg.me { align-self: flex-end; background: var(--s3); border-color: transparent; border-radius: 18px 18px 6px 18px; } .sep { align-self: center; font-size: 13px; color: var(--text-2); } .send { display: flex; gap: 10px; } .send input { flex: 1; min-width: 0; } .send .btn { width: 48px; padding: 0; } .only-m { display: none; }
/* ---------- formularze ---------- */
.field { display: block; } .field > span, legend { display: block; font-size: 14px; letter-spacing: -.02em; color: var(--text-2); margin-bottom: 8px; padding: 0; } .field small { display: block; margin-top: 6px; color: var(--text-2); font-size: 13px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--s2); outline: none; } select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; } ::placeholder { color: var(--muted); opacity: 1; } :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus { border-color: var(--accent-t); box-shadow: 0 0 0 2px var(--ring-f); } textarea { resize: vertical; } .row select { width: auto; max-width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; } .full { grid-column: 1 / -1; } form > .field, form > fieldset { margin-bottom: 18px; } .form-grid > .field, .form-grid > fieldset { margin-bottom: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; } .opt { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 16px 10px 12px; background: var(--s2); min-height: 48px; cursor: pointer; font-size: 15px; } .opt:hover { background: var(--s3); } .opt:has(:checked) { border-color: var(--accent-t); }
.scale > div { display: flex; gap: 6px; } .scale label { flex: 1; } .scale input { position: absolute; opacity: 0; } .scale label span { display: grid; place-items: center; min-height: 48px; border-radius: var(--r-md); background: var(--s2); border: 1px solid var(--line); font-weight: 500; cursor: pointer; } .scale label span:hover { background: var(--s3); } .scale :checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; } .scale :focus-visible + span { outline: 2px solid var(--accent-t); outline-offset: 2px; } .scale small { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; margin-top: 6px; }
.plan-edit { display: grid; gap: 12px; margin-bottom: 16px; } .plan-edit li { background: var(--s2); border-radius: var(--r-lg); padding: 14px; } .plan-edit input:not([type=checkbox]):not([type=radio]):not([type=file]) { background-color: var(--s1); } .plan-f { display: grid; grid-template-columns: repeat(4, 1fr) 2fr; gap: 8px; margin-top: 10px; }
.banner { display: flex; align-items: center; gap: 16px; width: 100%; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 20px; margin-bottom: 12px; transition: background .15s; } .banner:hover { background: var(--s3); } .banner > .ic:first-child { box-sizing: content-box; padding: 10px; border-radius: var(--r-md); background: color-mix(in srgb, var(--c-violet) 15%, var(--s1)); color: var(--c-violet); } .banner > .ic:last-child { color: var(--muted); } .banner.cream > .ic:first-child { background: color-mix(in srgb, var(--c-red) 15%, var(--s1)); color: var(--c-red); } .banner span { flex: 1; } .banner b, .banner small { display: block; } .banner b { font-weight: 500; letter-spacing: -.02em; } .banner small { font-size: 14px; color: var(--text-2); } .banner + :not(.banner) { margin-top: 24px; }
.place { color: var(--text-2); display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.water { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .water > div { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .water span { color: var(--line-2); } .water .on { color: var(--c-blue); } .water .on path { fill: currentColor; }
/* ---------- okna ---------- */
dialog { border: 1px solid var(--line-2); padding: 0; width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); border-radius: var(--r-xl); background: var(--s1); color: var(--text); overflow-y: auto; } dialog.wide { width: min(860px, calc(100vw - 24px)); } dialog::backdrop { background: var(--scrim); } .modal-head { position: sticky; top: 0; z-index: 2; background: var(--s1); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 20px 12px 28px; } .modal-head h2 { font-size: 26px; letter-spacing: -.04em; } .modal-body { padding: 4px 28px 28px; } .modal-body > p { margin-bottom: 14px; }
.sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .sheet a, .sheet button { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--s2); letter-spacing: -.02em; } .sheet .ic { color: var(--tone, var(--accent-t)); } .nav-drop .ic { color: var(--tone, currentColor); }
#toasts { position: fixed; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; } #toasts:popover-open { display: grid; } .toast { background: var(--s3); color: var(--text); border: 1px solid var(--line-2); padding: 14px 20px; border-radius: var(--r-lg); text-align: center; } .toast.bad::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--danger); } .toast-b { pointer-events: auto; margin-left: 12px; min-height: 36px; padding: 0 16px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-weight: 600; }
/* ---------- wybór panelu i ankieta ---------- */
.pick { position: relative; min-height: 100vh; padding: 24px 32px 64px; overflow: hidden; } .pick::before { content: ''; position: absolute; inset: 0 0 auto; height: 640px; background: radial-gradient(700px 420px at 50% 0, var(--hero-glow), transparent 72%); pointer-events: none; } .pick > * { position: relative; } .pick-top { display: flex; justify-content: space-between; align-items: center; max-width: 1120px; margin: 0 auto; } .pick-hero { max-width: 720px; margin: 72px auto 48px; text-align: center; } .pick-hero p { margin: 16px auto 0; max-width: 520px; color: var(--text-2); font-size: 20px; font-weight: 300; letter-spacing: -.03em; line-height: 1.35; } .pick-hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1120px; margin: 0 auto; align-items: stretch; } .pick-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--r-xl); background: var(--s1); border: 1px solid var(--line); min-width: 0; } a.pick-card, button.pick-card { transition: background .15s; } a.pick-card:hover, button.pick-card:hover { background: var(--s3); } .pick-card strong { font-size: 24px; font-weight: 400; letter-spacing: -.04em; margin-top: 12px; } .pick-card > span:not(.tile-i):not(.btn) { color: var(--text-2); } .pick-card .btn { margin-top: auto; } .pick-card .gap { flex: 1; min-height: 24px; } .pick-list { display: grid; gap: 4px; margin: 12px -12px 0; } .pick-list button { display: flex; gap: 12px; align-items: center; padding: 6px 12px; border-radius: var(--r-md); min-height: 52px; letter-spacing: -.02em; } .pick-list button:hover { background: var(--s3); } .pick-list button > .ic { margin-left: auto; color: var(--muted); }
.survey { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; } .survey h1 { margin-bottom: 10px; } .steps { display: flex; gap: 6px; margin: 20px 0 24px; } .steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--s3); } .steps .on { background: var(--data); } .survey .between { margin-top: 24px; } .center { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 56px 24px; } .center > svg { color: var(--accent-t); }
@container (max-width: 520px) { .chart text { font-size: 19px; } .chart .val { font-size: 20px; } .chart .dot { r: 6px; stroke-width: 4; } .chart .line { stroke-width: 4; } }
@media (max-width: 1180px) { .nav > a { padding: 0 11px; } .nav > a, .nav-more > summary { font-size: 14px; } .top-in { gap: 12px; padding: 0 24px; } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid2, .grid2.wide-left, .cal-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 999px) {
  .app { padding-bottom: 120px; } .nav { display: none; } .top { background: var(--base); border: 0; } .top-in { min-height: 60px; padding: 0 16px 0 20px; justify-content: space-between; }
  main { padding: 16px 16px 24px; } .page-h { margin-bottom: 20px; } .page-h p { font-size: 16px; font-weight: 400; margin-top: 8px; }
  .bottom { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(460px, calc(100vw - 24px)); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--s1); border: 1px solid var(--line-2); border-radius: 32px; padding: 6px; } .bottom a, .bottom button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border-radius: 26px; font-size: 11px; letter-spacing: -.02em; color: var(--text-2); min-width: 0; } .bottom [aria-current], .bottom .on { color: var(--accent-t); background: var(--s3); font-weight: 600; } .bottom .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; line-height: 18px; font-size: 11px; padding: 0 5px; }
  .page-h > div:last-child:has(.btn.primary:only-child) { display: contents; } .page-h .btn.primary { position: fixed; z-index: 25; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 56px; height: 56px; padding: 0; font-size: 0; gap: 0; } .page-h .btn.primary svg { width: 24px; height: 24px; stroke-width: 2.2; }
  .chat { grid-template-columns: minmax(0, 1fr); } .chat.open .chat-list { display: none; } .chat:not(.open) .chat-main { display: none; } .chat-main { height: calc(100dvh - 270px); min-height: 360px; } .only-m { display: inline-grid; } .pick-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 16px; } #toasts { bottom: 104px; }
}
@media (max-width: 640px) {
  .pays, .pays tbody { display: block; } .pays thead { display: none; } .pays tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 16px 0; border-top: 1px solid var(--line); } .pays tr:first-child { border: 0; padding-top: 4px; } .pays td { border: 0; padding: 0; height: auto; } .pays .p-n { grid-column: 1; } .pays .p-t { grid-column: 1; color: var(--text-2); } .pays tr:not(:has(.p-n)) .p-t { color: var(--text); font-size: 16px; } .pays .p-a { grid-column: 2; grid-row: 1; font-size: 18px; text-align: right; } .pays .p-d { grid-column: 1; color: var(--text-2); font-size: 13px; } .pays .p-d::before { content: 'termin: '; } .pays .p-s { grid-column: 2; grid-row: 2 / span 2; align-self: end; } .pays .p-x { grid-column: 1 / -1; margin-top: 10px; } .pays .p-x .row { flex-wrap: wrap; } .pays .p-x .iconbtn { margin-left: auto; }
  .tiles { gap: 12px; margin-bottom: 16px; } .tile { min-height: 124px; padding: 16px; align-items: flex-start; position: relative; flex-direction: column; gap: 10px; border-radius: var(--r-lg); } .tile > .mring, .tile > .tile-ic { order: -1; width: 56px; height: 56px; } .tile > .tile-ic { width: 40px; height: 40px; } .tile strong { font-size: 28px; margin: 4px 0; } .tile small { font-size: 13px; }
  .card { padding: 20px; margin-bottom: 16px; } .grid2, .stack, .people, .plans, .cal-layout { gap: 16px; } .grid2 { margin-bottom: 16px; } .hero-c { padding: 24px 20px; grid-template-columns: minmax(0, 1fr); } .hero-c .bodies { height: 170px; } .rings .mring { width: 84px; height: 84px; } .hero-c .btn { width: 100%; } .person { padding: 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); } .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 12px; padding: 5px 20px; scrollbar-width: none; } main > .chips { margin: 0 -16px 12px; padding: 5px 16px; } .chips::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; } .tabs { margin: 0 -16px 16px; padding: 6px 16px; }
  .cal-w, .cal-g { gap: 4px; } .day { min-height: 54px; padding: 4px 2px; align-items: center; border-radius: 10px; } .day > span { margin: 0; } .day i, .day em { display: none; } .day > b { display: block; width: auto; height: auto; font-size: 0; line-height: 0; } .day > b::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--data)); margin-top: 3px; } .plan-f { grid-template-columns: repeat(2, 1fr); } .plan-list li { flex-wrap: wrap; } .plan-list li .tick { width: 100%; padding-left: 46px; } .ex-full { grid-template-columns: minmax(0, 1fr); } .day-sum { flex-direction: column; } .meters { width: 100%; } dl.four { grid-template-columns: repeat(2, 1fr); } .list li { flex-wrap: wrap; } .list.meal li, .modal-body .list li, .list li:has(> .rowbtn) { flex-wrap: nowrap; } .scale > div { flex-wrap: wrap; } .scale label { flex: 1 0 16%; } .modal-body .seg button { padding: 0 12px; }
  .pick { padding: 12px 16px 48px; } .pick-hero { margin: 40px auto 32px; text-align: left; } .pick-hero p { font-size: 18px; font-weight: 400; } .pick-card { padding: 24px 20px; }
  dialog, dialog.wide { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; border-width: 1px 0 0; max-height: calc(100dvh - 24px); } .modal-head { padding: 18px 12px 10px 20px; } .modal-body { padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); } .modal-body .chips { margin: 0 -20px 12px; } form .row.end .btn, .modal-body > .row.end .btn { flex: 1; padding: 0 14px; } form .row.end > .row { width: 100%; }
}
/* barwy ikon według tematu */
:is(.tile-ic, .tile-i, .dotic, .sheet a, .sheet button, .nav-drop a):has(> .ic-cal, > .ic-chat, > .ic-send, > .ic-drop) { --tone: var(--c-blue); }
:is(.tile-ic, .tile-i, .dotic, .sheet a, .nav-drop a):has(> .ic-form, > .ic-user, > .ic-users) { --tone: var(--c-violet); }
:is(.tile-ic, .tile-i, .dotic, .sheet a, .nav-drop a):has(> .ic-food, > .ic-dumb) { --tone: var(--c-orange); }
:is(.tile-ic, .tile-i, .dotic, .sheet a, .nav-drop a):has(> .ic-star, > .ic-ruler, > .ic-clock, > .ic-plan) { --tone: var(--c-yellow); }
:is(.tile-ic, .tile-i, .dotic, .sheet a, .nav-drop a):has(> .ic-alert, > .ic-heart) { --tone: var(--c-red); }
:is(.tile-ic, .tile-i, .dotic, .sheet a, .nav-drop a):has(> .ic-wallet, > .ic-check) { --tone: var(--c-green); }
:is(.tile-ic, .tile-i, .dotic, .sheet a, .nav-drop a):has(> .ic-stats, > .ic-bell) { --tone: var(--c-bronze); }
:is(.sheet button, .nav-drop button, .sheet a, .nav-drop a):has(> .ic-out, > .ic-gear) { --tone: var(--text-2); }
.pick-card:nth-child(1) .tile-i { --tone: var(--c-orange); } .pick-card:nth-child(2) .tile-i { --tone: var(--c-violet); } .pick-card:nth-child(3) .tile-i { --tone: var(--c-blue); } .pick::before { background: radial-gradient(600px 400px at 24% 0, color-mix(in srgb, var(--c-violet) 20%, transparent), transparent 72%), radial-gradient(640px 420px at 70% 0, var(--hero-glow), transparent 72%); }
/* zdjęcie trenera */
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hello { display: flex; align-items: center; gap: 28px; min-width: 0; } .hello > div { min-width: 0; } .hello .spec { margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--text-2); letter-spacing: -.02em; }
.photo { position: relative; width: 136px; height: 136px; flex: none; border-radius: 40px; background: var(--s1); transition: background .15s; } .photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; } .photo.full { padding: 4px; background: conic-gradient(from 210deg, var(--c-green), var(--c-yellow), var(--c-orange), var(--c-violet), var(--c-blue), var(--c-green)); } .photo.full img { border-radius: 36px; border: 4px solid var(--base); } .photo.none { display: grid; place-content: center; justify-items: center; gap: 8px; border: 1.5px dashed var(--line-2); color: var(--text-2); font-size: 14px; line-height: 1.25; text-align: center; letter-spacing: -.02em; } .photo.none:hover { background: var(--s3); color: var(--text); } .photo.none .ic { color: var(--c-violet); } .photo .edit { position: absolute; right: -6px; bottom: -6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); border: 3px solid var(--base); color: var(--text); }
.crop { display: grid; justify-items: center; gap: 18px; } .crop canvas { width: min(300px, 100%); aspect-ratio: 1; border-radius: 88px; background: var(--s2); touch-action: none; cursor: grab; } .crop canvas:active { cursor: grabbing; } .crop label { width: min(300px, 100%); } input[type=range] { appearance: none; -webkit-appearance: none; padding: 0 !important; min-height: 44px !important; border: 0 !important; background: none !important; } input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--s3); } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--accent); border: 0; } input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--s3); } input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 0; }
.mine { display: flex; align-items: center; gap: 14px; }
@media (max-width: 640px) { .hello { gap: 16px; } .photo { width: 92px; height: 92px; border-radius: 28px; } .photo.full { padding: 3px; } .photo.full img { border-radius: 25px; border-width: 3px; } .photo.none { font-size: 12px; gap: 4px; } .hello h1 { font-size: 28px; } .photo .edit { width: 34px; height: 34px; right: -8px; bottom: -8px; } }
.photo.none span { max-width: 84px; }
