.workspace{padding-block:clamp(28px,5vw,75px);min-height:72vh}
.work-heading,.row-form,.live-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.work-heading h1{font-size:clamp(3rem,6vw,5.6rem);margin:8px 0}.work-heading .label{color:var(--forest)}
.work-heading form{display:flex;gap:12px;align-items:center}.work-heading button,.work-links a{font:600 1rem Work,sans-serif}
.work-links{position:static;display:flex;flex-wrap:wrap;align-items:center;width:auto;gap:10px 20px;background:transparent;margin:18px 0;padding:12px 0;border-block:1px solid var(--rule)}
.work-links a,.live-row,.workspace a.under,.auth-main a{color:var(--forest);text-underline-offset:4px}
.live-grid,.live-feature{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px}
.live-card{background:#fff;border:1px solid var(--rule);padding:clamp(18px,2.5vw,32px);margin:12px 0;min-width:0;overflow-wrap:anywhere}
.live-card h2{font:700 clamp(2rem,3vw,2.7rem)/1.08 Alumni,sans-serif;margin:0 0 13px}
.live-card h3{margin:15px 0 7px}.live-card .label{color:var(--forest);margin-bottom:9px}
.live-card summary{cursor:pointer;font-weight:650;color:var(--forest);padding:13px 0}
.live-card details{border-top:1px solid var(--rule);margin:8px 0}
.live-row{padding:11px 0;border-bottom:1px solid var(--rule)}
.live-feature>img{width:100%;height:100%;max-height:500px;object-fit:cover}.live-card.product img{width:100%;height:150px;object-fit:contain;background:var(--paper)}
.live-card form{display:grid;gap:10px;margin:13px 0;max-width:650px}.live-card form.row-form{display:flex}
.live-card label,.auth-form label{display:grid;gap:4px;font-weight:600}
.live-card label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
.live-card :is(select,textarea,input:not([type=checkbox])),.auth-form :is(input,textarea){font:inherit;background:#fff;border:1px solid #83968a;padding:9px 10px;width:100%;min-width:0}
.live-card button:not(.btn){background:var(--forest);color:white;font:600 .95rem Work,sans-serif;padding:10px 15px;border:0;cursor:pointer}
.live-card button{justify-self:start}.live-card button:disabled{opacity:.55;cursor:default}
.alerts p{border-left:4px solid var(--forest);background:#e2ebe4;padding:12px;margin:12px 0}
.auth-form ul{padding-left:1.2em}.auth-form p{margin:8px 0}.errorlist{color:#923d26}
.workspace [id]{scroll-margin:90px}

:root { --gallery-active: #a9cfb6; }
.visit-layout { display:grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); gap:clamp(18px,4vw,64px); }
.month-tools,.month-actions,.visit-key,.visit-key span { display:flex; align-items:center; }
.month-tools { justify-content:space-between; gap:8px; margin-bottom:8px; }
.month-tools h3,.visit-agenda h3 { margin:0; font:700 clamp(1.65rem,3vw,2.15rem)/1.15 Alumni,sans-serif; }
.month-actions { gap:4px; }
.month-actions a { display:grid; place-items:center; min-width:42px; min-height:44px; padding:0 9px; color:var(--forest); font-weight:600; }
.month-actions a[aria-label] { font-size:1.7rem; }
.month-days,.weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.weekdays { grid-column:1/-1; text-align:center; background:var(--paper); color:var(--muted); font-size:.83rem; padding:7px 0; }
.visit-day,.visit-out { display:grid; place-content:center; text-align:center; min-height:48px; line-height:1.1; border-bottom:1px solid var(--rule); position:relative; }
.visit-out { color:#72786f; background:#f5f6f2; font-size:.85rem; }
.visit-day { padding-bottom:6px; font-weight:600; }
.visit-day.today { box-shadow:inset 0 0 0 2px var(--forest); }
.visit-day.selected { background:var(--forest); color:white; }
.visit-day:not(.selected):hover,.month-actions a:hover { background:#e7eee8; }
.visit-day:focus-visible { z-index:1; outline-offset:-3px; }
.visit-marks { position:absolute; bottom:5px; left:0; right:0; display:flex; justify-content:center; gap:4px; }
.visit-marks i,.visit-key i { display:inline-block; width:7px; height:7px; }
.visit-calendar .training { background:#285946; border-radius:50%; }
.visit-calendar .boarding { background:#96653b; }
.visit-day.selected .training { background:white; }
.visit-day.selected .boarding { background:#f2c691; }
.visit-key { flex-wrap:wrap; gap:18px; margin-top:12px; }
.visit-key span { gap:7px; font-size:.88rem; }
.visit-agenda { align-self:start; min-width:0; padding:clamp(16px,2vw,28px); background:#edf2ec; border-top:3px solid var(--forest); }
.visit-agenda>p:not(.label) { margin:10px 0; }
.visit-entry { display:grid; margin-top:12px; border-top:1px solid #bfccbf; padding:12px 24px 0 0; position:relative; }
.visit-entry::after { content:'›'; position:absolute; right:3px; top:50%; font-size:1.35rem; }
.visit-entry:hover strong { text-decoration:underline; }
.visit-entry small { font-weight:600; color:var(--forest); }
.visit-agenda form.jump-day { max-width:22rem; border-top:1px solid var(--rule); padding-top:12px; margin:18px 0 0; }
.jump-day div { display:flex; }
body:has(.lightbox[open]) { overflow:hidden; }
.gallery { grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:clamp(142px,16vw,248px); }
.gallery .photo-button { position:relative; overflow:hidden; height:100%; }
.gallery .photo-button:first-child { grid-column:span 2; }
.gallery img { width:100%; height:100%; object-fit:cover; transition:transform .22s ease; }
.gallery .photo-button:is(:hover,:focus-visible) img { transform:scale(1.025); }
.gallery .photo-button::after { content:'+'; position:absolute; right:8px; bottom:8px; display:grid; place-items:center; background:#17291ed6; color:white; width:27px; height:27px; border:1px solid #ffffff72; border-radius:50%; font:400 20px/1 Work,sans-serif; }
.lightbox { width:min(94vw,1080px); max-height:96dvh; padding:clamp(10px,2vw,20px); background:#19221d; }
.lightbox figure { display:grid; gap:7px; }
.lightbox figure img { width:100%; max-width:100%; height:min(59dvh,690px); max-height:none; object-fit:contain; background:#111914; }
.lightbox figcaption { margin:0; }
.lightbox button { min-height:44px; }
.lightbox-nav { gap:8px; }
.lightbox-nav[hidden] { display:none; }
.lightbox-nav>button { flex:none; width:44px; padding:0; font-size:2rem; }
.album-strip { display:flex; position:relative; gap:6px; max-width:100%; min-width:0; overflow-x:auto; }
.album-strip button { padding:2px; border:2px solid transparent; flex:0 0 54px; }
.album-strip button[aria-pressed=true] { border-color:var(--gallery-active); }
.album-strip img { height:34px; width:100%; object-fit:cover; }
.album-strip button:focus-visible { outline-offset:-3px; }
@media(max-width:760px) {
  .visit-layout { grid-template-columns:1fr; }
  .gallery { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:clamp(105px,28vw,205px); gap:8px; }
  .gallery .photo-button:first-child { grid-row:span 2; }
  .lightbox { width:96vw; max-width:96vw; }
  .lightbox figure img { height:52dvh; }
}
@media(max-width:480px) {
  .visit-calendar { padding:14px; }
  .month-actions a { min-width:38px; }
}
@media(max-height:510px) {
  .lightbox figure img { height:41dvh; }
}

.shop-catalog .product { display:flex; flex-direction:column; }
.shop-catalog .product-photo { margin-bottom:14px; }
.shop-catalog .product form { margin-top:auto; }
.product-variants { border:0; padding:0; margin:0; min-width:0; }
.product-variants legend { padding:0; font-weight:600; }
.product-variants label { display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:49px; padding:8px; margin:4px 0; border:1px solid var(--rule); cursor:pointer; }
.product-variants label:has(:checked) { background:#edf2ec; border-color:var(--forest); }
.product-variants label:has(:disabled) { color:var(--muted); cursor:default; }
.live-card .product-variants input[type=radio] { width:16px; height:16px; margin:0; accent-color:var(--forest); }
.product-variants small { display:block; color:var(--muted); font-weight:400; }

.gate { background:var(--paper); }
.gate-bar,.gate-main { width:min(94%,640px); margin:auto; }
.gate-bar,.gate-bar a,.gate-term,.gate-row { display:flex; align-items:center; gap:12px; }
.gate-bar { justify-content:space-between; padding:12px 0; }
.gate-bar a:first-child { font:700 1.65rem Alumni,sans-serif; }
.gate-bar img { width:42px; height:42px; border-radius:50%; }
.gate-main { padding:26px 0 60px; }
.gate-main h1 { font:700 clamp(2.5rem,7vw,4rem)/1.05 Alumni,sans-serif; margin:10px 0; }
.gate-main>.label {color:var(--forest);margin-bottom:12px}
.gate-scan { background:#203c30; color:white; margin:16px 0; padding:18px; }
.gate-scan h2 { font:700 2rem Alumni,sans-serif; margin-bottom:12px; }
.gate-scan video { width:100%; max-height:44vh; margin-top:10px; object-fit:contain; background:#111; }
.gate-row,.gate-term { justify-content:space-between; border-bottom:1px solid var(--rule); padding:12px 0; flex-wrap:wrap; }
.gate-term span:nth-child(2) { flex:1; }
.gate-term time { font:700 1.7rem Alumni,sans-serif; color:var(--forest); }
.gate-row small,.gate-term small { display:block; }
.gate-row[hidden] { display:none; }
.gate-row form { margin:0; }
.gate-feedback,.promo-label { padding:12px 16px; border-left:4px solid var(--forest); background:#e1ece1; }
.member-card { max-width:420px; margin-inline:auto; text-align:center; border-top:5px solid var(--forest); }
.member-card img { width:min(100%,280px); height:auto; margin:12px auto; image-rendering:pixelated; }
.bill-builder {display:grid;grid-template-columns:minmax(250px,.75fr) minmax(0,1.25fr);gap:20px;align-items:start}
.bill-preview {position:sticky;top:10px;margin-top:12px}
.invoice-sheet {margin:12px auto;max-width:850px;background:white;padding:clamp(14px,3vw,38px);border:1px solid var(--rule);overflow-wrap:anywhere}
.bill-top {display:flex;align-items:center;gap:16px;padding:16px;background:#285946;color:white}
.tone-ink .bill-top {background:#202622}.tone-paper .bill-top {background:#fafaf7;color:var(--ink);border-bottom:2px solid var(--forest)}
.bill-top img {width:48px;height:48px;border-radius:50%}.bill-top h2 {font:700 2.4rem Alumni,sans-serif}
.bill-parties {display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.bill-parties.stack {grid-template-columns:1fr}
.bill-parties h3 {font-size:.84rem;color:#41604d}.bill-table-wrap {overflow-x:auto}.invoice-sheet table {width:100%;border-collapse:collapse;margin:18px 0;font-size:.9rem}.invoice-sheet th,.invoice-sheet td {text-align:right;padding:6px 3px;border-bottom:1px solid var(--rule)}.invoice-sheet :is(th,td):first-child{text-align:left}.invoice-sheet td small{display:block}.bill-total{text-align:right;margin-top:14px}
@media(max-width:800px){.bill-builder{grid-template-columns:1fr}.bill-preview{position:static}.invoice-sheet{font-size:.92rem}}
@media print {body:has(.bill-print) :is(header,footer,.work-heading,.work-links,.bill-print,.bill-internal,.alerts,.skip){display:none!important}.workspace:has(.bill-print){width:100%;padding:0}.invoice-sheet{border:0;padding:0;max-width:none}.bill-top{print-color-adjust:exact}}
.advance-amount {font:700 2.6rem Alumni,sans-serif;color:var(--forest);margin:12px 0}
.live-card button.advance-option {background:white;color:var(--forest);border:1px solid var(--forest)}
.simulated-doc {font-weight:600;color:var(--forest);margin:12px 0}
.payment-breakdown { margin:16px 0; padding:8px 14px; background:#edf2ec; }
.payment-breakdown div { display:flex; justify-content:space-between; gap:12px; padding:7px 0; }
.payment-breakdown dd { margin:0; font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
.storno-note { margin:1rem 0; padding:.85rem 1rem; border-left:3px solid var(--forest); background:#edf2ec }
.storno-note p { margin:.35rem 0 0 }
#storno-form fieldset { border:0; padding:0; margin:1rem 0 }
#storno-form fieldset label { display:flex; align-items:baseline; gap:.55rem; padding:.4rem 0 }
#storno-form input[type=radio] { flex:none; width:auto }
.move-dates { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:1rem; margin:1rem 0 }
.move-dates dt { margin-bottom:.25rem }
.move-dates dd { margin:0; font-weight:600 }

.care-instructions dd { margin:.25rem 0 1rem; overflow-wrap:anywhere }

.homework-status { margin:.8rem 0; overflow-wrap:anywhere }
.homework-status .label { margin:.6rem 0 .15rem }

.homework-reply { margin: .8rem 0; padding: .8rem 1rem; border-left: 3px solid var(--forest); background: #edf2ec; overflow-wrap: anywhere; scroll-margin-top: 5rem }
.homework-reply:target { outline: 2px solid var(--forest); outline-offset: 2px }
.homework-reply p { margin: .35rem 0 }

.homework-owner-reply { background: #f6f7f4; border-left-color: #808d85 }
.homework-response { margin-top: 1rem }
.homework-compose { margin-top: .65rem }
#zpravy-z-deniku { scroll-margin-top: 5rem }

.homework-thread { margin: 1rem 0 }
.unread-badge { display: inline-block; margin-inline-start: .3em; padding: .1em .45em; border-radius: .25rem; background: #e1ede4; color: #234735; font-size: .84rem; font-weight: 700 }
.homework-read-form[hidden] { display: none }

.account-group { margin: 2rem 0 }
.account-group > h2 { margin-bottom: .75rem }
.action-needed { border-left: 3px solid var(--forest); padding-left: .75rem }
.course-filter { align-items: end }
@media (min-width: 650px) { .live-card form.course-filter { grid-template-columns: 1fr auto } }
.report-grid .live-card { display: grid; gap: .2rem; align-content: start; color: var(--forest); text-decoration: none }
.report-grid .live-card strong { font-size: 2rem }
.report-grid .live-card:hover { border-color: var(--forest) }
.planned-terms li { margin: .6rem 0 }
.planned-terms span { display: block; color: #793803 }
.snippet-options { margin-block: .25rem .75rem }
.staff-tools { margin-bottom: 1rem }

.booking-nav { margin-block: .6rem 1rem }
.booking-nav .work-links { margin-block: .6rem }
.booking-filter { color: var(--forest) }
.booking-filter summary { cursor: pointer; font-weight: 650; padding: .65rem 0 }
.booking-filter form { display: grid; gap: .6rem; padding: .45rem 0 }
.booking-filter select { width: 100%; font: inherit; padding: .6rem; border: 1px solid var(--rule) }
.booking-filter button { justify-self: start }
.session-card .btn { margin-block: .3rem }
.session-card form .btn { margin-block: 0 }
.session-card .term-rules summary { padding-block: .45rem }
@media (max-width: 640px) {
  .workspace .work-heading { align-items: flex-start; gap: .5rem }
  .workspace .work-heading h1 { font-size: clamp(2.6rem, 9vw, 3.5rem) }
  .boarding-feature > img { order: 1; max-height: 190px }
  .gate-main [id] { scroll-margin-top: 4.5rem }
}
.gate-row .gate-note-link { display: inline-block; margin-top: .55rem }
.gate-scan a.under { display: inline-block; padding: .65rem .2rem }
@media (max-width: 640px) {
  .workspace-shortcuts .workspace-section-link { display: none }
  .workspace-shortcuts { margin-block: .6rem }
}

.account-nav .account-help {margin-left:auto;padding:.45rem .8rem;border:1px solid var(--forest);color:var(--forest)}
