/* J&A OS / Future Grow Solutions — Executive Edition
   Non-destructive design layer, loaded last. Source-of-truth remains in app.js/Supabase.
   Do not treat these visualizations as authorization or backend isolation. */
:root{
  --ja-900:#071521;--ja-850:#0a1b2b;--ja-800:#0d2335;
  --ja-card:#102a3e;--ja-card2:#142f46;--ja-stroke:rgba(157,196,217,.17);
  --ja-text:#eef8ff;--ja-muted:#a9c2d2;--ja-subtle:#85a5b8;
  --ja-mint:#4ce4b1;--ja-azure:#70c9f3;--ja-gold:#f1c580;--ja-rose:#ff9ba9;
  --ja-shadow:0 13px 42px rgba(0,8,18,.22);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{background:var(--ja-900);scroll-padding-top:22px}
body{font-feature-settings:'ss01' on,'cv11' on;color:var(--ja-text)!important}
[hidden]{display:none!important}
.fgs-skip-link{position:fixed;z-index:1000;top:-80px;left:15px;padding:12px 20px;background:#a0f5ce;color:#052133!important;border-radius:10px;font-weight:800}
.fgs-skip-link:focus{top:12px}
::selection{background:#58d4b6;color:#09283b}
.content{max-width:1430px!important;padding-top:clamp(18px,2.8vw,34px)!important}
.content h1{font-weight:830!important;line-height:1.1!important;letter-spacing:-.047em!important}
.content h2{font-size:clamp(17px,1.6vw,22px)!important;letter-spacing:-.028em!important}
.content h3{letter-spacing:-.02em}
.content .muted,.content .sub,.content small{color:var(--ja-muted)!important}
.content .eyebrow{font-size:10px!important;letter-spacing:.18em!important;font-weight:850!important;color:#73bea6!important}
.content .pagehead{margin-bottom:10px!important;align-items:center}
.content .pagehead h1{margin-bottom:8px!important}
.content .pagehead p,.directory-head>p{font-size:13px!important;margin:0!important}
.top{min-height:76px!important;gap:12px!important;backdrop-filter:blur(18px);box-shadow:0 4px 32px #03101c36!important}
.top .topbrand img{height:48px!important;max-width:193px!important}
.sidebar{box-shadow:8px 0 60px #020e181c!important}
.sidebar .nav button{display:flex;align-items:center;transition:background .16s ease,transform .16s ease}
.sidebar .nav button:not(.active):hover{background:#1b4057!important;transform:translateX(2px)}
.sidebar .foot{border-top:1px solid var(--ja-stroke);margin-top:auto}
.content .card,.content .stat,.content .room,.content .assignment-card,.content .admin-kpi,.content .dashboard-detail,
.content .admin-quick,.content .admin-directory,.content .fgs-ops-panel,.content .fgs-employee-panel{
  border:1px solid var(--ja-stroke)!important;
  background:linear-gradient(146deg,rgba(21,49,70,.96),rgba(12,35,53,.97))!important;
  border-radius:17px!important;box-shadow:var(--ja-shadow)!important;
}
.content .card,.content .assignment-card{margin-bottom:0}
.content .stat,.content .admin-kpi{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.content button.stat:hover,.content button.admin-kpi:hover{transform:translateY(-3px);border-color:rgba(78,225,180,.53)!important;box-shadow:0 15px 42px #0004!important}
.content button:not(.btn):focus-visible{outline:3px solid #89edce!important;outline-offset:2px}
.content .btn{font-weight:730!important;letter-spacing:-.01em;border-radius:10px!important}
.content .btn.primary{background:linear-gradient(118deg,#15946d,#10a981)!important;box-shadow:0 7px 25px #07a87925!important}
.content .btn.primary:hover{background:linear-gradient(118deg,#13a87a,#12ba8e)!important}
.content .btn.danger{background:#402937!important;border-color:#b75e7394!important}
.content button:disabled{cursor:not-allowed}
.content .empty,.content .empty-note,.content .fgs-employee-empty{color:#a9c4d5!important}
/* Dashboard: high-signal operational overview. */
.content:has(.home-summary){display:flex;flex-direction:column;gap:16px}
.content:has(.home-summary)>.pagehead{order:0;margin-bottom:0!important}
.content:has(.home-summary)>.home-summary{order:1}
.content:has(.home-summary)>.fgs-employee-panels{order:2}
.content:has(.home-summary)>.home-room-spotlight{order:3}
.content:has(.home-summary)>.fgs-operations-grid{order:4}
.content:has(.home-summary)>.fgs-harvest-panel{order:5}
.content:has(.home-summary)>.error,.content:has(.home-summary)>.success{order:-1}
.content .home-summary{margin:0!important}
.content .home-section-heading{margin:0 0 10px!important}
.content .home-section-heading h2{margin:2px 0!important}
.content .home-section-heading .muted{margin:3px 0 0!important;font-size:12px}
.content .stats.executive-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
.content .executive-stats .stat{display:flex!important;align-items:center!important;flex-direction:row!important;gap:13px!important;min-width:0!important;min-height:88px!important;padding:13px 15px!important;white-space:normal;cursor:pointer;text-align:left}
.content .executive-stats .stat .fgs-stat-copy{display:block;min-width:0}
.content .executive-stats .stat strong{font-size:clamp(22px,2.5vw,32px)!important;padding:2px 0!important;font-weight:840!important;line-height:1.02!important}
.content .executive-stats .stat small{font-size:11px!important;color:#a8cbd8!important;font-weight:700!important}
.content .executive-stats .stat .stat-foot{font-size:10px!important;color:#83aabb!important;margin:3px 0 0!important}
.content .executive-stats .stat .stat-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px!important;font-size:19px!important}
.content .executive-stats .stat.issue{background:linear-gradient(145deg,#3d2938,#17263a)!important;border-color:rgba(245,133,157,.35)!important}
.content .fgs-employee-panels{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;margin:0!important}
.content .fgs-employee-panel{padding:18px!important;min-width:0!important}
.content .fgs-employee-head{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:0 0 3px!important}
.content .fgs-employee-head h2{font-size:17px!important;margin:0!important;line-height:1.25!important}
.content .fgs-employee-head>button{min-height:37px!important;padding:5px 10px!important;border-radius:9px!important;font-size:12px!important;white-space:nowrap}
.content .fgs-employee-meta{font-size:11px!important;color:#9fbecc!important;margin-bottom:9px!important}
.content .fgs-employee-meter{height:5px!important;border-radius:99px!important;overflow:hidden}
.content .fgs-employee-meter span{background:linear-gradient(90deg,#27b9a5,#68e7b1)!important;border-radius:99px!important}
.content .fgs-employee-list{display:grid;gap:5px;margin-top:10px}
.content .fgs-employee-row{min-height:52px!important;display:flex!important;align-items:center!important;gap:11px!important;padding:10px 11px!important;border-radius:10px!important;text-align:left}
.content .fgs-employee-row .fgs-row-name{min-width:0;overflow:hidden;display:block;line-height:1.28!important;font-size:12px!important}
.content .fgs-employee-row .fgs-row-name strong{display:block;font-size:12px!important}
.content .fgs-employee-row .fgs-row-name small{font-size:10px!important;display:block;white-space:normal}
.content .fgs-employee-row .fgs-row-badge{font-size:9px!important;flex:none!important;max-width:85px;text-align:center}
.content .fgs-employee-row .fgs-row-mark{flex:none}
.content .fgs-operations-grid{gap:13px!important;margin:0!important}
.content .fgs-ops-panel{padding:18px!important;min-width:0}
.content .home-room-spotlight{margin:0!important}
.content #activeRoomOverview{overflow:hidden;box-shadow:var(--ja-shadow)!important}
.content .carousel-head{padding:13px 17px!important}
.content .room-banner{padding:15px 18px!important;min-height:84px!important}
.content .room-banner h2{font-size:27px!important}
.content .detail-body{padding:18px!important}
.content .room-snapshot-label{margin-top:10px!important}
.content .detail-metrics{gap:10px!important}
.content .detail-metric{border-radius:12px!important;padding:15px!important}
.content .detail-metric strong{font-variant-numeric:tabular-nums}
.content .carousel-position{display:flex!important;flex-wrap:wrap;justify-content:center;gap:6px!important}
.content .carousel-dot{min-width:9px!important;min-height:9px!important}
.content .carousel-swipe-note{font-size:11px!important;margin:6px 0!important;color:#87aabd!important}
/* Rooms: more useful compact cards, trustworthy progress labels. */
.content .directory-head{display:block;margin-bottom:15px}
.content .directory-head h1{margin:4px 0 6px!important}
.content .fgs-directory-filters{margin:8px 0 8px!important}
.content .fgs-room-search{display:flex;align-items:center;gap:12px;margin:12px 0 0;color:var(--ja-muted)!important;font-size:12px;font-weight:700}
.content .fgs-room-search input{min-width:0;width:min(330px,100%);height:42px;padding:10px 12px!important}
.content .fgs-search-result{font-size:11px;min-height:0;margin:5px 0 8px!important;color:#87cdbd!important}
.content .roomgrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:11px!important}
.content .roomgrid .room{padding:16px 17px 15px!important;min-height:159px!important;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;text-align:left;position:relative}
.content .roomgrid .room::before{width:3px!important;left:0}
.content .roomgrid .room h3{font-size:22px!important;margin:0!important}
.content .roomgrid .room>.flex{margin-bottom:9px;flex-wrap:nowrap!important;align-items:center!important}
.content .roomgrid .room>.flex .badge{flex:0 0 auto;font-size:10px!important;text-transform:capitalize}
.content .roomgrid .room p{font-size:12px!important;margin:0 0 9px!important;color:#c9e2ed!important}
.content .roomgrid .room .invest-room-progress{width:100%;margin:0 0 10px!important;height:5px!important;background:#263d52!important}
.content .roomgrid .room .invest-room-progress>span{background:linear-gradient(90deg,#43a8e6,#68dfb6)!important}
.content .roomgrid .room .invest-room-context{display:block;font-size:10px!important;margin:-1px 0 9px;color:#9cbbcb!important}
.content .roomgrid .room>.badge:last-child{align-self:flex-start;margin-top:auto!important;font-size:10px!important}
/* Work queues: prioritize the actionable; show completion history without repeating giant cards. */
.content .assignment-card{padding:15px 16px!important;margin:8px 0!important}
.content .assignment-card .flex{gap:10px!important}
.content .assignment-card strong{font-size:14px!important;line-height:1.4}
.content .assignment-card p.muted{font-size:12px!important;margin:9px 0!important}
.content .assignment-card .actions{margin-top:8px}
.content .assignment-card .badge{font-size:10px!important}
.content .fgs-work-queue .assignment-card{background:linear-gradient(145deg,#173549,#102638)!important}
.content .fgs-work-queue>div.flex{margin-bottom:10px}
.content .fgs-task-history .fgs-history-row{padding:11px 13px!important;gap:8px!important;margin:7px 0!important;border-radius:10px!important}
.content .fgs-history-row strong{font-size:13px!important}.content .fgs-history-row small{font-size:10px!important}
.content .fgs-history-row .btn{min-height:35px!important;padding:7px 12px!important;font-size:11px!important}
.content .fgs-create-task summary,.content .fgs-report-issue summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px;font-weight:790;color:#d9fcf1!important;min-height:38px}
.content .fgs-create-task summary::-webkit-details-marker,.content .fgs-report-issue summary::-webkit-details-marker{display:none}
.content .fgs-create-task summary::after,.content .fgs-report-issue summary::after{content:'⌄';font-size:23px;color:var(--ja-mint);line-height:1}
.content .fgs-create-task[open] summary::after,.content .fgs-report-issue[open] summary::after{transform:rotate(180deg)}
.content .fgs-expand-form{padding:16px 0 1px;border-top:1px solid var(--ja-stroke);margin-top:12px}
.content .fgs-report-issue{scroll-margin-top:18px;margin-block:10px 15px!important}
.content .fgs-report-issue h2{margin:0 0 7px!important}
.content .fgs-issue-switch{margin-top:13px!important;margin-bottom:6px!important}
/* Severity is explicit and legible; not only encoded by color. */
.content .issuebox{border-radius:12px!important;margin:8px 0!important;padding:13px 15px!important;background:linear-gradient(100deg,#382938,#18293c)!important;border-left:3px solid #f49aae!important}
.content .issuebox.resolved{background:linear-gradient(100deg,#153d35,#152c3b)!important;border-left-color:#47d7a3!important}
.content .issuebox b{font-size:12px!important;letter-spacing:.005em!important}
.content .issuebox p{margin:8px 0!important;font-size:13px!important;line-height:1.47!important}
.content .issuebox small{font-size:10px!important;color:#acbfd0!important}
.content .issuebox .btn{min-height:38px!important;font-size:11px!important;padding:8px 11px!important}
.content .fgs-issue-switch>.btn{flex:0 0 auto!important}
/* Harvest: empty-state instead of five misleading dash metrics. */
.content .fgs-harvest-panel{margin-top:0!important;border-radius:16px!important;box-shadow:var(--ja-shadow)!important}
.content .fgs-harvest-empty{display:flex;gap:15px;align-items:center;padding:16px!important;background:linear-gradient(135deg,#122d42,#102538);border:1px dashed #496e81;border-radius:14px;margin:14px 0!important}
.content .fgs-harvest-empty>span{font-size:24px;background:#20465d;color:#91d7e9;display:grid;place-items:center;border-radius:13px;width:46px;height:46px;flex:none}
.content .fgs-harvest-empty strong{color:#e5f6ff;font-size:13px}
.content .fgs-harvest-empty p{margin:3px 0 0!important;color:#aac6d7!important;font-size:11px!important}
.content .fgs-harvest-summary{gap:8px!important}
.content .fgs-harvest-summary>div{min-width:0;border-radius:12px!important}
/* Admin: pragmatic control center, clear actions and useful density. */
.content .admin-pagehead{margin-bottom:12px!important}
.content .admin-pagehead h1{font-size:clamp(26px,3.1vw,38px)!important}
.content .admin-secure{background:#173e3d!important;border:1px solid #43b89a5d!important;color:#b0edd8!important;font-size:9px!important;vertical-align:middle}
.content .admin-tabs{margin:0 0 14px!important;padding:0 0 9px!important;gap:7px!important;scrollbar-width:thin}
.content .admin-tabs button{font-size:11px!important;min-height:40px!important;padding:9px 13px!important}
.content .admin-hero{padding:21px 24px!important;min-height:134px!important;border-radius:18px!important}
.content .admin-hero h2{font-size:clamp(20px,2vw,28px)!important;margin:5px 0!important;line-height:1.25}
.content .admin-hero p{font-size:12px!important;max-width:560px!important}
.content .admin-hero .admin-refresh{align-self:center!important}
.content .admin-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:13px 0 16px!important}
.content .admin-kpi{min-height:96px!important;padding:16px 17px!important;gap:4px!important}
.content .admin-kpi span{font-size:9px!important;letter-spacing:.14em}
.content .admin-kpi strong{font-size:31px!important;line-height:1.1!important}
.content .admin-kpi small{font-size:10px!important;color:#80d2c8!important}
.content .admin-quick{padding:18px!important}
.content .admin-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.content .admin-quick-link{padding:13px 14px!important;min-height:53px!important;border-radius:11px!important;font-size:12px!important;background:#163b4c!important}
.content .admin-quick-link:hover{background:#195367!important}
.content .admin-directory{padding:20px!important}
.content .admin-person{grid-template-columns:minmax(150px,1.2fr) minmax(150px,1.2fr) 120px auto auto!important;gap:12px!important;padding:15px!important}
.content .admin-person>div:first-child strong{font-size:13px!important}
.content .admin-person .btn{min-width:110px}
.content .fgs-prod-table-wrap{overflow-x:auto!important}
/* State, readability, safety. */
.content :is(input,select,textarea){accent-color:#39cb99!important}
.content .badge{font-weight:780!important}
.content .badge.green{background:#15503e!important;color:#b6f7d3!important;border-color:#3bb78362!important}
.content .badge.red{background:#612b3b!important;color:#ffd1d9!important;border-color:#f18da35c!important}
.content .fgs-error-banner{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px!important}
.content .fgs-error-banner strong{font-size:13px!important}
.content .fgs-error-banner span{font-size:12px!important;overflow-wrap:anywhere}
.content .fgs-error-banner button{margin-left:auto}
.content .notice,.content .success,.content .error{border-radius:12px!important}
.content [role="progressbar"]{overflow:hidden}
/* Accessibility fixes for desktop and mobile */
@media(max-width:1150px){
 .content .stats.executive-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .content .executive-stats .stat{gap:8px!important;padding:12px!important}
 .content .executive-stats .stat .stat-icon{width:32px;height:32px;flex-basis:32px;font-size:17px!important}
 .content .admin-person{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .content .admin-person>div:first-child{grid-column:1/-1}
 .content .admin-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
 .content .stats.executive-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .content .admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .content .fgs-employee-panels{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:690px){
 html{scroll-padding-bottom:115px}
 .content{padding:17px 13px calc(108px + env(safe-area-inset-bottom))!important}
 .top{min-height:66px!important;padding:9px 13px!important}
 .top .topbrand img{height:39px!important;max-width:131px!important}
 .top .user{align-items:center!important;gap:4px!important;font-size:10px!important}
 .top .user .fgs-signout-link{font-size:10px!important;min-height:35px!important;padding:7px 9px!important}
 .content .pagehead{margin-bottom:1px!important}
 .content .pagehead h1{font-size:25px!important;margin-bottom:4px!important}
 .content .pagehead p{font-size:11px!important}
 .content .page-status{font-size:10px!important;padding:6px 9px!important;gap:5px}
 .content .date-stamp{padding-left:7px;margin-left:3px;font-size:10px}
 .content:has(.home-summary){gap:15px!important}
 .content:has(.home-summary)>.fgs-employee-panels{order:1}
 .content:has(.home-summary)>.home-summary{order:2}
 .content:has(.home-summary)>.home-room-spotlight{order:3}
 .content:has(.home-summary)>.fgs-operations-grid{order:4}
 .content:has(.home-summary)>.fgs-harvest-panel{order:5}
 .content .fgs-employee-panel{padding:14px!important}
 .content .fgs-employee-panels{gap:9px!important}
 .content .fgs-employee-head h2{font-size:15px!important}
 .content .fgs-employee-head>button{font-size:11px!important}
 .content .fgs-employee-row{min-height:47px!important;padding:8px 10px!important}
 .content .executive-stats .stat{min-height:74px!important;padding:11px!important;gap:10px!important}
 .content .executive-stats .stat strong{font-size:25px!important}
 .content .executive-stats .stat small{font-size:10px!important}
 .content .executive-stats .stat .stat-foot{display:none!important}
 .content .executive-stats .stat .stat-icon{width:30px;height:30px;flex-basis:30px;font-size:16px!important}
 .content .stats.executive-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .content .fgs-operations-grid{grid-template-columns:minmax(0,1fr)!important}
 .content .fgs-ops-panel{padding:14px!important}
 .content .home-room-spotlight .home-section-heading{align-items:center!important}
 .content .home-room-spotlight .home-section-heading h2{font-size:17px!important}
 .content .home-room-spotlight .home-section-heading p{max-width:240px}
 .content .room-banner{padding:12px 14px!important}
 .content .detail-body{padding:13px!important}
 .content .detail-metric{padding:12px!important}
 .content .fgs-room-search{display:block!important}
 .content .fgs-room-search span{display:block;margin-bottom:7px}
 .content .fgs-room-search input{width:100%;max-width:none}
 .content .roomgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .content .roomgrid .room{min-height:146px!important;padding:12px!important}
 .content .roomgrid .room h3{font-size:19px!important}
 .content .roomgrid .room p{font-size:11px!important}
 .content .roomgrid .room .invest-room-context{font-size:9px!important}
 .content .roomgrid .room>.badge:last-child{font-size:9px!important}
 .content .fgs-report-issue{padding:13px 15px!important}
 .content .issuebox{padding:12px!important}
 .content .admin-hero{display:block!important;padding:18px!important}
 .content .admin-hero .admin-refresh{margin-top:11px}
 .content .admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .content .admin-kpi{min-height:93px!important;padding:13px!important}
 .content .admin-kpi strong{font-size:27px!important}
 .content .admin-quick{padding:14px!important}
 .content .admin-quick-grid{grid-template-columns:minmax(0,1fr)!important}
 .content .admin-quick-link{min-height:48px!important}
 .content .admin-person{grid-template-columns:minmax(0,1fr)!important}
 .content .admin-person>div:first-child{grid-column:auto}
 .content .admin-directory{padding:14px!important}
 .content .fgs-harvest-empty{padding:12px!important}
 .content .mobileNav{box-shadow:0 -12px 36px #0008!important}
 .content .assignment-card{padding:13px!important}
 .mobileNav button{min-height:53px!important}
 .mobileNav button span:last-child{font-size:10px!important}
 .mobileNav button.active,.mobileNav button[aria-current=page]{color:#c3ffe1!important}
 .invest-more-sheet:not([hidden]){max-height:min(70dvh,550px);overflow-y:auto}
}
@media(max-width:380px){
 .content .roomgrid .room{padding:11px!important}
 .content .roomgrid .room>.flex .badge{font-size:9px!important;padding:4px 5px!important}
 .content .executive-stats .stat{gap:7px!important}
 .content .executive-stats .stat strong{font-size:23px!important}
}
@media(min-width:1000px){
 .content .fgs-operations-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .content .home-room-spotlight{scroll-margin-top:24px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 .content button,.content .room{transition:none!important;transform:none!important}
}
/* Prevent an empty issue column from stretching to match the entire right-hand feed. */
.content .detail-columns{align-items:start!important}
.content .detail-columns>.inner-card{align-self:start!important;min-height:0!important;height:auto!important}
.content .detail-columns .side-detail{min-width:0;align-self:start!important}
.content .detail-columns .inner-card{padding:14px!important}
.content .detail-columns .inner-card .empty-note{padding:13px 0!important;min-height:0!important}
.content .detail-columns .carousel-task{padding:10px 0!important}
