/* Full-height club garden; detailed departments retain their existing layout. */
#panel.club-garden{width:min(100vw,560px);max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0;background:#224b36}
#panel.club-garden .panel-head{min-height:39px;height:39px;background:#123f31;color:#f8efd8;border-bottom:1px solid #a78d53;padding:0 8px}
#panel.club-garden .panel-head h2{font-size:13px;letter-spacing:.12em}
#panel.club-garden .panel-head button{color:#f8efd8;min-height:36px;height:36px}
#panel.club-garden #panel-body{padding:0;flex:1;min-height:0;display:flex;overflow:auto}
.co-office-shell{display:flex;flex-direction:column;width:100%;min-height:600px;flex:1;background:#e9e1cb;font-size:13px;color:#233d32}
.co-hud{flex:none;padding:6px 12px 7px;background:linear-gradient(115deg,#123c31,#205740 65%,#163f31);color:#fff7dc;border-bottom:2px solid #b99b54}
.co-brand{display:flex;align-items:center;gap:8px;min-width:0}
.co-brand>strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:serif;font-size:18px;letter-spacing:.04em;font-weight:600}
.co-crest{font-size:30px;color:#e6c878;line-height:1.2}
.co-date{flex:none;text-align:center;background:#f6ecd3;border:1px solid #bca263;border-radius:3px;color:#243c30;padding:2px 9px;font-size:13px;font-weight:800;line-height:1.15}
.co-date small{display:block;color:#6a735d;font-size:9px;line-height:1.4}
.co-status{display:flex;justify-content:space-between;gap:8px;margin-top:4px;font-size:10px;color:#dae0cb}
.co-status b{font-size:15px;color:#fff7dc;margin-left:3px;font-variant-numeric:tabular-nums}
.co-goal{flex:none;padding:4px 8px;background:#e5dac0;border-bottom:1px solid #a69862}
.co-goal button{display:flex;align-items:center;gap:7px;width:100%;padding:6px 8px;min-height:36px;text-align:left;border-radius:4px;font-size:12px;box-shadow:0 1px 3px #4d3e251f;background:linear-gradient(#fffaf0,#f6edda)}
.co-goal b{flex:1;font-weight:600}.co-goal button>span{font-size:18px;color:#92703a}
.co-stage{position:relative;flex:1;min-height:335px;overflow:hidden;isolation:isolate;background:#9da774}
.co-world{position:absolute;inset:0;overflow:hidden}
.co-background{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;user-select:none;pointer-events:none}
.co-pin{position:absolute;transform:translate(-50%,-50%);z-index:4}
.co-pin button{border:1px solid #b99b63;min-width:44px;min-height:44px;padding:5px 9px;border-radius:5px;background:#fff7e5f2;color:#244c37;font-size:12px;line-height:1.15;box-shadow:0 3px 6px #30271042;white-space:nowrap}
.co-pin small{display:block;font-size:9px;color:#866537;margin-top:3px;line-height:1.2}
.co-pin.selected button{background:#f9e0a1;outline:2px solid #ffc94b;outline-offset:3px}
.co-pin.co-add button{font-size:27px;padding:0;line-height:1;min-width:42px;width:42px;height:42px;background:#fff2c6e8;color:#a77228;border-radius:50%;box-shadow:0 0 0 3px #f8da8560,0 3px 7px #43301445}
.co-sprite{display:inline-block;background-image:url('../assets/club/office-actors.webp');background-repeat:no-repeat;background-size:400% 200%;background-position:var(--sx) var(--sy);width:60px;height:60px;flex-shrink:0}
.co-actor{position:absolute;display:block;width:15%;aspect-ratio:1;transform:translate(-50%,-90%);pointer-events:none;z-index:2;filter:drop-shadow(0 1px 1px #261b1930)}
.co-actor .co-sprite{display:block;width:100%;height:100%}
.co-idle .co-sprite{animation:co-breathe 3.5s ease-in-out infinite;transform-origin:50% 85%}
.co-actor:nth-of-type(even) .co-sprite{animation-delay:-1.4s}
.co-visitor{animation:co-visit 12s ease-in-out infinite}
.co-carrier{animation:co-deliver 9s ease-in-out infinite}
.co-carrier .co-sprite{animation:co-steps .55s ease-in-out infinite alternate}
.co-parcels{width:17%;z-index:3}.co-equipment{width:14%}.co-goods{width:16%}
.co-horse{position:absolute;left:62%;top:70%;width:29%;height:17%;object-fit:contain;z-index:2;filter:drop-shadow(0 2px 1px #22180f30);pointer-events:none}
.co-offers{position:absolute;left:48%;top:30%;z-index:4}.co-offers button{min-height:44px;padding:5px 7px;line-height:1.2;font-size:11px;border-radius:3px;background:#f8edd8eb;border-color:#ae8b4c;box-shadow:0 2px 4px #33251950;transform:rotate(-4deg)}
.co-offers small{display:block;font-size:9px}
.co-paddock{position:absolute;left:61%;top:85%;z-index:4}
.co-paddock button{min-height:44px;padding:5px 9px;border-radius:4px;border-color:#e8cda0;color:#fff4d9;background:#315b3eee;font-size:12px;box-shadow:0 3px 6px #183d263a}
.co-speech{position:absolute;left:5%;bottom:3%;right:5%;z-index:4;display:flex;align-items:center;gap:2px;pointer-events:none}
.co-speech .co-sprite{width:44px;height:44px;filter:drop-shadow(0 2px 1px #102b2850)}
.co-speech>span:last-child{background:#fffdf2f2;border:1px solid #bba275;border-radius:4px 14px 14px 4px;padding:8px 10px;font-size:12px;font-weight:600;box-shadow:0 3px 9px #3d302431}
.co-result{position:absolute;top:1%;left:6%;right:6%;padding:8px;border:1px solid #a18239;border-radius:4px;background:linear-gradient(#fff7d7,#efd992);box-shadow:0 3px 12px #57431c30;color:#684d1d;font-size:13px;text-align:center;font-weight:800;z-index:4;pointer-events:none;animation:co-appear .3s ease-out}
.co-level{position:absolute;font-size:9px;background:#21523be6;color:#fff5d0;padding:3px 5px;border-radius:3px;pointer-events:none;z-index:3}.co-system-level{left:70%;top:30%}.co-training-level{left:6%;top:47%}
.co-context{position:absolute;z-index:6;top:23%;left:37%;width:59%;max-width:260px;border:2px solid #b6a062;box-shadow:0 6px 24px #102e2b66;background:#174d3bef;border-radius:5px;color:#fff4d8;padding:3px 7px 7px;animation:co-appear .18s ease-out}
.co-context header{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 0 3px;font-size:12px}
.co-context>button{display:block;width:100%;text-align:left;border:0;border-top:1px solid #b7ac7933;border-radius:0;background:transparent;color:#fff9e6;box-shadow:none;font-size:12px;padding:10px 5px;min-height:44px}
.co-context>button:before{content:'›';margin-right:8px;color:#e3c371}
.co-close{min-width:44px;min-height:44px;padding:0!important;font-size:23px!important;box-shadow:none!important;background:transparent!important;border:0!important;color:inherit!important;flex:none}
.co-sheet{position:absolute;left:7px;right:7px;bottom:7px;max-height:76%;z-index:7;display:flex;flex-direction:column;border:2px solid #b5a063;border-radius:9px 9px 5px 5px;background:#fffaf0f7;box-shadow:0 7px 35px #163f3255;animation:co-appear .2s ease-out;overflow:hidden}
.co-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 4px 0 12px;min-height:44px;background:#20513e;color:#fff5df;border-bottom:1px solid #b6a66d;flex:none}
.co-sheet h3{font-size:14px}.co-sheet-body{padding:10px 12px 14px;overflow:auto;overscroll-behavior:contain;min-height:0;font-size:12px}
.co-sheet-body h4{margin:0 0 4px;font-size:13px}.co-sheet-body p{font-size:12px;line-height:1.65}
.co-sheet-body>button{margin-top:9px;width:100%;font-size:12px}
.co-card{display:flex;gap:7px;align-items:center;border-bottom:1px solid #d7cba7;padding:12px 0}.co-card:last-child{border-bottom:0;padding-bottom:0}.co-card:first-child{padding-top:0}
.co-card>.co-sprite{width:64px;height:70px;align-self:center}.co-card>div{flex:1;min-width:0}.co-card button{font-size:12px;width:100%;margin-top:7px;padding:7px;min-height:44px}.co-card small{font-size:10px;white-space:nowrap}
.co-explain{color:#66715d;margin-bottom:10px!important}.co-footnote{margin-top:9px;color:#697665}
.co-sheet-body label{margin:10px 0;display:flex;align-items:center;justify-content:space-between;gap:8px}.co-sheet-body input{width:135px;font-size:14px}.co-sheet-body select{font-size:13px;flex:1;max-width:180px}
.co-sheet-body form>button{width:100%;font-size:13px;margin-top:4px}
.co-summary{display:flex;gap:8px;padding:5px 0 10px}.co-summary>span{flex:1;color:#667159;font-size:11px}.co-summary b{display:block;color:#174e3c;font-size:15px;margin-top:3px}
.co-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.co-plan-grid button{min-height:55px;font-size:12px;padding:8px;text-align:left;border-radius:6px}.co-plan-grid small{display:block;font-size:10px;font-weight:400;margin-top:3px}
.co-progress{background:#edf0dc;padding:12px;border-radius:7px;margin:8px 0}.co-progress strong{display:block}.co-progress progress{width:100%;height:12px;accent-color:#316d4c;margin:10px 0 3px}.co-progress small{display:block;font-size:10px}
.co-complete{background:#edf0dc;padding:14px;border-radius:8px;color:#286445;font-weight:700}.co-complete p{font-weight:400;margin-top:5px}
.co-pending{padding:8px;background:#f4e4b8;border-radius:5px;margin-bottom:10px}.co-note{padding:9px 0;border-bottom:1px solid #e7dcc0}.co-note small{font-size:10px}
.co-nav{display:flex;gap:4px;flex:none;padding:5px 6px;background:linear-gradient(#355741,#173f30);border-top:2px solid #ba9c5f}
.co-nav>button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:61px;padding:2px;border-radius:6px;border:1px solid #b4995f;color:#fff6dd;background:repeating-linear-gradient(0deg,#75573910 0px,#422b2520 1px,transparent 2px,transparent 5px),linear-gradient(#6a5135,#423421);box-shadow:inset 0 1px 0 #fff1ad50,0 2px 0 #15281b;font-size:12px}
.co-nav b{font-weight:600;text-shadow:0 1px 2px #173c29}.co-nav .co-sprite{width:35px;height:35px}.co-nav-icon{display:flex;align-items:center;justify-content:center;height:35px;font-size:29px;color:#eed893;text-shadow:0 2px 0 #2b3024}
.co-nav>button.active{background:linear-gradient(#f7e3ab,#d8b96f);color:#244333;box-shadow:inset 0 0 0 2px #ffebbe}.co-nav>button.active b{text-shadow:none}
.co-week-bar{display:flex;align-items:center;justify-content:space-between;flex:none;background:#183f31;color:#e4dcc4;padding:0 8px max(4px,env(safe-area-inset-bottom));gap:8px;font-size:10px;min-height:42px}.co-week-bar i{color:#9dae8c;padding:0 4px;font-style:normal}.co-week-bar .co-next{min-height:36px;background:linear-gradient(#f6e4aa,#d9bd77);font-size:12px;padding:5px 15px;border-radius:5px;border-color:#d3b76c;color:#27432e}
.co-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@keyframes co-breathe{50%{transform:translateY(-1px) scaleY(1.018)}}
@keyframes co-visit{0%,20%,100%{transform:translate(-50%,-90%)}50%,75%{transform:translate(-70%,-70%)}}
@keyframes co-deliver{0%,12%,100%{left:42%;top:65%}40%,62%{left:25%;top:83%}}
@keyframes co-steps{to{transform:translateY(-2px) rotate(1deg)}}
@keyframes co-appear{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@media(min-width:700px){#panel.club-garden{height:96dvh;max-height:96dvh;border:2px solid #b6a062;border-radius:12px}}
@media(max-width:360px){.co-brand>strong{font-size:15px}.co-hud{padding-left:8px;padding-right:8px}.co-status b{font-size:13px}.co-pin button{font-size:10px;padding:4px 6px}.co-goal button{font-size:11px}.co-speech>span:last-child{font-size:11px}.co-card>.co-sprite{width:47px;height:56px}.co-sheet-body{padding:8px}.co-offers{left:43%}.co-offers button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.co-office-shell *{animation:none!important;transition:none!important}}
.club-office-title{padding:0 2px 8px}.club-office-title h3{margin:2px 0;font-size:1.05rem}.club-office-title small{color:#69796d}
.club-office-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;background:#174e3c;color:#fff;border-radius:10px 10px 0 0;padding:10px 5px;gap:4px}.club-office-metrics span{text-align:center;font-size:11px}.club-office-metrics b{display:block;font-size:14px;margin-top:4px}
.club-office-room{position:relative;height:clamp(310px,47svh,470px);background:url('../assets/social/offices.webp') 50% 50%/300% 100% no-repeat;border:1px solid #b6a16a;border-top:0;border-radius:0 0 12px 12px;overflow:hidden}
.club-office-room .office-pin{position:absolute;min-height:48px;padding:7px 9px;background:#fff9e9ed;border:1px solid #a79050;box-shadow:0 3px 8px #152c3340;font-size:13px;font-weight:bold;line-height:1.35;white-space:nowrap;border-radius:9px;color:#174e3c}
.office-pin small{display:block;font-size:10px;font-weight:normal}.office-offers{left:4%;top:7%}.office-horses{right:4%;top:7%}.office-finance{left:8%;top:31%}.office-members{right:5%;top:51%}.office-reports{left:5%;top:72%}
.office-status{position:absolute;bottom:0;left:0;right:0;background:#173c31ed;color:#fff;text-align:center;font-size:11px;padding:7px 2px}.office-next{display:flex;align-items:center;gap:8px;padding:8px 0}.office-next small{white-space:nowrap;font-size:11px}.office-next button{flex:1;min-height:44px;font-size:13px;padding:5px}
.office-shortcuts{display:flex;gap:5px}.office-shortcuts button{flex:1;min-height:44px;padding:5px;font-size:11px}.club-subhead{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}.club-subhead strong{font-size:14px}.club-subhead small{width:100%;text-align:right}.club-office button:focus-visible{outline:3px solid #337dc3;outline-offset:2px}
/* v7.1.62: shared visual language for the six departments. */
.club-office-metrics{grid-template-columns:1fr 1fr;background:#f3ebd3;color:#174e3c;gap:6px;padding:6px}.club-office-metrics span{background:#fffaf0;border:1px solid #c8b77e;border-radius:8px;padding:5px}.club-period{display:block;text-align:center;font-size:10px;padding:3px}.office-staff{position:absolute;left:48%;top:61%;pointer-events:none}.office-staff .social-mini{width:64px;height:80px}.office-status{font-size:10px}.club-department{color:#234336}.club-department h3{font-size:16px;margin:3px 0 8px}.club-department small{font-size:11px;color:#697768}.club-department .club-paper{background:#fffbf2;border:1px solid #d1bf8a;border-radius:12px;padding:13px;margin:12px 0;box-shadow:0 3px 0 #d6c79d33}.club-horse-head{display:flex;align-items:center;gap:12px}.club-horse-head>div{min-width:0}.club-horse-head h3{overflow-wrap:anywhere}.club-horse-photo{width:80px;height:80px;border-radius:9px;object-fit:cover;flex-shrink:0;background:#ebe6d0}.club-offer-price{text-align:right;margin:8px 0}.club-department progress{width:100%;height:13px;accent-color:#246748}.club-card-line{display:flex;justify-content:space-between;font-size:12px;margin:4px 0}.club-chips{display:flex;gap:5px;margin:8px 0}.club-chips button{flex:1;font-size:12px;min-height:42px;padding:6px}.club-search{display:flex;align-items:center;gap:6px}.club-search input{min-width:0;width:100%;flex:1}.club-search button{font-size:12px;padding:8px;min-height:44px}.club-department input:not([type=radio]),.club-department select{width:100%;box-sizing:border-box;min-height:44px}.club-department label{display:block;margin:10px 0}.club-department .actions{display:flex;flex-wrap:wrap;gap:5px}.club-department button{min-height:44px}.club-bottom{position:sticky;bottom:0;background:#fcf7e9ed;padding:8px 0;z-index:2}.club-bottom button{width:100%}.club-steps{display:flex;justify-content:space-between;gap:6px;font-size:12px;padding:10px;background:#ede9d7;border-radius:8px}.club-steps .active{color:#167344}.club-units{display:flex;gap:8px;border:1px solid #d1bf8a;border-radius:8px;padding:8px}.club-units label{flex:1;font-size:12px;white-space:nowrap}.club-quote{display:block;background:#e7efdd;padding:10px;border-radius:8px;font-size:13px}.club-condition{display:block;text-align:right;font-size:12px;color:#327657}.club-department summary{padding:10px 0;cursor:pointer;font-weight:bold}.club-kpis{display:flex;gap:6px;margin:10px 0}.club-kpis span{flex:1;text-align:center;background:#fff8e8;border:1px solid #d1bf8a;border-radius:10px;padding:10px 4px;font-size:11px}.club-kpis b{display:block;font-size:16px;margin-top:5px}.club-staff-message{display:flex;align-items:center;gap:8px;background:#e9efd9;border-radius:12px;padding:10px}.club-staff-message .social-sprite{flex-shrink:0}.club-staff-message p{font-size:13px;line-height:1.6;margin:0}.club-staff-message small{display:block}.club-profit-chart{display:flex;align-items:flex-end;gap:5px;min-height:118px}.club-profit-chart>div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0}.club-profit-chart span{display:block;background:#378464;width:65%;border-radius:3px 3px 0 0}.club-profit-chart small{font-size:9px;overflow-wrap:anywhere}.club-profit-chart span.negative{background:#b44b47}.club-ledger{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e6dbc0;font-size:12px}.club-ledger b{white-space:nowrap;color:#247251}.club-ledger b.negative{color:#ac4343}.club-letter{border-left:4px solid #bba052!important}.club-empty{padding:24px 12px;color:#6e796d}.club-subhead+nav.tabs{display:flex;flex-wrap:wrap}.club-subhead+nav.tabs button{flex:1 0 26%;font-size:12px;padding:6px;min-height:42px}
.co-role-tabs{display:flex;gap:4px;margin-bottom:10px}.co-role-tabs button{flex:1;min-width:0;min-height:40px;padding:5px 3px;font-size:10px;border-radius:5px}.co-role-tabs button.active{background:#245940;color:#fff4d7}
