:root{color-scheme:light;--ink:#292426;--muted:#817980;--rose:#b97f91;--line:#e8dfe1;--bg:#faf7f6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}header{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px max(24px,calc((100vw - 1080px)/2))}a{color:inherit;text-decoration:none}nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:14px}.logo{font-family:Georgia,serif;font-size:25px;font-weight:bold}main{max-width:1080px;margin:auto;padding:38px 24px 65px}.hero{padding:40px 10px 36px;text-align:center}.hero h1{font:normal clamp(42px,6vw,76px)/1.08 Georgia,serif;margin:12px 0 20px}.hero p{max-width:510px;color:var(--muted);margin:auto}.eyebrow{color:var(--rose);font-size:12px;letter-spacing:.24em;font-weight:750}.panel{background:white;padding:28px;border:1px solid var(--line);border-radius:19px;margin:24px 0;box-shadow:0 10px 30px #382a2a08}h1{font:normal 42px Georgia,serif}h2{font:normal 29px Georgia,serif;margin:0 0 22px}label{display:block;font-size:13px;font-weight:650;color:#51464a;margin:0 0 17px}input,select{width:100%;min-height:46px;border:1px solid #ddd3d7;background:#fff;border-radius:9px;padding:10px 12px;color:var(--ink);font:inherit;font-size:15px;margin-top:7px}input:focus,select:focus{outline:2px solid #c49eac;outline-offset:1px}.twocol,.threecol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.threecol{grid-template-columns:repeat(3,minmax(0,1fr))}button{border:1px solid var(--line);padding:11px 16px;border-radius:9px;background:#fff;cursor:pointer;font-weight:650;color:var(--ink)}button:hover{filter:brightness(.96)}button.primary{background:var(--ink);color:#fff;padding:15px 23px}.note,small,.muted{font-size:13px;color:var(--muted)}.honeypot{position:absolute;left:-9999px}.narrow{max-width:450px;margin:65px auto}.alert{background:#eaf4ed;color:#185932;border-radius:10px;padding:15px;margin:5px 0}.alert.error{background:#fff0f0;color:#9d3434}.booking,.serviceedit,.hoursrow{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-top:1px solid var(--line)}.booking:first-child,.serviceedit:first-child,.hoursrow:first-child{border-top:0}.booking small{display:block}.actions,.sectionhead{display:flex;align-items:center;gap:10px}.actions form,.sectionhead form{display:flex;align-items:center;gap:8px}.sectionhead{justify-content:space-between;flex-wrap:wrap}.sectionhead input{margin:0}.accept{background:#e6f6eb;border-color:#b8dfc1;color:#146f35}.reject{color:#a14a55;background:#fff0f1}.status,.count{font-size:12px;padding:5px 10px;border-radius:20px;background:#f5e8eb}.status.accepted{background:#e4f5ea;color:#246d37}.status.rejected,.status.cancelled{background:#ffe8e9;color:#a03646}.serviceedit{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto}.serviceedit label{margin:0}.hoursrow{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr}.hoursrow input{margin:0}.hoursrow .check input{width:auto;min-height:0}.hoursrow label{margin:0}button.link{border:0;padding:0}footer{text-align:center;color:var(--muted);font-size:12px;padding:30px}@media(max-width:700px){header{align-items:flex-start;flex-direction:column}.twocol,.threecol{grid-template-columns:1fr}.serviceedit,.hoursrow{grid-template-columns:1fr 1fr}.serviceedit label:first-child,.hoursrow strong{grid-column:1/-1}.booking{align-items:flex-start;flex-direction:column}.hero{padding-top:10px}.panel{padding:20px}}

/* v2: kalendarz tylko dla administratora */
.calendar-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap}.calendar-heading h1{margin:5px 0}.calendar-heading p{max-width:650px}.auto-refresh{font-size:12px;color:#456c54}.calendar-panel{overflow:hidden}.calendar-toolbar,.calendar-nav,.calendar-modes{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.calendar-toolbar{justify-content:space-between}.mode,.navbtn{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:7px 13px;border-radius:8px;border:1px solid var(--line);font-size:14px}.mode.active{background:var(--ink);color:white;border-color:var(--ink)}.navbtn{font-size:21px;min-width:39px}.todaybtn{font-size:14px}.date-go{display:flex;gap:8px;align-items:center}.date-go input{margin:0}.calendar-range{font-weight:700;margin:22px 0 12px}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;margin-bottom:18px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.dot{display:inline-block;width:10px;height:10px;border-radius:50%}.pending-dot{background:#f0b34f}.accepted-dot{background:#69aa83}.rejected-dot{background:#c9bdc2}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--line);border-top:1px solid var(--line)}.weekday{text-align:center;background:#f8f2f4;font-size:12px;font-weight:700;padding:12px 2px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.month-cell{min-height:110px;padding:7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}.month-cell.empty{background:#faf8f8}.current-day{background:#fffaf0}.date-number{font-size:13px;font-weight:750;display:inline-flex;min-width:25px;height:25px;align-items:center;justify-content:center}.date-number:hover{background:#f3e4e9;border-radius:50%}.event-chip{background:#fff5db;border-left:4px solid #efb64c;border-radius:5px;padding:5px 6px;margin:4px 0;font-size:12px;overflow:hidden;overflow-wrap:anywhere;line-height:1.3}.event-chip.accepted{background:#e8f6eb;border-left-color:#60a77a}.event-chip.rejected,.event-chip.cancelled{background:#f1eef0;border-left-color:#b9aeb3;opacity:.7}.event-detail{display:block;font-size:11px;opacity:.8;margin-top:3px}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.week-day{min-width:0;border:1px solid var(--line);border-radius:10px;padding:8px;min-height:180px}.week-day-title{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:12px;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:8px}.week-day-title strong{font-size:20px}.no-events{font-size:11px;color:var(--muted);text-align:center}.day-event{display:flex;align-items:center;gap:18px;padding:15px;margin:10px 0;border:1px solid var(--line);border-left:5px solid #efb64c;border-radius:10px}.day-event.accepted{border-left-color:#60a77a}.day-event.rejected,.day-event.cancelled{border-left-color:#b9aeb3;opacity:.7}.event-hour{font-weight:750;font-size:19px;min-width:62px}.event-hour small{display:block}.event-body{flex:1}.event-body small{display:block}.blocks-details{margin-top:18px;padding:15px;background:#faf8f8;border-radius:10px;font-size:13px}@media(max-width:900px){.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.month-wrap{overflow-x:auto}.month-grid{min-width:730px}}@media(max-width:650px){.week-grid{grid-template-columns:1fr}.week-day{min-height:0}.day-event{align-items:flex-start;flex-wrap:wrap}.date-go{width:100%}.date-go input{flex:1}.calendar-heading h1{font-size:34px}}

/* v3: trzy dni i wyszukiwanie rezerwacji */
.three-day-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.three-day-grid .week-day{min-height:240px}.booking-search-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.booking-search-form input{margin:0;flex:1;min-width:220px}.booking-search-form button{min-height:46px}.search-panel h2{margin-bottom:15px}.search-results{margin-top:15px}.search-booking .status{display:inline-block;margin-left:6px}.search-day-link{text-decoration:underline;color:#82526b}@media(max-width:700px){.three-day-grid{grid-template-columns:1fr}.booking-search-form input{min-width:100%}}

/* V4: blokady wyraźnie widoczne we wszystkich widokach kalendarza administratora */
.blocked-dot{background:#5b78a2}.event-chip.blocked{background:#e6eefb;border-left-color:#537ab0;color:#274568;opacity:1}.day-event.blocked{background:#eef4ff;border-left-color:#537ab0;opacity:1}.day-event.blocked .event-body strong{color:#244973}.day-event.blocked .event-body small{overflow-wrap:anywhere}

.event-chip.done,.day-event.done{background:#e3f3ee;border-left:4px solid #28765c}.status.done{background:#d5eee4;color:#176047}.complete{background:#176047;color:white;border:0;border-radius:8px;padding:9px 12px;cursor:pointer}.sms-template{display:grid;gap:10px;max-width:850px;margin-bottom:24px}.sms-template textarea{width:100%;min-height:115px}.sms-table{width:100%;border-collapse:collapse}.sms-table th,.sms-table td{padding:8px;border-bottom:1px solid #ddd;text-align:left;overflow-wrap:anywhere}

/* V7 - audit log */
.audit-scroll{overflow-x:auto;margin:1rem 0}.audit-table{width:100%;border-collapse:collapse;font-size:.9rem}.audit-table td,.audit-table th{padding:.65rem;text-align:left;border-bottom:1px solid #ddd;vertical-align:top}.audit-table th{white-space:nowrap}.audit-ua{max-width:280px;overflow-wrap:anywhere;color:#555}.audit-success{color:#17683e}.audit-failure{color:#a42323}.audit-filters{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;margin:1rem 0}.audit-filters a[aria-current="page"]{font-weight:700;text-decoration:underline}
