:root {
  --navy: #13224A; --navy-2: #1D3470; --navy-soft: #E4EAF7; --bg: #F1F4FA; --paper: #fff; --ink: #111C38; --muted: #5A6788; --line: #D3DBEC;
  --blue: #2A5BD7; --sun: #F5C542; --sun-bg: #FFF4CC; --red: #C2392F; --red-bg: #FBE9E7; --green: #1E8757; --green-bg: #E3F4EC;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif; --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --r: 10px; --r-lg: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 var(--body); color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: .95rem; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .redt { color: var(--red); font-weight: 600; }
.loading, .empty { color: var(--muted); padding: 1.2rem 0; }
.hint { background: var(--navy-soft); border-radius: var(--r); padding: .6rem .8rem; font-size: .9rem; }

/* logo rysowane kreską */
.logo { display: inline-block; width: 2.4rem; line-height: 0; }
.logo svg { width: 100%; height: auto; display: block; }
.logo.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s cubic-bezier(.6, 0, .3, 1) both; animation-delay: calc(var(--i) * .16s); }
@keyframes draw { from { opacity: 0; } 2% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }

/* przyciski i pola */
.btn { border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--r); padding: .55rem .9rem; font-weight: 600; min-height: 2.6rem; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--navy); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; } .btn.primary:hover { background: var(--navy-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger-text, .link.danger-text { color: var(--red); }
.btn.icon { width: 2.6rem; padding: 0; font-size: 1.3rem; line-height: 1; }
.btn.small { min-height: 2.1rem; padding: .3rem .65rem; font-size: .88rem; }
.btn.wide { width: 100%; }
.btn.onnavy { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); } .btn.onnavy:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn:disabled { opacity: .4; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link.strong { color: var(--ink); font-family: var(--display); font-size: 1rem; }
.row { display: flex; align-items: center; gap: .5rem; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; align-items: flex-start; } .row.wrap { flex-wrap: wrap; }
input, select { border: 1.5px solid var(--line); border-radius: var(--r); padding: .55rem .7rem; background: #fff; min-height: 2.6rem; max-width: 100%; }
input:focus, select:focus { border-color: var(--navy); }
.field { display: grid; gap: .3rem; margin: .8rem 0; } .field > span { font-weight: 600; font-size: .9rem; } .field small { color: var(--muted); }
.field.inline { grid-template-columns: 1fr; max-width: 22rem; }
.checks { display: grid; gap: .3rem; max-height: 12rem; overflow: auto; border: 1.5px solid var(--line); border-radius: var(--r); padding: .5rem .7rem; }
.checks input, .paid input { min-height: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.form-err { color: var(--red); font-weight: 600; margin: .5rem 0; }
.seg { display: inline-flex; background: var(--navy-soft); border-radius: var(--r); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .38rem .8rem; border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: var(--navy); color: #fff; } .seg input:focus-visible + span { outline: 3px solid var(--sun); }
.seg.big span { padding: .55rem 1.1rem; font-size: 1rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; background: var(--navy-soft); color: var(--navy); white-space: nowrap; }
.tag.red, .tag.st-przepadla { background: var(--red-bg); color: var(--red); } .tag.sun, .tag.st-odwolana { background: var(--sun-bg); color: #6B4E00; } .tag.green, .tag.st-odbyta { background: var(--green-bg); color: var(--green); }
.paid { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.money { width: 7rem; }

/* logowanie */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-brand { background: var(--navy); color: #fff; padding: clamp(1.5rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.login-brand .logo.big { width: min(22rem, 70%); margin-bottom: 1.5rem; }
.login-brand h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.03em; }
.login-brand p { font-size: 1.15rem; opacity: .85; } .login-brand .tagline { margin-top: 1rem; opacity: .6; max-width: 26ch; }
.login-box { padding: clamp(1.2rem, 5vw, 4rem); align-self: center; max-width: 34rem; width: 100%; }
.login-box form { display: grid; gap: .8rem; max-width: 20rem; }
.acc-group { margin: 1.1rem 0; } .acc-group h3 { color: var(--muted); margin-bottom: .4rem; }
.acc { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: .7rem .9rem; margin-bottom: .4rem; font-weight: 600; transition: border-color .15s, transform .15s; }
.acc:hover { border-color: var(--navy); transform: translateX(4px); }
.pin { font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
@media (max-width: 760px) { .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .login-brand { padding: 1.5rem; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 1rem; } .login-brand .logo.big { width: 5.5rem; margin: 0; } .login-brand h1 { font-size: 2.2rem; } .login-brand p { flex-basis: 100%; } .login-brand .tagline { display: none; } }

/* powłoka */
.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 1.2rem; padding: .55rem clamp(.8rem, 3vw, 2rem); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: .6rem; } .brand strong { font-family: var(--display); font-size: 1.25rem; display: block; line-height: 1; } .brand small { opacity: .7; font-size: .75rem; }
.nav { display: flex; gap: .2rem; flex: 1; }
.nav button { background: none; border: 0; color: #fff; opacity: .75; padding: .55rem .9rem; border-radius: var(--r); font-weight: 600; }
.nav button:hover { opacity: 1; } .nav button.on { opacity: 1; background: #fff; color: var(--navy); }
.top-right { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.who { text-align: right; font-size: .85rem; line-height: 1.25; } .who span { display: block; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .who .link { color: #fff; opacity: .8; font-weight: 500; }
.bell { position: relative; background: none; border: 0; color: #fff; padding: .4rem; border-radius: 50%; line-height: 0; }
.bell b { position: absolute; top: -2px; right: -4px; background: var(--sun); color: var(--navy); font-size: .7rem; line-height: 1; padding: .2rem .35rem; border-radius: 99px; }
.bell.ring { animation: ring .7s ease 2; transform-origin: 50% 0; }
@keyframes ring { 20% { transform: rotate(14deg); } 50% { transform: rotate(-12deg); } 80% { transform: rotate(6deg); } }
#notes { position: absolute; right: clamp(.5rem, 3vw, 2rem); top: calc(100% + .4rem); width: min(24rem, calc(100vw - 1rem)); max-height: 70vh; overflow: auto; background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(19, 34, 74, .28); padding: .9rem; animation: pop .18s ease; }
#notes h3 { margin-bottom: .5rem; }
.note { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: .6rem .2rem; } .note small { display: block; color: var(--muted); } .note.new span { font-weight: 600; } .note.new { border-left: 3px solid var(--sun); padding-left: .6rem; }
#main { padding: clamp(.9rem, 2.5vw, 1.8rem); max-width: 1500px; margin: 0 auto; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; margin-bottom: 1rem; }
.bar h1 { margin-left: .4rem; } .bar > .muted { flex-basis: 100%; }
@media (max-width: 900px) {
  .nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--navy); padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 30; }
  .nav button { flex: 1; padding: .6rem .2rem; font-size: .82rem; }
  #main { padding-bottom: 5.5rem; } .brand small, .who span { display: none; }
}

/* plan tygodnia */
.daystrip { display: none; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; align-items: start; }
.day { background: var(--paper); border-radius: var(--r-lg); padding: .6rem; border: 1.5px solid transparent; min-height: 8rem; }
.day.today { border-color: var(--navy); }
.day > header { display: flex; justify-content: space-between; align-items: flex-start; padding: .2rem .3rem .6rem; }
.day > header b { display: block; font-family: var(--display); text-transform: capitalize; } .day > header small { color: var(--muted); } .day > header .link { font-size: .82rem; }
.tile { display: flex; border-radius: var(--r); background: var(--bg); margin-bottom: .45rem; overflow: hidden; border-left: 4px solid var(--line); transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(19, 34, 74, .12); }
.tile.mine { border-left-color: var(--navy); background: var(--navy-soft); } .tile.ind { border-left-style: dashed; }
.tile-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: .55rem .6rem; display: grid; gap: .1rem; }
.time { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1; } .gname { font-weight: 600; } .meta { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tile .tag { justify-self: start; margin-top: .2rem; }
.tile-add { border: 0; border-left: 1px solid var(--line); background: none; width: 2.2rem; font-size: 1.3rem; color: var(--navy); } .tile-add:hover { background: var(--navy); color: #fff; }
@media (max-width: 1100px) {
  .daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin-bottom: .8rem; }
  .daystrip button { background: var(--paper); border: 1.5px solid transparent; border-radius: var(--r); padding: .4rem 0; display: grid; justify-items: center; gap: .1rem; }
  .daystrip button.today { border-color: var(--navy); } .daystrip button.on { background: var(--navy); color: #fff; }
  .daystrip b { font-family: var(--display); font-size: 1.15rem; line-height: 1; } .daystrip small { font-size: .72rem; opacity: .8; }
  .daystrip i { width: 5px; height: 5px; border-radius: 50%; } .daystrip i.dot { background: currentColor; opacity: .6; }
  .week { grid-template-columns: 1fr; } .day { display: none; } .day.sel { display: block; }
  .tile-main { grid-template-columns: auto 1fr; column-gap: .8rem; align-items: baseline; } .tile-main .meta, .tile-main .tag { grid-column: 2; }
}
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mh { font-weight: 600; color: var(--muted); font-size: .8rem; padding: .2rem .4rem; }
.mcell { background: var(--paper); border: 1.5px solid transparent; border-radius: var(--r); min-height: 6.2rem; padding: .35rem; text-align: left; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.mcell:hover { border-color: var(--navy); } .mcell.out { opacity: .4; } .mcell.today { border-color: var(--navy); } .mcell b { font-family: var(--display); }
.mchip { font-size: .72rem; background: var(--bg); border-radius: 5px; padding: 0 .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mchip i { font-style: normal; font-weight: 600; } .mchip.mine { background: var(--navy-soft); }
@media (max-width: 700px) { .mcell { min-height: 3.6rem; } .mchip { font-size: 0; height: 5px; padding: 0; background: var(--navy); opacity: .5; } }

/* panel boczny i modal */
#drawer-wrap, #modal-wrap { position: fixed; inset: 0; z-index: 50; }
#modal-wrap { z-index: 60; display: grid; place-items: center; padding: 1rem; }
.scrim { position: absolute; inset: 0; background: rgba(13, 22, 48, .5); animation: fade .2s ease; }
#drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(34rem, 100%); background: var(--bg); overflow: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; animation: slide .25s cubic-bezier(.2, .8, .2, 1); }
#modal { position: relative; background: #fff; border-radius: var(--r-lg); padding: 1.3rem; width: min(30rem, 100%); max-height: 92dvh; overflow: auto; animation: pop .18s ease; }
#modal h2 { margin-bottom: .6rem; } #modal .row.end { margin-top: 1.1rem; }
@keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } } @keyframes pop { from { transform: scale(.96); opacity: 0; } }
.dhead { display: flex; justify-content: space-between; gap: 1rem; } .dhead h2 { font-size: 1.6rem; } .dhead p { color: var(--muted); } .dhead p::first-letter, .hero h1::first-letter { text-transform: uppercase; }
.dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .92rem; } .dmeta .sp { flex: 1; }
.plist { display: grid; gap: .4rem; }
.prow { background: #fff; border-radius: var(--r); border: 1.5px solid transparent; }
.prow.open { border-color: var(--navy); } .prow.off { opacity: .65; } .prow.absent .pname b { text-decoration: line-through; }
.prow-head { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem .3rem 0; }
.pname { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: .55rem .7rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; } .pname:disabled { cursor: default; color: inherit; }
.horse { margin-left: auto; font-weight: 600; background: var(--navy); color: #fff; border-radius: 99px; padding: .15rem .7rem; font-size: .9rem; } .horse.none { background: none; color: var(--blue); border: 1.5px dashed var(--line); }
.att { display: flex; gap: 3px; } .att button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: .35rem .55rem; font-size: .82rem; font-weight: 600; }
.att .yes.on { background: var(--green); border-color: var(--green); color: #fff; } .att .no.on { background: var(--red); border-color: var(--red); color: #fff; }
.ppanel { padding: .2rem .7rem .8rem; display: grid; gap: .7rem; animation: fade .2s ease; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .4rem; }
.hchip { display: flex; justify-content: space-between; align-items: center; gap: .4rem; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: .55rem .7rem; font-weight: 600; text-align: left; transition: transform .1s, border-color .1s; }
.hchip:hover { border-color: var(--navy); transform: translateY(-1px); } .hchip i { font-style: normal; color: var(--muted); font-weight: 500; }
.hchip.used { background: var(--sun-bg); border-color: var(--sun); } .hchip.sel { background: var(--navy); border-color: var(--navy); color: #fff; } .hchip.sel i { color: #fff; opacity: .7; } .hchip.clear { border-style: dashed; color: var(--muted); justify-content: center; }
.legend { font-size: .8rem; color: var(--muted); } .sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; border: 1.5px solid var(--line); vertical-align: -1px; margin-left: .5rem; } .sw.used { background: var(--sun-bg); border-color: var(--sun); margin-left: 0; }
.addbox { background: #fff; border-radius: var(--r); padding: .2rem .8rem .8rem; display: grid; gap: .6rem; } .addbox select { width: 100%; }
.dfoot { margin-top: auto; padding-top: .8rem; }

/* tabele */
.scroll { overflow-x: auto; background: var(--paper); border-radius: var(--r-lg); }
.card { background: var(--paper); border-radius: var(--r-lg); padding: 1rem; margin-bottom: 1rem; } .card .scroll { margin-top: .8rem; border-radius: 0; } .card > h2 { margin-bottom: .8rem; }
table.grid { border-collapse: collapse; width: 100%; font-size: .93rem; }
.grid th, .grid td { padding: .5rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid thead th { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; background: var(--paper); }
.grid tbody th { font-weight: 600; white-space: nowrap; } .grid tr:last-child > * { border-bottom: 0; }
.grid .num { text-align: center; font-variant-numeric: tabular-nums; } .grid .acts { text-align: right; white-space: nowrap; }
.grid.click tbody tr { cursor: pointer; } .grid.click tbody tr:hover { background: var(--navy-soft); }
.grid tr.ok { background: #F6FBF8; }
.horses .stick { position: sticky; left: 0; background: var(--paper); z-index: 1; min-width: 8.5rem; } .horses .stick .tag { margin-left: .4rem; }
.horses .dcol { text-align: center; padding: .4rem .25rem; min-width: 3rem; } .horses .dcol small { display: block; font-weight: 500; } .horses .dcol b { color: var(--ink); } .horses .dcol.we small { color: var(--blue); }
.horses .today { box-shadow: inset 2px 0 var(--navy), inset -2px 0 var(--navy); }
.horses td.n { text-align: center; font-weight: 700; font-family: var(--display); padding: .3rem; }
.horses .n1 { background: #E8EEFB; } .horses .n2 { background: #C4D3F5; } .horses .n3 { background: #8FA9EA; } .horses .n4 { background: var(--navy); color: #fff; }
.horses tr.out > :not(.stick):not(:nth-child(2)) { opacity: .35; } .horses tr.out .link.strong { text-decoration: line-through; }
.switch { display: inline-block; cursor: pointer; } .switch input { position: absolute; opacity: 0; }
.switch span { display: block; width: 2.9rem; height: 1.6rem; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: calc(1.6rem - 6px); height: calc(1.6rem - 6px); border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--red); } .switch input:checked + span::after { transform: translateX(1.3rem); } .switch input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

/* część jeźdźca i rodzica */
.role-klient #main { max-width: 46rem; display: grid; gap: 1.2rem; }
.rtabs { justify-self: start; }
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 26px; padding: clamp(1.3rem, 5vw, 2.2rem); display: grid; gap: .45rem; justify-items: start; }
.hero .logo { position: absolute; right: -1.5rem; bottom: -1rem; width: min(17rem, 55%); opacity: .2; pointer-events: none; }
.hero .logo svg { animation: canter 2.6s ease-in-out 1.6s infinite; transform-origin: 50% 90%; }
@keyframes canter { 0%, 100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-2deg) translateY(-5px); } 60% { transform: rotate(1.5deg) translateY(1px); } }
.hello { opacity: .75; } .hero-label { font-weight: 600; color: var(--sun); margin-top: .3rem; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 3rem); letter-spacing: -.03em; }
.hero-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; } .hero-time b { font-family: var(--display); font-size: 1.9rem; }
.hero-horse { background: rgba(255, 255, 255, .12); border-radius: 99px; padding: .35rem 1rem; margin: .3rem 0 .6rem; } .hero-horse.has { background: #fff; color: var(--navy); } .hero-horse b { font-family: var(--display); font-size: 1.1rem; }
.hero small { opacity: .7; position: relative; } .hero > * { position: relative; } .hero > .logo { position: absolute; }
.stats h2, .role-klient section > h2 { margin-bottom: .6rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .6rem; }
.stat { background: var(--paper); border-radius: var(--r-lg); padding: .7rem .5rem; text-align: center; } .stat b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1.1; } .stat span { font-size: .8rem; color: var(--muted); }
.stat.sun { background: var(--sun-bg); } .stat.bad b { color: var(--red); }
.cards { display: grid; gap: .5rem; }
.ride { display: flex; align-items: center; gap: .9rem; background: var(--paper); border-radius: var(--r-lg); padding: .7rem .9rem; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 55ms); transition: transform .15s; }
.ride:hover { transform: translateX(4px); } .ride.off { opacity: .6; } .ride.free { border: 1.5px dashed var(--navy); }
.ride.leaving { animation: leave .38s ease forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } } @keyframes leave { to { opacity: 0; transform: translateX(60px) rotate(2deg); } }
.cal { background: var(--navy); color: #fff; border-radius: 12px; width: 3.4rem; padding: .3rem 0; text-align: center; flex: none; line-height: 1.1; } .cal b { display: block; font-family: var(--display); font-size: 1.4rem; } .cal small { font-size: .7rem; opacity: .8; }
.ride-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: center; } .ride-body .muted { flex-basis: 100%; font-size: .9rem; }
.pay-right { text-align: right; display: grid; gap: .2rem; justify-items: end; } .pay-right b { font-family: var(--display); font-size: 1.2rem; }
.emptybox { background: var(--paper); border-radius: var(--r-lg); padding: 2rem 1rem; text-align: center; display: grid; gap: .3rem; justify-items: center; } .emptybox .logo { width: 6rem; color: var(--line); }
.rosette { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; }
.rosette .logo { width: 11rem; padding: 2.2rem; background: var(--navy); color: #fff; border-radius: 50%; box-shadow: 0 0 0 10px var(--sun); animation: rosette 1.6s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes rosette { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 30% { transform: scale(1) rotate(0); opacity: 1; } 75% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

#toasts { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); z-index: 90; display: grid; gap: .4rem; width: min(26rem, calc(100vw - 2rem)); }
.toast { background: var(--navy); color: #fff; border-radius: var(--r); padding: .7rem 1rem; box-shadow: 0 10px 30px rgba(19, 34, 74, .3); animation: rise .3s ease both; } .toast.bad { background: var(--red); }

/* wydruk dnia */
#print { display: none; }
@media print {
  body { background: #fff; } body.printing > *:not(#print) { display: none !important; }
  body.printing #print { display: block; font-size: 12pt; color: #000; }
  .p-head { display: flex; align-items: center; gap: 12pt; margin-bottom: 14pt; } .p-head .logo { width: 44pt; } .p-head h1 { font-size: 16pt; text-transform: none; }
  #print table { width: 100%; border-collapse: collapse; } #print th, #print td { border: 1pt solid #000; padding: 5pt 8pt; text-align: left; } #print th { background: #eee; }
  #print tbody { break-inside: avoid; } .p-time { width: 26%; vertical-align: top; } .p-time b { font-size: 15pt; } .p-time small { display: block; }
  #print td:last-child { width: 34%; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .logo.draw path { stroke-dashoffset: 0; } }

/* poprawki wąskich ekranów */
.field.inline { max-width: min(22rem, 100%); min-width: 0; }
.card > .paid { white-space: normal; align-items: flex-start; margin-bottom: .6rem; }
.card > .paid input { flex: none; margin-top: .2rem; }
.card .row.between { flex-wrap: wrap; gap: .6rem; }

/* logowanie: linki, rejestracja, zaproszenie */
.login-links { display: grid; gap: .5rem; margin-top: 1.2rem; max-width: 20rem; font-size: .95rem; }
.login-links a, .consent a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.login-box .pubform { max-width: 24rem; gap: 0; }
.pubform .field { margin: .45rem 0; } .pubform .btn { margin-top: .5rem; }
.pubform input[readonly] { background: var(--navy-soft); color: var(--muted); }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin: .7rem 0 .2rem; font-size: .9rem; cursor: pointer; }
.consent input { min-height: 0; width: 1.15rem; height: 1.15rem; flex: none; margin-top: .15rem; accent-color: var(--navy); }
#modal input[readonly] { width: 100%; font-size: .85rem; }
.card > .scroll + .scroll, .card > .empty + .scroll { margin-top: .8rem; }

.minor-hint { display: block; margin: 0 0 .4rem 1.75rem; font-size: .85rem; color: var(--muted); } .minor-hint a { color: var(--blue); font-weight: 600; }

/* nagłówek stron dokumentów: tytuł z lewej, logo stadniny z prawej */
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.doc-title { min-width: 0; }
.doc-brand { display: grid; justify-items: center; gap: .35rem; flex: none; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.15; color: #fff; }
.doc-brand .logo { width: clamp(4.5rem, 12vw, 7.5rem); }
@media (max-width: 560px) { .doc-top { align-items: flex-start; } .doc-brand { font-size: .78rem; max-width: 5.5rem; } .doc-brand .logo { width: 3.6rem; } }

/* rozliczenia: suwak opłacenia (u kadry aktywny, u jeźdźca tylko do odczytu) */
.payswitch { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; white-space: nowrap; }
.payswitch b { font-weight: 600; }
.switch.ok input:checked + span { background: var(--green); }
.payswitch.readonly { cursor: default; } .payswitch.readonly .switch { cursor: default; }
.switch input:disabled + span { opacity: 1; }

.checks-wrap { display: grid; gap: .4rem; } .checks label[hidden] { display: none; }
.checks-empty { margin: 0; padding: .55rem .7rem; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--muted); font-size: .92rem; }

/* logowanie: podpowiedź w polu hasła bez rozstrzelenia liter, linki wyrównane do lewej */
.pin::placeholder { letter-spacing: normal; font-size: 1.05rem; }
.login-links { justify-items: start; } .login-links .link { text-align: left; }

/* rezerwacja jazd indywidualnych */
.bdays { display: grid; gap: .5rem; }
.bday { display: flex; align-items: center; gap: .9rem; background: var(--paper); border-radius: var(--r-lg); padding: .7rem .9rem; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }
.bday-body { display: grid; gap: .45rem; min-width: 0; flex: 1; } .bday-body > b::first-letter { text-transform: uppercase; }
.bhours { display: flex; flex-wrap: wrap; gap: .4rem; }
.bhour { border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 99px; padding: .45rem 1rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; transition: background .15s, color .15s, transform .1s; }
.bhour:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.price-line { background: var(--navy-soft); border-radius: var(--r); padding: .6rem .8rem; margin: .4rem 0; } .price-line b { font-family: var(--display); font-size: 1.15rem; }
.kbox { background: var(--paper); border-radius: var(--r-lg); padding: .9rem 1rem; border: 1.5px dashed var(--line); }
.kbox.sent { border-style: solid; border-color: var(--sun); background: var(--sun-bg); } .kbox p { margin-top: .3rem; font-size: .93rem; }
.kbox .consent { margin: 0; font-size: .95rem; }
