/* Layout ownership: every header item has its own track and can shrink safely. */
.top{display:grid;grid-template-columns:230px minmax(180px,1fr) auto;gap:20px;padding:10px 20px;align-items:center;min-height:102px}
.top .brand{width:auto;min-width:0;margin:0;padding:0;align-self:center;background:transparent}
.flock-header-logo{width:220px;max-width:100%;height:80px;object-fit:contain}
.brand-context{display:none}.top .top-search{width:100%;min-width:0;margin:0}.top-search input{width:100%;min-width:0;font-size:13px;min-height:44px;padding-left:34px}.top-search:before{top:7px}
.top>.actions{display:flex;min-width:0;gap:14px;margin:0;flex-wrap:nowrap}.top .profile-caption{max-width:170px;overflow:hidden;text-overflow:ellipsis}.profile{cursor:pointer;list-style:none;white-space:nowrap;padding:3px;border-radius:8px}.profile::-webkit-details-marker{display:none}.profile>b{width:40px;height:40px;flex:0 0 40px}.profile-menu{position:relative}.profile-menu summary:focus-visible,.appmenu summary:focus-visible{outline:3px solid #5d9e2c;outline-offset:4px}.profile-panel{position:absolute;z-index:80;top:calc(100% + 14px);right:0;width:250px;max-width:calc(100vw - 24px);background:#fff;border:1px solid #dbe5e8;border-radius:10px;box-shadow:0 16px 44px #0b273825;padding:10px}.profile-panel strong{display:block;color:#64736b;font-size:12px;padding:8px 12px;overflow-wrap:anywhere}.profile-panel button{display:block;width:100%;text-align:left;border:0;background:white;padding:12px;border-radius:5px;font-size:13px}.profile-panel button:hover{background:#f0f6e9}.profile-panel .menu-signout{color:#a33b38;border-top:1px solid #e4eae5;border-radius:0}
.appmenu{position:relative}.appmenu-panel{top:calc(100% + 14px);right:0;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 140px);overflow-y:auto;z-index:80;padding:12px;box-sizing:border-box}.appmenu-panel button{white-space:normal;overflow-wrap:anywhere;min-height:44px;line-height:1.45}.appmenu-panel [data-menupage=farms]{font-weight:700;border-bottom:1px solid #e3ebdf;border-radius:0;margin-bottom:5px}.appmenu-panel [hidden]{display:none!important}
.header-inbox .fv-icon-slot{position:static;background:transparent;color:inherit;border-radius:0;font-size:inherit;padding:0;min-width:0}
.dash-tiles{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.dash-tile>div{min-width:0}.dash-tile span,.dash-tile small{overflow-wrap:anywhere}.dash-heading{flex-wrap:wrap}.dash-heading h2{min-width:0}.dash-columns{grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr) minmax(0,1fr)}.dash-panel h2{max-width:100%;white-space:normal}.dash-chart{flex-wrap:wrap;justify-content:center}.dash-legend{min-width:0}.dash-farm-summary>div,.dash-case-lead>div{min-width:0;overflow-wrap:anywhere}.ctitle{flex-wrap:wrap}.grid>*,.full{min-width:0}input,select,textarea{max-width:100%}.cloud-toolbar{gap:10px;flex-wrap:wrap}.cloud-toolbar>div{display:flex;gap:5px;flex-wrap:wrap}
.auth-gate{padding:28px 16px;overflow-y:auto;align-items:flex-start}.auth-card{width:min(100%,470px);margin:auto;box-sizing:border-box}.auth-card .flock-login-logo{max-width:310px;margin:0 auto 18px}.auth-card h1{font-size:27px;line-height:1.2}.auth-card form{display:grid;gap:14px}.auth-card label{display:grid;gap:6px;font-size:13px}.auth-card input{min-height:44px}.auth-card form button{min-height:44px}.auth-card>small{display:block;line-height:1.6;margin-top:12px}.auth-tools{display:flex;gap:10px;flex-wrap:wrap}.auth-tools button{flex:1}.employee-login{margin:24px 0 14px;border-top:1px solid #dde6dd;padding-top:18px}.employee-login summary{cursor:pointer;font-weight:650;color:#176321;font-size:14px}.employee-login summary span{display:block;font-weight:400;font-size:11px;color:#6b7a72;margin:5px 0 0 17px}.employee-login p{font-size:12px;line-height:1.6}.auth-card #authMessage{overflow-wrap:anywhere;font-size:13px}.auth-card .btn{white-space:normal}
.team-list{margin-top:24px}.team-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-top:1px solid #e1e9e2;flex-wrap:wrap}.team-person{flex:1;min-width:160px;overflow-wrap:anywhere}.team-person strong{display:block}.team-person small{color:#6d7d73;font-size:12px}.team-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.team-controls select{width:190px}.team-controls .btn{font-size:12px}.team-row[data-inactive=true]{opacity:.65}#newLoginDetails{margin-top:20px}#memberForm small{font-weight:400;display:block}.team-empty{color:#6a786d;font-size:13px}.app-settings{width:min(580px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box}.settings-heading{display:flex;gap:16px;align-items:center;justify-content:space-between}.settings-details{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;font-size:13px}.settings-details dt{color:#708073}.settings-details dd{margin:0;overflow-wrap:anywhere}.app-settings>label{display:block;margin:16px 0}.check-label{display:flex!important;align-items:center;gap:10px}.check-label input{width:18px;height:18px}.settings-note{font-size:12px;line-height:1.7;color:#667a6b}#changePasswordForm{border-top:1px solid #dce6d6;margin-top:24px;padding-top:12px}#changePasswordForm label{display:block;margin:12px 0}body[data-density=compact] .dash-panel{padding:9px}body[data-density=compact] .card{padding:16px}body[data-density=compact] .team-row{padding:9px 0}body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body.reduce-motion #fv-loading .brand-lockup,body.reduce-motion #fv-loading .loader-details{opacity:1;transform:none}
@media(max-width:1300px){.top{grid-template-columns:200px minmax(140px,1fr) auto;gap:14px}.flock-header-logo{width:195px}.profile-caption{max-width:130px!important}.dash-columns{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}.dash-column:last-child{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dash-column:last-child>.dash-panel:last-child{grid-column:1/-1}}
@media(max-width:1000px){.top{grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:8px 16px}.top .top-search{grid-column:1/-1;grid-row:2}.top>.actions{gap:10px}.flock-header-logo{height:65px;width:190px}.appmenu-panel{max-height:calc(100dvh - 170px)}}
@media(max-width:760px){.top .brand{width:auto;min-height:0;justify-content:flex-start}.top>.actions{justify-content:flex-end}.top .profile-caption{display:none}.top .appmenu summary{padding:10px;font-size:11px}.top .flock-header-logo{width:170px;height:62px}.dash-columns{grid-template-columns:minmax(0,1fr)}.dash-column:last-child{display:flex;grid-column:auto}.dash-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-tile:last-child{grid-column:auto}.dash-tile .tile-icon{width:36px;height:36px}.dash-tile .fv-icon{width:28px;height:28px}.profile-panel{right:-90px}.team-controls{width:100%}.team-controls select{flex:1;min-width:140px}.auth-gate{padding:16px 12px}.auth-card{padding:24px}.dash-ai-lead{flex-wrap:wrap}.dash-ai-lead>img,.dash-ai-lead>.photo-placeholder{width:100%;height:150px}.dash-ai-summary{flex-basis:100%}}
@media(max-width:420px){.top{padding:6px 10px;gap:8px}.top .flock-header-logo{width:125px;height:58px}.top>.actions{gap:5px}.profile>b{width:34px;height:34px;flex-basis:34px}.header-inbox .fv-icon{width:25px;height:25px}.appmenu summary{font-size:10px!important;padding:9px 7px!important}.dash-tile{gap:7px;padding:8px}.dash-tile b{font-size:22px}.appmenu-panel{right:-2px;width:calc(100vw - 24px)}.dash-farm-summary{flex-wrap:wrap}}

.auth-tools [data-install-app]{width:auto;margin:0}

.farm-access-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:10px;margin:14px 0}.farm-access-choice{display:flex;flex-direction:row;align-items:center;gap:12px;border:1px solid #cfdde3;border-radius:10px;padding:14px;background:#f8fbfd;min-width:0;cursor:pointer}.farm-access-choice input{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#087bff}.farm-access-choice span{min-width:0;overflow-wrap:anywhere}.farm-access-choice strong,.farm-access-choice small{display:block}.farm-access-choice small{color:#526775;font-size:12px;margin-top:4px}.farm-access-choice:has(input:checked){border-color:#087bff;background:#edf5ff}.farm-access-choice.focused{box-shadow:inset 0 0 0 1px #087bff}.access-choice-heading{margin-top:18px;gap:10px}.access-choice-heading strong{flex:1 1 200px}.no-farm-access,.access-error{color:#9e3a18!important;font-weight:600}#accessMessage{margin:14px 0 0;color:#216744;overflow-wrap:anywhere}#accessSelectionCount{font-weight:600;color:#294c65}.access-focus:empty{display:none}.access-focus{padding:10px;border-radius:8px;background:#edf5ff}.farm-access-shortcut{margin-top:18px;padding:14px;border:1px solid #d7e5ee;border-radius:10px}.team-person small{overflow-wrap:anywhere}.team-controls{flex-wrap:wrap}#farmAccessCard{scroll-margin-top:100px}#accessForm select{width:100%;max-width:100%;box-sizing:border-box}#accessForm .actions{flex-wrap:wrap}

.manager-farm-heading h1{font-size:28px;line-height:1.2;margin:12px 0;overflow-wrap:anywhere}.manager-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.manager-metrics strong,.manager-metrics span{display:block}.manager-metrics strong{font-size:30px;color:#1a5278}.manager-metrics span{font-size:13px;color:#526775}.manager-task,.manager-case{padding:14px 0;border-top:1px solid #dce7ed;overflow-wrap:anywhere}.manager-case{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.manager-case p{margin:5px 0}#photoCaptureCard{scroll-margin-top:100px}@media(max-width:600px){.manager-metrics{gap:8px}.manager-metrics .card{padding:12px}.manager-metrics strong{font-size:25px}.manager-farm-heading .actions .btn{width:100%}}

#managerDashboard[hidden],#businessDashboard[hidden],.farm-filter[hidden]{display:none!important}

.photo-uploader{padding:22px;border:1px dashed #96b6cb;border-radius:12px;background:#f6fafc;text-align:center;min-width:0}.photo-uploader>strong{display:block;font-size:16px;color:#173d58}.photo-uploader>p{margin:6px 0 16px;color:#526775}.photo-uploader>small{display:block;margin-top:14px;color:#526775}.photo-source-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.photo-source-actions .btn{min-height:44px;min-width:130px}.photo-uploader input[hidden]{display:none!important}@media(max-width:420px){.photo-uploader{padding:16px 12px}.photo-source-actions .btn{min-width:0;flex:1 1 110px}}
