:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color:#213547;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--court-count: 4}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;min-height:100vh}#root{min-height:100vh}h1{font-size:2.5em;line-height:1.1;margin-bottom:1rem}h2{font-size:2em;margin-bottom:1rem;color:#f93}h3{font-size:1.5em;margin-bottom:.5rem}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#f9f9f9;color:#213547;cursor:pointer;transition:border-color .25s}button:hover{border-color:#f93}button:disabled{opacity:.35;cursor:not-allowed;pointer-events:none}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}button.primary{background-color:#f93;color:#fff}button.primary:hover{background-color:#ffb266}button.danger{background-color:#d32f2f;color:#fff}button.danger:hover{background-color:#b71c1c}a.button-link{display:inline-block;border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#f93;color:#fff;text-decoration:none;cursor:pointer;transition:border-color .25s;box-sizing:border-box}a.button-link:hover{background-color:#ffb266}input,select{padding:.6em;border-radius:4px;border:1px solid #ff9933;background-color:#f9f9f9;color:#213547;font-size:1em;font-family:inherit}input:focus,select:focus{outline:2px solid #ff9933}table{width:100%;border-collapse:collapse;margin-top:1rem}th,td{text-align:left;padding:.75rem;border-bottom:1px solid #e0e0e0}th{background-color:#f5f5f5;font-weight:600}tr:hover{background-color:#f9f9f9}.form-group{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.form-group label{font-weight:500}.form-actions{display:flex;gap:1rem;margin-top:1rem}.card{background-color:#f5f5f5;border-radius:8px;padding:1.5rem;margin-bottom:1rem}.loading{text-align:center;padding:2rem;color:#888}.qr-code{display:inline-block;background:#fff;line-height:0}.error{background-color:#d32f2f;color:#fff;padding:1rem;border-radius:4px;margin-bottom:1rem}.success{background-color:#388e3c;color:#fff;padding:1rem;border-radius:4px;margin-bottom:1rem}.notice{background-color:#fff3cd;color:#664d03;border:1px solid #ffe69c;padding:1rem;border-radius:4px;margin-bottom:1.5rem}.legal-page{max-width:800px}.legal-page h2{margin-top:2rem;margin-bottom:.5rem}.legal-page h2:first-of-type{margin-top:0}.legal-page p,.legal-page li{line-height:1.6}.legal-page .placeholder{background-color:#fff3cd;padding:0 .25rem;border-radius:3px}.layout{display:flex;flex-direction:column;height:100vh}.layout-body{display:flex;flex:1;overflow:hidden}.sidebar{width:220px;height:100%;background-color:#f5f5f5;border-right:1px solid #e0e0e0;display:flex;flex-direction:column;flex-shrink:0}.sidebar-brand{padding:1.5rem;border-bottom:1px solid #e0e0e0}.sidebar-brand-name{font-size:1.2em;font-weight:700;color:#f93}.sidebar-brand-subtitle{font-size:.75em;color:#888;margin-top:.25rem}.sidebar-nav{flex:1;padding-top:1rem;display:flex;flex-direction:column;overflow-y:auto}.nav-link{display:block;padding:.75rem 1.5rem;color:#888;text-decoration:none;font-weight:500;border-left:3px solid transparent;transition:color .2s,background-color .2s}.nav-link:hover{color:#213547;background-color:#ebebeb}.nav-link.active{color:#213547;border-left-color:#f93;background-color:#ffe5cc}.cart-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;min-height:44px;margin-bottom:.75rem}.cart-bar-legend{display:flex;align-items:center;flex-wrap:wrap;gap:1.2rem;font-size:.85em}.cart-bar-button{display:inline-flex;background:none;border:none;cursor:pointer;font:inherit;align-items:center;gap:.6rem;min-height:44px;min-width:44px;margin-left:auto;padding:0 .75rem;border-radius:8px;color:#f93;text-decoration:none;font-weight:600;transition:background-color .2s}.cart-bar-button:hover{background-color:#ffe5cc;color:#f93}.cart-modal-list{max-height:50vh;overflow-y:auto}.cart-modal-item{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem 1rem;background-color:#f5f5f5;border-radius:8px;margin-bottom:.75rem;font-size:.9em}.cart-modal-when{font-weight:600}.cart-modal-item-side{display:flex;align-items:center;gap:.75rem;white-space:nowrap}.cart-modal-remove{min-width:32px;min-height:32px;padding:0;font-size:1.2em;line-height:1}.payment-result{max-width:560px;margin:0 auto}.payment-result-total{font-weight:700;background-color:#ffe5cc}.payment-result .form-actions{flex-wrap:wrap}.form-actions-center{justify-content:center}.cart-icon{position:relative;display:inline-flex}.cart-badge{position:absolute;top:-6px;right:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background-color:#f93;color:#fff;font-size:.7em;font-weight:700;line-height:16px;text-align:center;box-sizing:border-box}.cart-badge.pop{animation:cart-pop .3s ease}@keyframes cart-pop{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.cart-bar-countdown{font-weight:600}.cart-bar-countdown.urgent{color:#dc2626;animation:cart-pulse 1s ease-in-out infinite}@keyframes cart-pulse{0%,to{opacity:1}50%{opacity:.55}}.sidebar-footer{padding:1rem;border-top:1px solid #e0e0e0;background-color:#ffe5cc}.sidebar-user{font-size:.85em;color:#213547;margin-bottom:.75rem}.layout-main{flex:1;padding:2rem;overflow-y:auto}.layout-footer{display:flex;align-items:center;gap:1rem;padding:.6rem 1.5rem;background-color:#213547;color:#fff;font-size:.8em;flex-shrink:0}.footer-logo{width:32px;height:32px;border-radius:6px;flex-shrink:0}.footer-info{display:flex;flex-direction:column;gap:2px;flex:1}.footer-name{font-weight:700;color:#f93}.footer-links{display:flex;gap:1rem;flex-shrink:0}.footer-link{color:#ddd;text-decoration:underline;white-space:nowrap}.footer-link:hover{color:#fff}.footer-copy{margin-left:auto;color:#aaa;white-space:nowrap}.footer-link-button{background:none;border:none;padding:0;font-size:inherit;font-weight:inherit;border-radius:0}.consent-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:1000;max-width:720px;margin:0 auto;display:flex;align-items:center;gap:1rem;padding:1rem 1.25rem;background-color:#fff;color:#213547;border:1px solid #ddd;border-radius:8px;box-shadow:0 4px 16px #00000026;font-size:.9em}.consent-text{display:flex;flex-direction:column;gap:.25rem;flex:1}.consent-actions{display:flex;gap:.5rem;flex-shrink:0}@media (max-width: 600px){.consent-banner{flex-direction:column;align-items:stretch}.consent-actions button{flex:1}}.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{min-width:600px}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.controls{display:flex;gap:.5rem;align-items:center}.text-muted{color:#888}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:1rem;background-color:#0006}.modal{background-color:#fff;border-radius:12px;padding:2rem;max-width:420px;width:100%;box-shadow:0 20px 60px #00000026;border:1px solid #e0e0e0}.modal h3{margin-bottom:1.5rem}.modal.modal-sectioned{max-height:calc(100vh - 2rem);overflow-y:auto}.modal-section+.modal-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e0e0e0}.modal-section h4{margin:0 0 .75rem;font-size:.85em;text-transform:uppercase;letter-spacing:.05em;color:#888}.modal-detail{display:flex;justify-content:space-between;padding:.75rem 1rem;background-color:#f5f5f5;border-radius:8px;margin-bottom:.75rem;font-size:.9em}.modal-detail span:first-child{color:#888}.modal-detail span:last-child{font-weight:600}.calendar-grid{display:grid;border:1px solid #e0e0e0;margin-top:1rem}.calendar-cell{height:30px;border:.5px solid #e0e0e0;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease;padding:0 .25rem;font-size:.85em}.calendar-cell.header{font-weight:600;font-size:1em}.calendar-cell:hover{background-color:#f1f5f9}.calendar-cell.available{cursor:pointer}.calendar-cell.booked{position:relative;background-color:#fca5a5;color:#b91c1c;cursor:not-allowed}.calendar-cell.booked.own{background-color:#93c5fd;color:#1d4ed8;cursor:pointer}.calendar-cell.booked.unpaid,.calendar-cell.booked.own.unpaid{background-color:#e5e7eb;color:#4b5563}.calendar-cell.booked.accepting,.calendar-cell.booked.own.accepting{background-color:#fef3c7;color:#b45309}.calendar-cell.selecting{background-color:#dbeafe;border:1px solid #3b82f6}.calendar-cell.selected{background-color:#dcfce7;border:2px solid #ff9933}.calendar-grid-weekly{display:grid;border:1px solid #e0e0e0;margin-top:1rem}.calendar-cell.today{background-color:#fff7ed}.calendar-cell.header.today{background-color:#ffedd5;color:#ea580c}.weekly-day-header{flex-direction:column;height:auto;padding:.35rem .25rem;gap:2px;cursor:pointer}.weekly-time-header{height:auto;font-weight:600;font-size:1em}.weekly-day-date{font-size:.75em;font-weight:400;color:#888}.calendar-cell.header.today .weekly-day-date{color:#ea580c}.calendar-grid-weekly .calendar-cell{min-width:0;overflow:hidden}.calendar-grid-weekly .calendar-cell.reservation-start{overflow:visible;z-index:2}.weekly-court-cell{position:relative}.weekly-court-cell:not(.day-start){border-left:none}.weekly-court-cell:not(.day-end){border-right:none}.calendar-cell.hour-start{border-bottom:none}.calendar-cell.half-hour{border-top:none}.calendar-cell.booked:not(.reservation-start){border-top:none}.calendar-cell.booked:not(.reservation-end){border-bottom:none}.weekly-court-header{font-size:.75em;font-weight:500;color:#666;justify-content:center;padding:2px}.weekly-selecting:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:#3b82f64d;pointer-events:none;z-index:0}.booking-block{position:absolute;top:0;left:1px;right:1px;background-color:#fca5a5;pointer-events:none;z-index:1;border:2px solid #ef4444;border-radius:4px;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:.8em;color:#b91c1c;padding:0 4px;text-align:center}.booking-block.own{background-color:#93c5fd;border-color:#3b82f6;color:#1d4ed8}.booking-block.unpaid{background-color:#e5e7eb;color:#4b5563}.booking-block.own.unpaid{background-color:#e5e7eb;border-color:#3b82f6;color:#4b5563}.booking-block.accepting{background-color:#fef3c7;color:#b45309}.booking-block.own.accepting{background-color:#fef3c7;border-color:#3b82f6;color:#b45309}.calendar-cell.rate-cell{grid-row:span 2;height:auto;pointer-events:none;color:#000;white-space:nowrap}.calendar-cell.rate-cell.vertical{writing-mode:vertical-rl;padding:.25rem 0}.fee-brushes{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.fee-brush{display:inline-flex;align-items:center;gap:.4rem}.fee-brush.active{outline:2px solid #3b82f6;outline-offset:1px}.fee-swatch{display:inline-block;width:14px;height:14px;border:1px solid #e0e0e0;flex-shrink:0}.fee-grid-wrapper{overflow-x:auto;margin-bottom:1rem}.fee-grid{display:grid;grid-template-columns:60px repeat(7,minmax(48px,1fr));gap:1px;background:#e0e0e0;border:1px solid #e0e0e0;min-width:400px;touch-action:none;-webkit-user-select:none;user-select:none}.fee-grid>div{background:#fff}.fee-grid-header,.fee-grid-hour{padding:.25rem .4rem;font-size:.85em;font-weight:600;text-align:center}.fee-cell{padding:.25rem;font-size:.75em;color:#4b5563;text-align:center;cursor:pointer}.mobile-header{display:none;align-items:center;gap:.75rem;padding:.6rem 1rem;background-color:#f5f5f5;border-bottom:1px solid #e0e0e0;flex-shrink:0;z-index:100}.mobile-header-title{font-weight:700;font-size:1em;color:#f93}.hamburger{display:flex;flex-direction:column;justify-content:center;gap:5px;width:36px;height:36px;padding:6px;background:none;border:none;cursor:pointer;flex-shrink:0}.hamburger span{display:block;height:2px;background-color:#213547;border-radius:2px;transition:background-color .2s}.hamburger:hover span{background-color:#f93}.sidebar-overlay{display:none}@media (max-width: 768px){.mobile-header{display:flex}.sidebar{position:fixed;top:0;left:0;height:100%;z-index:200;transform:translate(-100%);transition:transform .25s ease;box-shadow:none}.sidebar--open{transform:translate(0);box-shadow:4px 0 20px #00000026}.sidebar-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:199;background-color:#0006}.layout-main{padding:1rem;overflow-x:hidden}.page-header h2{display:none}.calendar-grid,.calendar-grid-weekly{overflow-x:auto;min-width:0}.calendar-grid .calendar-cell:not(:first-child){min-width:72px}.calendar-grid .calendar-cell.rate-cell{min-width:0}.page-header{flex-wrap:wrap;gap:.5rem}.controls{flex-wrap:wrap}.layout-footer{justify-content:center;padding:.4rem 1rem}.footer-logo,.footer-info{display:none}.footer-copy{margin-left:0;color:#aaa}}.mock-gateway{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem;background-color:#eef2f7}.mock-gateway-card{background-color:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:2rem;width:100%;max-width:380px;text-align:center;box-shadow:0 20px 60px #0000001a}.mock-gateway-card .form-actions{justify-content:center}.environment-banner{flex-shrink:0;overflow:hidden;white-space:pre;background-color:#dc2626;color:#fff;font-size:.75em;font-weight:700;letter-spacing:.15em;line-height:1.6rem;text-align:center;-webkit-user-select:none;user-select:none}.environment-banner--dev{background-color:#2563eb}
