/* Club Management: inherit Tennis Now Club colors, spacing and navigation from the public demo. */
html {scroll-behavior:auto}
.header-actions{display:flex;align-items:center;gap:18px;font-size:14px}
.header-actions a{text-decoration:none;color:var(--court)}
.header-actions a:hover{text-decoration:underline}
.header-actions .small{padding:8px 18px;min-height:40px;border:1px solid var(--court);color:var(--court);border-radius:50px;background:transparent}
.access-hero{background:var(--court);border-radius:30px;min-height:520px;padding:clamp(30px,7vw,76px);color:var(--ivory);max-width:900px;margin:36px auto}
.access-hero h1{font-size:clamp(40px,6vw,70px);line-height:1.03;letter-spacing:-.04em;margin:0 0 24px}
.access-hero h1 span{color:var(--lime)}
.access-hero>p:not(.eyebrow){max-width:600px;line-height:1.6;color:#ebf4e7}
.access-hint{font-size:13px;margin-top:26px;opacity:.88}
.login-form{max-width:510px;margin-top:30px;display:grid;gap:16px}
.login-form label{font-size:14px;display:flex;flex-direction:column;gap:7px}
.login-form input,.club-switch select,.card-top input{min-height:46px;padding:8px 14px;border:1px solid #b8c6b7;border-radius:12px;background:#fffef8;color:#1f1f1f}
.login-form input:focus,.club-switch select:focus,.card-top input:focus{outline:3px solid var(--lime);outline-offset:2px}
.login-form button{justify-self:start;padding-inline:35px}
.login-form button:disabled{opacity:.6;cursor:wait}
.status{font-size:13px;min-height:21px;margin-top:16px}
.workspace-intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:42px 0 25px}
.workspace-intro .eyebrow{margin:0 0 8px}
.workspace-intro h1{font-size:clamp(32px,4vw,52px);line-height:1.03;letter-spacing:-.025em;margin:0 0 10px}
.workspace-intro p:last-child{color:#536258;margin:0}
.club-switch{display:grid;gap:4px;font-size:13px;color:#536258;min-width:230px}
.club-switch select{max-width:300px}
.real-app{min-height:680px}
.real-app .demo-workspace{min-width:0}
.workspace-actions{display:flex;align-items:center;gap:12px}
.live-indicator{padding:5px 9px;background:#e5f2db;color:#255037;border-radius:20px;font-size:10px;letter-spacing:.04em}
.refresh-button,.row-action{border:1px solid #9aa99a;border-radius:9px;background:#fffef8;color:#214530;padding:7px 12px;min-height:33px;font-size:12px}
.refresh-button:hover,.row-action:hover{background:#edf5e3}
.refresh-button:disabled,.row-action:disabled{opacity:.5;cursor:wait}
.row-action.danger{color:#9d3a2e;border-color:#ceaca6}
.workspace-status{font-size:13px;color:#38563e;margin:10px 0 0;min-height:20px}
.kpi-grid:empty,.demo-inner-card:empty{display:none}
.live-row{border-top:1px solid #e4e1d6;padding:15px 0;display:flex;align-items:start;gap:8px 16px;flex-wrap:wrap}
.live-row:first-child{border-top:0}
.live-row-heading{font-size:16px;line-height:1.35;flex:0 1 100%;color:#233b2c}
.live-row-copy{font-size:13px;color:#5f6a61;margin:0;line-height:1.5;flex:1 1 100%}
.live-row .status-pill{font-size:10px;padding:5px 8px}
.row-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.row-action{margin-right:8px}
.empty-copy{padding:20px 0;margin:0;color:#667267;font-size:14px}
.demo-inner-card{margin-bottom:14px}
.demo-content-grid .demo-inner-card{margin-bottom:0}
.real-app .demo-panel{min-height:500px}
.real-app .service-grid article{min-width:0}
.real-app .service-grid h4{overflow-wrap:anywhere}
.real-app .service-grid p{overflow-wrap:anywhere}
.management-note{color:#58645a;font-size:12px;margin:18px 0}
.app-footer{display:flex;justify-content:center;gap:22px;font-size:12px;padding:24px;border-top:1px solid #ddd9c8;margin-top:auto}
.app-footer a{text-decoration:none;color:#536458}
.app-footer a:hover{text-decoration:underline}
@media(max-width:920px){
  .workspace-intro{align-items:stretch;flex-direction:column}
  .club-switch{max-width:100%}
  .real-app .demo-sidebar{min-width:0}
}
@media(max-width:640px){
  .site-header{height:auto;padding:20px 24px;flex-wrap:wrap}
  .brand-mark{max-width:132px;background-size:contain}
  .header-actions{width:100%;justify-content:space-between}
  .access-hero{padding:36px 24px;min-height:0;border-radius:20px}
  .login-form button{width:100%}
  .workspace-actions{flex-wrap:wrap;justify-content:end}
  .live-indicator{display:none}
  .real-app{display:block}
  .real-app .demo-sidebar{width:100%;border-radius:0}
  .real-app .demo-navigation{display:flex;overflow-x:auto;gap:5px;padding-bottom:10px}
  .real-app .demo-navigation button{flex:0 0 auto;white-space:nowrap}
  .real-app .demo-sidebar-foot{display:none}
  .real-app .demo-workspace{width:100%}
  .real-app .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .real-app .demo-content-grid{grid-template-columns:1fr}
  .real-app .panel-title-row{align-items:start}
  .real-app .panel-icon{display:none}
  .card-top{flex-wrap:wrap}
  .card-top label{display:flex;align-items:center;gap:8px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.club-edit-form{margin-top:20px;padding:20px;border:1px solid #d6dfd1;border-radius:17px;background:#f7faf4;display:grid;gap:12px}
.club-edit-form h4{margin:0;font-size:18px}
.club-edit-form label{font-size:13px;display:grid;gap:5px;color:#344637}
.club-edit-form input:not([type="checkbox"]),.club-edit-form textarea,.club-edit-form select{display:block;min-width:0;width:100%;padding:10px;border:1px solid #c9d2c5;border-radius:9px;background:#fff;color:#1f1f1f;font:inherit}
.club-edit-form textarea{resize:vertical}
.club-edit-form .check-label{display:flex;align-items:center;gap:9px}
.club-edit-form input[type="checkbox"]{width:18px;height:18px;accent-color:#1e3b29}
.club-edit-form .button-lime{justify-self:start;font-size:13px;padding:8px 18px;min-height:40px}
.club-edit-form p[role="status"]{font-size:12px;margin:0;color:#38583e}


/* Genuine schedule data, no inferred availability. */
.court-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.court-toolbar label{display:flex;align-items:center;gap:8px}
.schedule-scroll{max-height:380px;overflow:auto;border:1px solid #d8dfd2;border-radius:12px;margin:12px 0 16px;max-width:100%}
.schedule-table{border-collapse:separate;border-spacing:0;font-size:12px;width:100%;min-width:390px}
.schedule-table th,.schedule-table td{padding:8px 10px;white-space:nowrap;text-align:center;border-right:1px solid #e0e8dc;border-bottom:1px solid #e0e8dc}
.schedule-table th:last-child,.schedule-table td:last-child{border-right:0}
.schedule-table thead th{position:sticky;top:0;z-index:2;background:#e6ece1;color:#25402e}
.schedule-table tbody th{position:sticky;left:0;z-index:1;background:#f7f9f5;text-align:left;color:#536053}
.schedule-table .schedule-reserved{background:#ebdff6;color:#533870}
.schedule-table .schedule-block{background:#f3dfcd;color:#714324}
.schedule-table .schedule-unknown{background:#fffef8;color:#879088}
.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.court-fieldset{border:1px solid #cdd9c9;border-radius:10px;padding:12px 14px}
.court-fieldset legend{font-size:13px;color:#425c47;padding:0 6px}
#block-court-choices{display:flex;flex-wrap:wrap;gap:10px 18px}
#block-court-choices label{width:auto}
.dual-inputs{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px}
@media(max-width:650px){.dual-inputs{grid-template-columns:1fr 1fr}.dual-inputs label:first-child{grid-column:span 2}}
/* This is a protected in-browser preview, not an unattended public TV kiosk. */
.tv-board{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;padding:0;margin:0;background:#102b22;color:#fffef5;overflow:auto}
.tv-board::backdrop{background:rgba(8,25,17,.9)}
.tv-board-inner{box-sizing:border-box;min-height:100%;width:100%;background:linear-gradient(160deg,#102b22,#193d2d 75%);color:#fffef5;padding:clamp(16px,3vw,52px);display:flex;flex-direction:column;gap:clamp(18px,2.5vh,32px);font-family:"Cal Sans",system-ui,sans-serif}
.tv-board-inner:fullscreen{overflow:auto}
.tv-head,.tv-title,.tv-footer{display:flex;align-items:center;justify-content:space-between;gap:18px}
.tv-head{border-bottom:1px solid #466651;padding-bottom:14px}
.tv-brand{display:flex;align-items:center;gap:10px;font-size:clamp(16px,2.3vw,27px);letter-spacing:-.03em}
.tv-brand-ball{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:#c1db00;color:#163627;border-radius:50%;font-size:24px}
.tv-brand small{font-size:11px;color:#c1db00;letter-spacing:.12em;margin-left:8px}
.tv-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:end}
.tv-controls button{border:1px solid #698c75;background:#2b5340;border-radius:10px;color:#fffef5;font-size:12px;padding:8px 12px}
.tv-controls button:hover{background:#3d624c}
.tv-title p{letter-spacing:.12em;font-size:clamp(12px,1.5vw,18px);color:#c1db00;text-transform:uppercase;margin:0 0 6px}
.tv-title h2{margin:0;font-size:clamp(25px,4vw,52px);letter-spacing:-.025em}
.tv-clock{font-size:clamp(22px,4.2vw,58px);white-space:nowrap}
.tv-status{font-size:clamp(12px,1.3vw,18px);color:#c9dacd;margin:0}
.tv-courts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:clamp(12px,1.5vw,24px);align-items:stretch;flex:1}
.tv-court{min-height:170px;border:1px solid #60836a;border-radius:22px;background:#274937;padding:clamp(18px,2vw,30px);display:flex;flex-direction:column;gap:14px;justify-content:space-between}
.tv-court-label{font-size:clamp(18px,2.5vw,29px);color:#cddfc8}
.tv-court-status{font-size:clamp(19px,2.8vw,38px);line-height:1.15;letter-spacing:-.02em}
.tv-court-detail{font-size:clamp(14px,1.5vw,20px);color:#d9e7d5}
.tv-booked{border-color:#bfacdd;background:#423351}
.tv-blocked{border-color:#efc291;background:#564333}
.tv-unconfirmed{border-color:#799482;background:#294735}
.tv-footer{border-top:1px solid #466651;padding-top:14px;color:#b5ccba;font-size:clamp(11px,1.1vw,15px);flex-wrap:wrap}
@media(max-width:650px){.tv-head,.tv-title{align-items:start;flex-direction:column}.tv-clock{font-size:33px}.tv-controls{justify-content:start}.tv-board-inner{gap:16px}.tv-court{min-height:150px}}


.opening-hours{display:grid;gap:8px}
.hours-row{display:grid;grid-template-columns:38px 1fr 1fr 1fr;gap:10px;align-items:center;border-bottom:1px solid #dfe6d9;padding:6px 0}
.hours-row:last-child{border-bottom:0}
.hours-day{font-size:14px;color:#264430}
.hours-row .hours-closed{white-space:nowrap;display:flex;align-items:center;gap:6px}
.club-edit-form .hours-time-label{display:grid;gap:3px;font-size:12px}
.hours-row-closed .hours-time-label{opacity:.45}
.club-edit-form .hours-time-label input{padding:6px 8px;min-height:38px}
@media(max-width:700px){.hours-row{grid-template-columns:34px 1fr 1fr;gap:8px}.hours-row .hours-closed{grid-column:2 / -1}.hours-day{grid-row:1 / 3}.hours-row .hours-time-label{grid-row:2}}


/*
 * TENNIS NOW CLUB – FULL-WIDTH WORKSPACE / GLASS MATERIAL
 * This is a CSS approximation of translucent interface materials, not Apple's native Liquid Glass API.
 * Glass is reserved for navigation/controls; substantive cards stay crisp and readable.
 */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.club-authenticated{background:
  radial-gradient(ellipse 36% 32% at 93% 5%,rgba(193,219,0,.13),transparent 95%),
  radial-gradient(ellipse 38% 32% at 58% 88%,rgba(146,203,161,.17),transparent 90%),
  #f4f6f1;color:#23382b;overflow-x:hidden;--nav-width:256px}
body.club-authenticated .site-header{position:sticky;top:0;z-index:40;height:70px;min-height:70px;padding:0 clamp(18px,2.2vw,38px);
 background:linear-gradient(135deg,rgba(255,254,244,.87),rgba(250,253,245,.67));
 border-bottom:1px solid rgba(255,255,255,.86);
 box-shadow:0 8px 35px rgba(26,59,37,.065),inset 0 1px 0 rgba(255,255,255,.85);
 -webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%)}
body.club-authenticated .site-header .brand-mark{width:146px;flex-basis:146px;height:39px;background-size:contain}
body.club-authenticated .site-header .club-label{font-size:11px;letter-spacing:.15em;color:#55735a}
body.club-authenticated .header-actions{gap:12px}
body.club-authenticated .header-actions>a{font-size:13px;color:#45624c}
body.club-authenticated .header-actions .small{min-height:38px;padding:7px 18px;font-size:13px;background:rgba(255,255,255,.44);border-color:rgba(35,75,47,.38);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
body.club-authenticated main.layout{width:100%;max-width:none;min-width:0;margin:0;flex:1}
body.club-authenticated #club-app{width:100%;max-width:none}
body.club-authenticated .real-app.demo-app{width:100%;max-width:none;min-height:calc(100dvh - 70px);
 display:grid;grid-template-columns:var(--nav-width) minmax(0,1fr);border:0;border-radius:0;box-shadow:none;
 overflow:visible;background:transparent}
body.club-authenticated .real-app .demo-sidebar{position:sticky;top:70px;align-self:start;height:calc(100dvh - 70px);
 overflow-y:auto;overflow-x:hidden;min-width:0;width:auto;padding:26px 14px 24px;
 background:radial-gradient(ellipse at -60% 3%,rgba(193,219,0,.16),transparent 58%),
 linear-gradient(165deg,rgba(23,58,38,.97),rgba(22,46,34,.98));
 -webkit-backdrop-filter:blur(22px) saturate(135%);backdrop-filter:blur(22px) saturate(135%);
 border-right:1px solid rgba(255,255,255,.12);
 scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.23) transparent}
body.club-authenticated .real-app .demo-brand{display:flex;align-items:center;gap:4px;border-bottom:1px solid rgba(255,255,255,.17);
 padding:0 10px 19px;margin-bottom:7px}
body.club-authenticated .real-app .demo-brand-mark{width:128px;flex-basis:128px;height:34px;background-size:contain}
body.club-authenticated .real-app .demo-brand span{font-size:11px;letter-spacing:.12em}
body.club-authenticated .real-app .demo-sidebar-label{display:block;margin:14px 12px 9px;color:#e2ecd8;font-size:12px;letter-spacing:.035em;line-height:1.4}
body.club-authenticated .nav-section-label,
body.club-authenticated .nav-group-spacer{font-size:10px;font-weight:600;letter-spacing:.14em;color:#a1b7a7;margin:20px 12px 7px}
body.club-authenticated .nav-section-label{margin-top:14px}
body.club-authenticated .nav-group-spacer{width:100%;padding:17px 0 3px;margin:9px 0 1px;border-top:1px solid rgba(255,255,255,.12);
 grid-column:1/-1}
body.club-authenticated .real-app .demo-navigation{display:grid;gap:3px}
body.club-authenticated .real-app .demo-navigation button{width:100%;min-height:43px;display:flex;gap:12px;align-items:center;
 border:1px solid transparent;border-radius:13px;padding:10px 13px;background:transparent;color:#d8e6d9;
 font-size:14px;letter-spacing:-.01em;text-align:left;transition:background .18s ease,transform .18s ease,color .18s ease}
body.club-authenticated .real-app .demo-navigation button:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.08)}
body.club-authenticated .real-app .demo-navigation button[aria-selected=true]{background:linear-gradient(135deg,#d4ed19,#c1db00);
 color:#1e3928;box-shadow:inset 0 1px 0 rgba(255,255,255,.62),0 7px 20px rgba(10,32,18,.18)}
body.club-authenticated .real-app .demo-navigation button>span{width:auto;flex:1;min-width:0;font-size:14px;text-align:left}
body.club-authenticated .real-app .demo-navigation button>.nav-svg{width:18px;height:18px;flex:0 0 18px;opacity:.91}
body.club-authenticated .nav-soon{font-size:10px;padding:3px 6px;color:inherit;opacity:.72}
body.club-authenticated .real-app .demo-sidebar-foot{display:block;margin:24px 11px 0;
 border-top:1px solid rgba(255,255,255,.16);padding-top:19px;color:#aec7b0;line-height:1.65}
body.club-authenticated .real-app .demo-workspace{width:100%;min-width:0;max-width:none;
 padding:clamp(16px,2.4vw,38px) clamp(18px,3.1vw,58px) 62px}
body.club-authenticated .workspace-intro{margin:0 0 19px;display:flex;align-items:center;gap:28px;justify-content:space-between}
body.club-authenticated .workspace-intro .eyebrow{margin:0 0 8px;font-size:11px;letter-spacing:.15em;color:#567e4a}
body.club-authenticated .workspace-intro h1{font-size:clamp(28px,2.45vw,39px);line-height:1.12;letter-spacing:-.04em;margin:0 0 4px}
body.club-authenticated .workspace-intro p:last-child{font-size:14px;line-height:1.55;color:#667269}
body.club-authenticated .club-switch{min-width:205px;font-size:11px;font-weight:500;letter-spacing:.035em;color:#6c796e}
body.club-authenticated .club-switch select{min-width:198px;max-width:280px;min-height:42px;background:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.89);
 box-shadow:0 6px 20px rgba(28,54,32,.08),inset 0 1px 0 rgba(255,255,255,.95);
 -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);color:#24442e;border-radius:14px}
body.club-authenticated .workspace-top{position:relative;min-height:57px;padding:9px 17px;margin:0;
 border-radius:17px;border:1px solid rgba(255,255,255,.87);background:rgba(255,255,255,.63);
 box-shadow:0 8px 34px rgba(36,69,43,.05),inset 0 1px 0 rgba(255,255,255,.9);
 -webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);
 font-size:11px;letter-spacing:.085em}
body.club-authenticated .workspace-top strong{color:#1f412c}
body.club-authenticated .workspace-actions{gap:10px}
body.club-authenticated .live-indicator{background:rgba(193,219,0,.23);border:1px solid rgba(142,168,0,.22);padding:6px 10px;color:#315a25;letter-spacing:.04em}
body.club-authenticated .refresh-button,
body.club-authenticated .row-action{border:1px solid rgba(51,94,60,.19);background:rgba(255,255,255,.74);color:#264e32;
 border-radius:11px;min-height:36px;font-size:12px;padding:8px 13px;box-shadow:inset 0 1px 0 rgba(255,255,255,.87);transition:background .15s ease,transform .15s ease}
body.club-authenticated .refresh-button:hover,
body.club-authenticated .row-action:hover{background:#e9f1e4;transform:translateY(-1px)}
body.club-authenticated .workspace-status{margin:9px 2px 0;min-height:14px;color:#466049;font-size:12px}
body.club-authenticated .real-app .demo-panel{padding:20px 0 0;min-height:0}
body.club-authenticated .real-app .panel-title-row{margin-bottom:22px}
body.club-authenticated .real-app .panel-title-row h3{font-size:clamp(24px,2.4vw,35px);letter-spacing:-.035em}
body.club-authenticated .real-app .panel-title-row p:not(.eyebrow){font-size:13px;line-height:1.55}
body.club-authenticated .real-app .panel-title-row .eyebrow{color:#61805a;font-size:10px;letter-spacing:.13em}
body.club-authenticated .club-avatar,
body.club-authenticated .panel-icon{width:52px;height:52px;border-radius:17px;background:linear-gradient(145deg,#e1ed45,#c1db00);
 box-shadow:inset 0 1px 0 #f5ff9b,0 8px 16px rgba(157,174,10,.12);font-size:21px}
body.club-authenticated .real-app .kpi-grid{gap:clamp(10px,1.2vw,18px);margin-bottom:21px}
body.club-authenticated .real-app .kpi-grid article{min-height:140px;background:rgba(255,255,255,.92);
 border:1px solid #e1e8db;border-radius:20px;padding:clamp(15px,1.6vw,25px);
 box-shadow:0 9px 30px rgba(35,71,40,.045),inset 0 1px 0 rgba(255,255,255,.98);
 position:relative;overflow:hidden}
body.club-authenticated .real-app .kpi-grid article::before{content:"";height:3px;width:35px;position:absolute;top:0;left:20px;background:#c1db00;border-radius:0 0 7px 7px}
body.club-authenticated .real-app .kpi-grid article span{color:#6c796d;font-size:10px;line-height:1.45;letter-spacing:.08em}
body.club-authenticated .real-app .kpi-grid article strong{font-size:clamp(31px,3.2vw,49px);margin:14px 0 8px;line-height:1;letter-spacing:-.035em;color:#1e3726}
body.club-authenticated .real-app .kpi-grid article small{font-size:12px;color:#69796b;line-height:1.35}
body.club-authenticated .real-app .demo-content-grid{gap:clamp(12px,1.4vw,22px);grid-template-columns:repeat(2,minmax(0,1fr))}
body.club-authenticated .real-app .demo-inner-card{background:rgba(255,255,255,.92);border:1px solid #e0e8db;
 border-radius:20px;padding:clamp(19px,1.8vw,29px);margin-bottom:18px;min-width:0;
 box-shadow:0 8px 32px rgba(30,60,36,.045)}
body.club-authenticated .real-app .card-top{gap:18px;padding-bottom:15px;border-bottom:1px solid #e8ede5;margin-bottom:13px}
body.club-authenticated .real-app .card-top h4{font-size:19px;line-height:1.3;letter-spacing:-.02em}
body.club-authenticated .real-app .card-top small{font-size:10px;letter-spacing:.06em;color:#7a897c}
body.club-authenticated .real-app .metric-row{padding:13px 0;border-color:#edf0eb}
body.club-authenticated .real-app .metric-row span{font-size:13px}
body.club-authenticated .real-app .metric-row strong{font-size:16px;text-align:right;color:#254832}
body.club-authenticated .real-app .live-row{border-color:#e9eee8}
body.club-authenticated .real-app .live-row-heading{font-size:16px}
body.club-authenticated .real-app .live-row-copy{font-size:13px}
body.club-authenticated .real-app .service-grid{gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
body.club-authenticated .real-app .service-grid article{border:1px solid #e0e8db;border-radius:19px;
 background:rgba(255,255,255,.92);box-shadow:0 8px 30px rgba(30,60,36,.035);padding:23px}
body.club-authenticated .real-app .club-edit-form{border:1px solid #e0e7da;border-radius:17px;background:#f8faf5;box-shadow:none}
body.club-authenticated .real-app .club-edit-form h4{color:#294932}
body.club-authenticated .real-app .club-edit-form input:not([type=checkbox]),
body.club-authenticated .real-app .club-edit-form textarea,
body.club-authenticated .real-app .club-edit-form select{border-radius:12px;border-color:#d1ddcd;background:#fff;font-size:14px}
body.club-authenticated .real-app .club-edit-form label{color:#58705c}
body.club-authenticated .real-app .club-edit-form button.button-lime{border-radius:12px;min-height:43px;padding:10px 17px}
body.club-authenticated .management-note{margin:0;padding:12px 30px;color:#8c988a;font-size:11px}
body.club-authenticated .app-footer{padding:17px 30px;min-height:50px;margin:0;background:#f4f6f1;border-color:#e5ebe1}
.overview-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.overview-shortcuts button{display:flex;align-items:center;justify-content:space-between;min-width:0;
 gap:12px;padding:16px 13px;border:1px solid rgba(207,223,204,.95);border-radius:16px;
 background:linear-gradient(135deg,rgba(239,246,236,.96),rgba(250,252,248,.94));color:#2a4b35;font-size:13px;text-align:left;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.95);transition:transform .15s ease,background .15s ease}
.overview-shortcuts button:hover{background:#e4f1dc;transform:translateY(-2px)}
.overview-shortcuts button span:nth-child(2){flex:1}
.shortcut-icon{width:33px;height:33px;border-radius:10px;display:grid;place-items:center;background:#dfe9d3;flex-shrink:0;font-size:19px}
.news-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px}
.news-layout>.demo-inner-card{min-width:0}
.insights-filter{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:0 0 20px}
.insights-filter label{display:flex;align-items:center;gap:12px;font-size:13px;color:#5c7360}
.insights-filter select{border:1px solid #dae3d7;border-radius:12px;background:rgba(255,255,255,.85);padding:10px 15px;min-width:180px}
.insights-filter>span{font-size:12px;color:#728076}
.list-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.search-field input{width:min(260px,32vw);min-width:160px;border:1px solid #dae3d7;border-radius:12px;
 padding:10px 13px;background:#f9fbf7;font-size:13px}
.list-counter{font-size:11px;color:#718070}
.list-more{margin-top:15px}
#announcement-poll-fields{display:grid;gap:13px;padding:14px;border:1px solid #dee8d9;border-radius:14px;background:#fff}
.club-composer{margin:0;padding:0!important;border:0!important;background:transparent!important}
.feed-entry{display:flex;flex-direction:column;gap:8px;padding:20px 2px;border-bottom:1px solid #e7ece5}
.feed-entry:last-child{border-bottom:0}
.feed-meta{color:#718074;font-size:11px;letter-spacing:.05em}
.feed-entry h4{margin:0;font-size:18px;letter-spacing:-.02em}
.feed-entry p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;font-size:13px;line-height:1.6;color:#56675a;margin:0}
.feed-entry .feed-pill{align-self:start;padding:5px 10px;border-radius:100px;background:#e8f0df;color:#31593a;font-size:10px}
.role-switch{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.role-switch select{padding:9px 12px;border-radius:10px;border:1px solid #d3ded1;background:#f7faf5;font-size:12px;color:#294632}
.role-row{padding:14px 0;border-bottom:1px solid #e8eee5;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.role-row:last-child{border:0}
.role-row .role-person{flex:1 1 190px;display:grid;gap:4px}
.role-row .role-person>strong{font-size:15px}
.role-row .role-person>small{font-size:12px;color:#6e7f70}
.team-row{display:flex;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid #e7ede5}
.team-row:last-child{border:0}
.team-row strong{font-size:16px}
.team-row p{margin:4px 0 0;font-size:12px;color:#6f7d70}
.team-avatar{width:42px;height:42px;border-radius:14px;background:#e4eecf;display:grid;place-items:center;color:#37553a;font-size:15px}
.stat-tag{margin-left:auto;min-width:33px;text-align:center;border-radius:10px;background:#f1f5ed;padding:7px 10px;color:#476747;font-size:13px}
@media(min-width:1440px){body.club-authenticated{--nav-width:282px}body.club-authenticated .real-app .demo-workspace{padding-left:clamp(38px,3.4vw,66px);padding-right:clamp(38px,3.4vw,66px)}}
@media(max-width:1150px){body.club-authenticated .real-app .demo-content-grid{grid-template-columns:1fr}
 .overview-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.news-layout{grid-template-columns:1fr}
 body.club-authenticated .real-app .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){
 body.club-authenticated .real-app.demo-app{display:flex;flex-direction:column;min-height:0}
 body.club-authenticated .real-app .demo-sidebar{position:sticky;top:70px;z-index:30;width:100%;height:auto;min-height:0;
 padding:12px 16px;background:linear-gradient(115deg,rgba(27,63,39,.96),rgba(25,59,38,.92));overflow:visible}
 body.club-authenticated .real-app .demo-brand,
 body.club-authenticated .real-app .demo-sidebar-label,
 body.club-authenticated .real-app .nav-section-label,
 body.club-authenticated .real-app .demo-sidebar-foot,
 body.club-authenticated .nav-group-spacer{display:none}
 body.club-authenticated .real-app .demo-navigation{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:none}
 body.club-authenticated .real-app .demo-navigation::-webkit-scrollbar{display:none}
 body.club-authenticated .real-app .demo-navigation button{flex:0 0 auto;width:auto;white-space:nowrap;min-height:39px;padding:9px 14px}
 body.club-authenticated .real-app .demo-navigation button>span{flex:none}
 body.club-authenticated .real-app .demo-workspace{padding:22px clamp(16px,3vw,32px) 42px}
}
@media(max-width:650px){
 body.club-authenticated .site-header{min-height:65px;height:65px;padding:0 15px;flex-wrap:nowrap}
 body.club-authenticated .site-header .brand{gap:9px}
 body.club-authenticated .site-header .brand-mark{width:119px;flex-basis:119px;height:33px}
 body.club-authenticated .site-header .club-label{padding-left:9px;font-size:10px}
 body.club-authenticated .header-actions{width:auto;gap:7px}
 body.club-authenticated .header-actions>a{display:none}
 body.club-authenticated .header-actions .small{padding:7px 12px;min-height:34px}
 body.club-authenticated .real-app .demo-sidebar{top:65px;padding:9px 13px}
 body.club-authenticated .real-app .demo-navigation button{padding:8px 12px;min-height:36px}
 body.club-authenticated .real-app .demo-workspace{padding:20px 16px 38px}
 body.club-authenticated .workspace-intro{align-items:stretch;flex-direction:column;gap:13px;margin-bottom:16px}
 body.club-authenticated .workspace-intro h1{font-size:30px}
 body.club-authenticated .club-switch{min-width:0;width:100%;max-width:none}
 body.club-authenticated .club-switch select{max-width:none;width:100%}
 body.club-authenticated .workspace-top{padding:10px 12px;min-height:52px}
 body.club-authenticated .real-app .panel-title-row{margin-bottom:16px}
 body.club-authenticated .real-app .panel-title-row h3{font-size:27px}
 body.club-authenticated .real-app .panel-icon,.club-avatar{display:none}
 body.club-authenticated .real-app .kpi-grid,
 body.club-authenticated .real-app .kpi-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.club-authenticated .real-app .kpi-grid article{min-height:124px;padding:15px;border-radius:16px}
 body.club-authenticated .real-app .kpi-grid article strong{font-size:34px}
 body.club-authenticated .real-app .demo-inner-card{padding:19px;border-radius:17px}
 .overview-shortcuts{grid-template-columns:1fr 1fr;gap:9px}
 .overview-shortcuts button{padding:10px;gap:8px;font-size:12px}
 .shortcut-icon{display:none}
 .news-layout{grid-template-columns:1fr}
 .list-tools{width:100%;justify-content:space-between}
 .search-field input{width:100%;min-width:0}
 body.club-authenticated .app-footer{padding:18px}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
 body.club-authenticated .site-header,body.club-authenticated .workspace-top,
 body.club-authenticated .club-switch select{background:#fffef6;-webkit-backdrop-filter:none;backdrop-filter:none}
 body.club-authenticated .real-app .demo-sidebar{background:#193a28;-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){
 body.club-authenticated .real-app .demo-navigation button,
 body.club-authenticated .row-action,
 body.club-authenticated .overview-shortcuts button{transition:none!important;transform:none!important}
}


.candidate-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 0;border-top:1px solid #e4ebe0}
.candidate-row>div{flex:1 1 130px}
.candidate-row strong{font-size:14px}
.candidate-row p{font-size:12px;margin:3px 0 0;color:#788579}
.candidate-row:first-child{border-top:0}
.weekday-bars{width:100%;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:clamp(8px,2vw,28px);padding:18px 12px 8px}
.weekday-col{min-width:0;display:flex;flex-direction:column;align-items:center;gap:9px;color:#607464;font-size:12px}
.weekday-col strong{font-size:13px;color:#36513e}
.weekday-track{height:clamp(92px,12vw,160px);width:min(100%,72px);display:flex;align-items:flex-end;
 border-radius:12px 12px 4px 4px;background:linear-gradient(0deg,rgba(222,235,215,.37),rgba(238,244,235,.72));overflow:hidden}
.weekday-fill{display:block;width:100%;background:linear-gradient(0deg,#7eaf42,#c1db00);border-radius:10px 10px 0 0;
 box-shadow:inset 1px 1px 0 rgba(255,255,255,.45);min-height:0}
@media(max-width:620px){.weekday-bars{padding:9px 0;gap:6px}.weekday-track{border-radius:7px 7px 3px 3px}.weekday-col{font-size:11px}}

/* CSP-safe chart heights without inline style attributes. */
.weekday-fill.level-0{height:0}
.weekday-fill.level-1{height:10%}
.weekday-fill.level-2{height:20%}
.weekday-fill.level-3{height:30%}
.weekday-fill.level-4{height:40%}
.weekday-fill.level-5{height:50%}
.weekday-fill.level-6{height:60%}
.weekday-fill.level-7{height:70%}
.weekday-fill.level-8{height:80%}
.weekday-fill.level-9{height:90%}
.weekday-fill.level-10{height:100%}


/* Read-only week calendar, consistent with the existing Tennis Now club material system. */
.club-week-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:16px 0 12px}
.club-week-heading h4{margin:0 0 5px;font-size:19px}
.club-week-heading p{margin:0;font-size:13px;color:#68786a}
.calendar-navigation{display:flex;gap:7px;align-items:center}
.calendar-navigation button{min-height:37px;border:1px solid #ccddc9;border-radius:11px;background:#f9fcf7;padding:7px 13px;color:#294b32;font-size:13px}
.calendar-navigation button:hover{background:#e8f3df}
#club-week-calendar{min-width:0}
.calendar-scroll{width:100%;max-width:100%;overflow-x:auto;padding:2px 0 9px;scrollbar-width:thin}
.calendar-week-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:850px;width:100%;border:1px solid #dce7d9;border-radius:13px;overflow:hidden}
.calendar-week-grid th,.calendar-week-grid td{vertical-align:top;border-right:1px solid #e1e8dc;border-bottom:1px solid #e1e8dc;padding:9px 7px;text-align:left;min-width:0;font-size:11px}
.calendar-week-grid tr:last-child th,.calendar-week-grid tr:last-child td{border-bottom:0}
.calendar-week-grid tr th:last-child,.calendar-week-grid tr td:last-child{border-right:0}
.calendar-week-grid thead th{background:#eaf2e6;text-align:center;color:#355138;position:sticky;top:0;z-index:2}
.calendar-week-grid .calendar-sticky-col{width:111px;min-width:111px;position:sticky;left:0;z-index:3;background:#f6f9f3;color:#24432c;font-size:12px;overflow-wrap:anywhere}
.calendar-week-grid thead .calendar-sticky-col{background:#e1eddc;z-index:4}
.calendar-week-grid td.calendar-current-day{background:#faffef}
.calendar-week-grid .calendar-day-button{border:0;background:transparent;border-radius:9px;width:100%;min-height:36px;padding:6px;color:#315538;white-space:nowrap;font-size:12px}
.calendar-week-grid .calendar-day-button:hover{background:#dce9d5}
.calendar-week-grid .calendar-day-button[aria-pressed=true]{background:#c1db00;color:#1c3927}
.calendar-occupied{padding:7px 6px;border-radius:8px;display:grid;gap:4px;margin-bottom:5px;overflow-wrap:anywhere}
.calendar-occupied:last-child{margin-bottom:0}
.calendar-occupied.booked{background:#e7dff2;color:#53386c}
.calendar-occupied.blocked{background:#f0e0cc;color:#6f482a}
.calendar-occupied strong{font-size:12px;white-space:nowrap}
.calendar-occupied span{font-size:11px;line-height:1.3}
.calendar-unknown{display:block;padding:8px 0;color:#889687;font-size:11px}
.week-calendar-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;margin:13px 0 21px}
.week-calendar-legend span{font-size:11px;color:#617366;display:flex;align-items:center;gap:7px}
.week-calendar-legend i{width:11px;height:11px;border-radius:4px;display:inline-block}
.key-booked{background:#d8cae9}.key-blocked{background:#e8c8a8}.key-unknown{background:#e1e7dc}
.day-schedule-title{font-size:17px;margin:19px 0 6px}
.monitor-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.monitor-link:hover{background:#e8f3df}
.tv-title-club{display:flex;align-items:center;gap:clamp(12px,2.1vw,30px);min-width:0}
.tv-logo-frame{width:clamp(75px,8.5vw,150px);height:clamp(75px,8.5vw,150px);flex:0 0 auto;
 border-radius:22px;border:1px solid rgba(255,255,255,.27);display:grid;place-items:center;
 background:rgba(255,255,255,.95);overflow:hidden}
.tv-logo-frame img{display:block;width:100%;height:100%;object-fit:contain;padding:9px;box-sizing:border-box}
.tv-logo-frame img[hidden]{display:none}
.tv-logo-frame>span{color:#1a4629;font-size:clamp(32px,5vw,68px)}
.tv-footer{align-items:center;gap:18px}
.tv-scan{display:flex;align-items:center;gap:19px;max-width:480px}
.tv-qr-frame{width:184px;height:184px;flex:0 0 184px;border-radius:14px;background:white;padding:5px;
 display:grid;place-items:center;color:#244b2e;text-align:center;box-sizing:content-box}
.tv-qr-frame canvas{display:block;width:184px;height:184px;image-rendering:pixelated;border-radius:7px}
.tv-qr-frame canvas[hidden],.tv-qr-frame span[hidden]{display:none}
.tv-scan-info{display:grid;gap:7px;color:#eff7e7}
.tv-scan-info strong{font-size:clamp(18px,1.6vw,28px);letter-spacing:-.02em}
.tv-scan-info p{font-size:clamp(12px,1.2vw,17px);margin:0;color:#b9d4bf;line-height:1.4}
.tv-scan-info a{color:#c1db00;text-decoration:underline;text-underline-offset:3px;font-size:clamp(12px,1vw,16px)}
@media(max-width:870px){.tv-title{flex-wrap:wrap}.tv-footer{flex-direction:column;align-items:flex-start}.tv-scan{max-width:100%}}
@media(max-width:540px){.tv-title-club{flex-wrap:wrap}.tv-scan{flex-wrap:wrap}.tv-qr-frame{width:154px;height:154px;flex-basis:154px}.tv-qr-frame canvas{width:154px;height:154px}.court-toolbar{width:100%}.monitor-link{white-space:normal}}


/* Clubhouse monitor — authentic Tennis Now CI and a clearer visual hierarchy.
   The official light-on-dark logo asset already ships with the website. */
.tv-board-inner{
  background:
    radial-gradient(ellipse 56% 48% at 88% 0%,rgba(155,193,89,.11),transparent 85%),
    linear-gradient(150deg,#102d22 0%,#15392a 58%,#123324 100%);
  padding:clamp(20px,3vw,52px);
  gap:clamp(17px,2.4vh,30px);
}
.tv-board .tv-head{
  align-items:center;
  padding-bottom:clamp(16px,2vh,25px);
  border-bottom:1px solid rgba(227,246,224,.22);
}
.tv-board .tv-brand{min-width:0;display:flex;align-items:center;gap:clamp(14px,1.5vw,24px)}
.tv-brand-logo{display:block;flex:0 0 auto;width:clamp(165px,14vw,216px);height:clamp(40px,4vw,58px);object-fit:contain;object-position:left center}
.tv-brand-divider{width:1px;height:36px;flex:0 0 1px;background:rgba(238,250,234,.24)}
.tv-brand-context{display:flex;flex-direction:column;gap:4px;font-size:clamp(12px,1vw,15px);font-weight:600;
  color:#d0eb10;letter-spacing:.1em;line-height:1.1}
.tv-brand-context small{font-size:clamp(10px,.78vw,12px);font-weight:500;letter-spacing:.14em;color:#c7d9c3}
.tv-board .tv-title{align-items:center;gap:clamp(20px,3vw,54px)}
.tv-board .tv-title-club{gap:clamp(16px,2vw,28px)}
.tv-board .tv-logo-frame{
  width:clamp(86px,7vw,114px);
  height:clamp(86px,7vw,114px);
  padding:8px;
  border-radius:25px;
  background:#f8faf1;
  border:1px solid rgba(255,255,255,.68);
  box-sizing:border-box;
  box-shadow:0 14px 30px rgba(0,0,0,.17),inset 0 1px 0 #fff;
}
.tv-board .tv-logo-frame img{
  display:block;width:100%;height:100%;padding:0;
  object-fit:contain;object-position:center;
  border-radius:15px;
}
.tv-board .tv-logo-frame img[hidden]{display:none}
.tv-board .tv-logo-frame>span{font-size:clamp(28px,3.2vw,44px)}
.tv-club-heading{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.tv-heading-kicker{font-family:"Cal Sans",system-ui,sans-serif;font-size:clamp(11px,1vw,15px);letter-spacing:.13em;
  color:#c1db00;line-height:1.3}
.tv-board .tv-club-heading h1{
  max-width:850px;margin:0;font-size:clamp(29px,3.4vw,53px);line-height:1.04;
  letter-spacing:-.04em;color:#fffef5;overflow-wrap:anywhere
}
.tv-board .tv-title #tv-day{
  margin:2px 0 0;font-size:clamp(16px,1.6vw,26px);font-weight:400;
  letter-spacing:-.015em;color:#c6d9c7;line-height:1.35;text-transform:none
}
.tv-time-box{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}
.tv-clock-label{font-size:clamp(11px,.95vw,14px);letter-spacing:.14em;color:#abc4ae}
.tv-board .tv-clock{font-size:clamp(30px,3.4vw,58px);letter-spacing:-.045em;line-height:1.04}
.tv-board .tv-status{
  color:#cddfcf;font-size:clamp(12px,1.1vw,17px);line-height:1.45;
  border-left:3px solid #c1db00;padding:3px 0 3px 13px
}
.tv-board .tv-courts{gap:clamp(14px,1.5vw,24px)}
.tv-board .tv-court{
  border:1px solid rgba(185,213,185,.33);
  border-radius:24px;
  background:linear-gradient(148deg,rgba(51,85,61,.89),rgba(39,75,54,.83));
  padding:clamp(21px,2.1vw,34px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 15px 32px rgba(5,26,12,.10)
}
.tv-board .tv-court.tv-booked{background:linear-gradient(145deg,#4e4264,#3d3555);border-color:#a89bbf}
.tv-board .tv-court.tv-blocked{background:linear-gradient(145deg,#5b4332,#4b3728);border-color:#baa38a}
.tv-board .tv-court-label{font-size:clamp(18px,1.7vw,28px);color:#cfdfd1}
.tv-board .tv-court-status{font-size:clamp(23px,2.35vw,37px);line-height:1.17;max-width:19ch}
.tv-board .tv-court-detail{font-size:clamp(15px,1.32vw,20px);color:#e4efe1;
  border-top:1px solid rgba(245,255,242,.16);padding-top:16px}
.tv-board .tv-footer{gap:20px;align-items:center;padding-top:clamp(16px,2.5vh,29px);
  border-top:1px solid rgba(227,246,224,.2)}
.tv-board .tv-scan{
  max-width:min(100%,570px);gap:19px;padding:14px 18px 14px 14px;
  border:1px solid rgba(226,241,221,.19);border-radius:22px;
  background:linear-gradient(120deg,rgba(244,253,237,.085),rgba(244,253,237,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)
}
.tv-board .tv-qr-frame{border-radius:13px;overflow:hidden;box-shadow:0 5px 16px rgba(0,0,0,.14)}
.tv-board .tv-scan-info{gap:8px}
.tv-board .tv-scan-info strong{font-size:clamp(17px,1.7vw,25px)}
.tv-board .tv-scan-info a{font-weight:600;text-decoration-thickness:1px}
@media(max-width:900px){
  .tv-board .tv-title{align-items:flex-start}
  .tv-board .tv-time-box{align-items:flex-start}
  .tv-board .tv-footer{align-items:stretch}
}
@media(max-width:650px){
  .tv-board .tv-head{align-items:flex-start}
  .tv-brand-logo{width:160px;height:44px}
  .tv-brand-divider{height:30px}
  .tv-board .tv-title-club{align-items:center}
  .tv-board .tv-club-heading h1{font-size:28px}
  .tv-board .tv-title #tv-day{font-size:17px}
  .tv-board .tv-time-box{flex-direction:row;align-items:baseline;gap:12px}
  .tv-board .tv-clock{font-size:34px}
  .tv-board .tv-scan{flex-wrap:wrap;padding:13px;max-width:100%}
  .tv-board .tv-logo-frame{width:80px;height:80px;border-radius:19px}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  .tv-board .tv-scan{background:#234734;border-color:#a4c2a5}
  .tv-board .tv-court{background:#284c39;border-color:#a4c2a5}
}


/* Monitor branding refinement: match the existing Sidebar CI rendering.
   The brand PNG contains generous inner whitespace, so use the same
   background-size:cover pattern as .demo-brand-mark rather than object-fit:contain. */
.tv-board .tv-brand-logo{
  display:block;
  flex:0 0 clamp(255px,22vw,350px);
  width:clamp(255px,22vw,350px);
  height:clamp(68px,5.7vw,91px);
  background-image:url("/assets/branding/tennis-now-logo-negative.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
}
.tv-board .tv-brand{gap:clamp(12px,1.4vw,22px)}
.tv-board .tv-brand-divider{height:clamp(34px,3.1vw,48px)}
/* A club logo is the club's identity, not a framed thumbnail.
   Keep the actual profile image unchanged and remove the white surround. */
.tv-board .tv-logo-frame{
  width:clamp(82px,7.2vw,114px);
  height:clamp(82px,7.2vw,114px);
  padding:0;
  background:transparent;
  border:0;
  border-radius:15px;
  box-shadow:none;
  overflow:hidden;
}
.tv-board .tv-logo-frame img{
  width:100%;
  height:100%;
  padding:0;
  border:0;
  border-radius:15px;
  object-fit:cover;
}
.tv-board .tv-logo-frame>span{
  width:100%;
  height:100%;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:#d7e8cc;
  background:rgba(255,255,255,.08);
}
.tv-board .tv-logo-frame>span[hidden]{display:none}
@media(max-width:650px){
  .tv-board .tv-brand-logo{flex-basis:clamp(165px,47vw,225px);width:clamp(165px,47vw,225px);height:clamp(47px,13vw,64px)}
  .tv-board .tv-brand-divider{height:34px}
  .tv-board .tv-logo-frame,.tv-board .tv-logo-frame img{width:80px;height:80px;border-radius:13px}
}


/* Single Tennis Now identity for authenticated club administration.
   Reuse the exact existing original brand asset from the public website;
   background-size:cover avoids shrinking the lettering into PNG whitespace. */
body.club-authenticated .site-header{
  height:84px;
  min-height:84px;
}
body.club-authenticated .site-header .brand{
  flex:0 0 auto;
  gap:18px;
  min-width:0;
}
body.club-authenticated .site-header .brand-mark{
  display:block;
  flex:0 0 226px;
  width:226px;
  height:59px;
  max-width:none;
  background-image:url("/assets/branding/tennis-now-logo.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
}
body.club-authenticated .site-header .club-label{
  border-left:1px solid rgba(48,84,53,.25);
  padding-left:18px;
  font-size:14px;
  letter-spacing:.15em;
  font-weight:600;
  color:#335c41;
}
body.club-authenticated .real-app .demo-sidebar{
  top:84px;
  height:calc(100dvh - 84px);
}
body.club-authenticated .real-app .sidebar-club-head{
  display:grid;
  gap:9px;
  margin:0 9px 21px;
  padding:9px 7px 21px;
  border-bottom:1px solid rgba(222,240,219,.19);
}
body.club-authenticated .real-app .sidebar-club-kicker{
  font-size:10px;
  font-weight:600;
  letter-spacing:.16em;
  color:#9ebba2;
  line-height:1.4;
}
body.club-authenticated .real-app .sidebar-club-head .demo-sidebar-label{
  margin:0;
  padding:0;
  font-size:15px;
  line-height:1.4;
  letter-spacing:.005em;
  font-weight:600;
  color:#f6fff1;
  overflow-wrap:anywhere;
}
body.club-authenticated .real-app .demo-navigation{
  margin-top:0;
}
/* Preserve a compact, single-line navigation on tablets and phones. */
@media(max-width:960px){
  body.club-authenticated .real-app .demo-sidebar{
    top:84px;
    height:auto;
  }
  body.club-authenticated .real-app .sidebar-club-head{
    display:none;
  }
}
@media(max-width:650px){
  body.club-authenticated .site-header{
    height:72px;
    min-height:72px;
  }
  body.club-authenticated .site-header .brand{gap:9px}
  body.club-authenticated .site-header .brand-mark{
    flex:0 1 166px;
    width:166px;
    height:44px;
    max-width:none;
    background-size:cover;
  }
  body.club-authenticated .site-header .club-label{
    font-size:11px;
    padding-left:10px;
    letter-spacing:.09em;
  }
  body.club-authenticated .real-app .demo-sidebar{top:72px;height:auto}
}
@media(max-width:370px){
  body.club-authenticated .site-header .brand-mark{flex-basis:142px;width:142px;height:37px}
}


/* Club activity cards — built from the exact app feed data and image paths.
   Media is retrieved only through authenticated, short-lived Storage URLs. */
body.club-authenticated .news-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,.8fr);gap:clamp(14px,1.5vw,24px);align-items:start}
body.club-authenticated .news-feed-card{padding:clamp(16px,1.6vw,26px)}
.club-feed-list{display:grid;gap:clamp(14px,1.4vw,22px)}
.club-feed-card{position:relative;display:grid;gap:15px;padding:clamp(16px,1.7vw,26px);
  border:1px solid #dee8d9;border-radius:20px;background:#fffefb;
  box-shadow:0 10px 30px rgba(26,57,37,.035);overflow:hidden}
.club-feed-card::before{position:absolute;content:"";width:4px;left:0;top:0;bottom:0;
  background:#a7bda3}
.club-feed-announcement::before{background:#c1db00}
.club-feed-author{display:flex;align-items:center;gap:12px;min-width:0}
.club-feed-avatar{flex:0 0 43px;width:43px;height:43px;background:#edf2e8;position:relative;
  display:grid;place-items:center;border-radius:50%;overflow:hidden;color:#24472d;font-size:24px}
.club-feed-avatar-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.club-feed-avatar-photo[hidden]{display:none}
.club-feed-author-text{display:grid;gap:3px;flex:1;min-width:0}
.club-feed-author-text>strong{font-size:14px;font-weight:600;color:#2b4533}
.club-feed-author-text>span{font-size:11px;color:#738077}
.club-feed-category{margin-left:auto;align-self:start;white-space:nowrap;font-size:10px;letter-spacing:.06em;
  color:#46623e;border:1px solid #dfebd3;border-radius:20px;padding:6px 9px;background:#edf5e6}
.club-feed-title{font-size:clamp(19px,1.7vw,26px);line-height:1.23;margin:0;letter-spacing:-.028em;color:#183c2a}
.club-feed-body{font-size:14px;line-height:1.72;color:#4c5e52;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.club-feed-photo{position:relative;width:100%;min-height:155px;aspect-ratio:16/9;background:#eff4eb;
  overflow:hidden;border-radius:15px;border:1px solid #e5ebe1;display:grid;place-items:center}
.club-feed-photo-img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.club-feed-photo-img[hidden]{display:none}
.club-feed-photo-fallback{font-size:12px;line-height:1.4;text-align:center;color:#718271;margin:15px}
.club-feed-photo-fallback[hidden]{display:none}
.club-feed-activity-meta{font-size:12px;line-height:1.6;color:#627366;margin:0}
.club-feed-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #e9efe5;padding-top:14px}
.club-feed-like{display:inline-flex;align-items:center;gap:7px;border:1px solid #dfebda;border-radius:11px;
  padding:9px 14px;color:#50644f;background:#f8fbf5;font:inherit;font-size:12px;cursor:pointer}
.club-feed-like.liked{background:#edf4e4;border-color:#a5c896;color:#2b6632}
.club-feed-like:not(:disabled):hover{background:#e8f3dc}
.club-feed-like:disabled{opacity:.65;cursor:default}
.club-feed-actions .row-action{margin-left:auto}
.club-feed-poll{display:grid;gap:11px;border:1px solid #e0e9d9;background:#f8faf6;border-radius:15px;padding:17px}
.club-feed-poll-label{font-size:10px;letter-spacing:.12em;color:#647b57}
.club-feed-poll h5{font-size:18px;line-height:1.35;color:#284733;margin:0}
.club-feed-poll-privacy{font-size:11px;line-height:1.5;color:#6a7b6a;margin:0}
.club-feed-poll-options{display:grid;gap:8px}
.club-feed-poll-option{width:100%;display:grid;gap:8px;border:1px solid #dce5d7;background:#fff;border-radius:11px;
  padding:11px 13px;text-align:left;color:#2a4631;font:inherit;font-size:12px}
.club-feed-poll-option:not(:disabled):hover{background:#eff6e7;border-color:#9ac27f}
.club-feed-poll-option.selected{border-color:#92b85a;background:#eff7e2}
.club-feed-poll-option:disabled{cursor:default}
.club-feed-poll-row{display:flex;gap:12px;justify-content:space-between;align-items:center;line-height:1.5}
.club-feed-poll-row strong{flex-shrink:0}
.club-feed-poll-progress{display:block;max-width:100%;width:100%;height:8px;accent-color:#a2c846}
.club-feed-poll-footer{font-size:11px;color:#69796a;margin:0}
.club-news-image-upload{display:grid;gap:8px;border:1px solid #e2e9dd;border-radius:13px;padding:13px;background:#f8fbf5}
.club-news-image-upload>label{font-size:13px;font-weight:600;color:#37543a}
.club-news-image-upload input[type=file]{max-width:100%;background:#fff;padding:10px;border:1px solid #d9e5d3;border-radius:10px;font-size:12px}
.club-news-image-upload .module-footnote{margin:0;font-size:11px}
.club-news-image-upload [role=status]{font-size:12px;color:#8a4d28;margin:0}
.club-news-image-preview{display:grid;gap:10px}
.club-news-image-preview[hidden]{display:none}
.club-news-image-preview>img{display:block;max-width:100%;width:100%;aspect-ratio:16/9;
  object-fit:cover;border-radius:12px;background:#eef4e9}
.club-news-image-preview>img[hidden]{display:none}
.club-news-image-details{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#5e7460}
.club-news-image-details>span{max-width:100%;overflow-wrap:anywhere;font-size:12px}
body.club-authenticated .club-composer{display:grid;gap:13px}
@media(max-width:1250px){body.club-authenticated .news-layout{grid-template-columns:1fr}}
@media(max-width:650px){.club-feed-card{padding:16px}.club-feed-category{font-size:9px}
 .club-feed-card{gap:12px}.club-feed-actions .row-action{margin-left:0}
 .club-feed-title{font-size:21px}
 .club-feed-photo{min-height:130px}
}
@media(prefers-reduced-motion:reduce){.club-feed-card *{transition:none!important}}


/* Club booking rules must mirror the current app reservation flow:
   hourly start slots, selectable 60 or 120 minute maximum duration. */
body.club-authenticated .booking-rule-fixed{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 15px;
  min-height:48px;
  margin-top:7px;
  padding:11px 15px;
  border:1px solid #d5e3d0;
  border-radius:12px;
  background:#f3f8ed;
  color:#243e2b;
  font-size:16px;
  font-weight:600;
}
body.club-authenticated .booking-rule-fixed small{
  font-size:11px;
  font-weight:400;
  line-height:1.4;
  color:#59735f;
}
body.club-authenticated #booking-form select[name="max_booking_minutes"]{
  width:100%;
  min-height:48px;
  font-size:15px;
}
@media(max-width:650px){
  body.club-authenticated .booking-rule-fixed{align-items:flex-start;flex-direction:column}
}
