/* Mitsiry workspaces: reference-derived design system, shared by four authority scopes.
   Display never creates data: the underlying role guards and PostgreSQL APIs remain authoritative. */
:root{
 --pine:#072c22;--deep:#06291f;--leaf:#14754f;--mint:#eaf7ef;
 --surface:#fff;--ink:#173127;--muted:#708278;--border:#e2ece5;
 --canvas:#f6faf7;--amber:#a46a13;--rose:#b84252;--blue:#2e71af;
 --shadow:0 3px 16px rgba(19,68,41,.045);--radius:14px;
 --premium-bg:#f5f9f7;--premium-ink:#17251f;--premium-accent:#14a668;
 --premium-grid:#e8efe9;--premium-quiet:#f4f9f5;--premium-dark:#05271b;
}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:13px;letter-spacing:-.005em;line-height:1.48;color:var(--premium-ink);background:linear-gradient(180deg,#f8fcf9 0%,#f3f8f5 100%)}
a,button,input,select,textarea{font-family:inherit}
button,a{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #5cbf89!important;outline-offset:3px}
.app-header{
 position:sticky;top:10px;z-index:150;width:calc(100% - 46px);max-width:1600px;height:61px;margin:16px auto 0;
 border-radius:13px;padding:0 18px;gap:17px;
 border:1px solid rgba(7,55,35,.13);
 background:linear-gradient(100deg,#07291e 0%,#0c3526 100%);
 box-shadow:0 8px 32px rgba(0,44,25,.12);color:#fff;
 transition:box-shadow .2s ease,border-color .2s ease;isolation:isolate;
}
.app-header .brand{font-size:21px;line-height:1;letter-spacing:-.055em;font-weight:800;gap:10px;flex-shrink:0;min-width:210px}
.app-header .brand img{width:40px;height:40px;object-fit:contain}
.app-header .brand-name{display:grid;gap:2px;color:#fff}
.app-header .brand-name small{color:#c5decf;font-size:10px;letter-spacing:.025em;font-weight:500}
.app-header .primary-nav{display:flex;align-items:center;height:100%;min-width:0;gap:3px;flex:1;overflow:visible}
.app-header .primary-nav .nav-item,.app-header .nav-more>summary{
 display:inline-flex;height:38px;align-items:center;justify-content:center;gap:7px;
 border:1px solid transparent;border-radius:9px;padding:0 10px;
 color:#d2e6d9;font-size:11px;letter-spacing:-.01em;font-weight:650;
 text-decoration:none;white-space:nowrap;position:relative
}
.app-header .primary-nav .nav-item svg,.app-header .nav-more>summary svg{opacity:.86;flex:none}
.app-header .primary-nav .nav-item.active,.app-header .primary-nav .nav-item:hover{
 color:#fff;background:#ffffff15;border-color:#ffffff0f;box-shadow:inset 0 -2px 0 #5de39c
}
.app-header .nav-more{position:relative;flex:none}
.app-header .nav-more>summary{list-style:none;cursor:pointer}
.app-header .nav-more>summary::-webkit-details-marker,.profile-menu summary::-webkit-details-marker{display:none}
.app-header .nav-more[open]>summary,.app-header .nav-more>summary:hover{color:white;background:#ffffff1b}
.app-header .nav-more-panel{
 position:absolute;z-index:35;right:0;top:46px;min-width:238px;max-height:68vh;overflow-y:auto;
 display:grid;gap:3px;padding:10px;border:1px solid #dce8df;border-radius:12px;background:white;
 box-shadow:0 14px 40px #102e1a30;
}
.app-header .nav-more-panel a{color:#334d3c!important;justify-content:flex-start;font-size:12px}
.app-header .nav-more-panel a:hover,.app-header .nav-more-panel a.active{color:#0a4b31!important;background:#eaf7ef;border:1px solid #d5ebdd;box-shadow:none}
.app-header .top-tools{margin-left:auto;gap:9px;color:#152f22;min-width:max-content;background:#f4f8f3;border-radius:10px;padding:4px 8px}
.app-header .top-tools-caption{color:#355746;font-size:11px;font-weight:700}
.app-header .premium-live-dot{width:7px;height:7px;background:#25ba7a;border-radius:100%;box-shadow:0 0 0 4px #25ba7a24}
.profile-menu{position:relative}
.profile-menu>summary{
 display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;
 color:#263b30;border-radius:9px;padding:4px 2px 4px 8px;
}
.profile-menu .user-pic{
 display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
 width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#d3ead9,#82bd93);
 color:#124531;border:2px solid #fff;font-weight:800;font-size:14px;box-shadow:0 2px 8px #153d201c
}
.profile-menu .account-wrap{display:grid;gap:2px;min-width:76px}
.profile-menu .account-caption{font-weight:800;font-size:11px;white-space:nowrap}
.profile-menu .account-wrap small{font-size:10px;color:#728a7b;font-weight:500}
.profile-panel{
 position:absolute;z-index:40;right:0;top:47px;width:260px;display:grid;gap:2px;
 padding:13px;border:1px solid #dce8df;border-radius:13px;background:#fff;
 box-shadow:0 22px 44px #09281830;color:#163a26
}
.profile-panel>strong{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#84988b;padding:5px 6px}
.profile-panel>a,.profile-panel>button{display:flex;align-items:center;gap:10px;padding:11px 10px;color:#254836;background:transparent;border:0;border-radius:8px;font-size:12px;text-align:left}
.profile-panel>a:hover,.profile-panel>button:hover{background:#ebf7ef;color:#085e3a}
.profile-panel>a[aria-current=page]{background:#e4f5e9;color:#08643b;font-weight:800}
.app-shell{max-width:1664px;width:100%;padding:7px 23px 54px;margin:0 auto}
.crumb{display:flex;gap:8px;align-items:center;color:#718679;font-size:10px;margin-bottom:7px;padding-left:4px}
.crumb a{color:#668270;text-underline-offset:4px}
.hero{
 position:relative;min-height:224px;padding:22px 30px 24px;align-items:stretch;gap:35px;
 background:linear-gradient(90deg,rgba(2,34,23,.93) 0%,rgba(2,37,24,.75) 35%,rgba(2,39,26,.1) 78%),
 url('/assets/images/hero-madagascar.webp') center 52%/cover no-repeat;
 border:1px solid rgba(0,75,39,.21);border-radius:16px;box-shadow:0 7px 23px #18381d16;
}
.hero:after{background:linear-gradient(0deg,#012d2126,transparent 40%);pointer-events:none}
.hero[data-role=expert]{background-image:linear-gradient(90deg,#04281fef 0%,#052f22d1 42%,#0b352523 82%),url('/assets/images/proof-field.webp')}
.hero[data-role=superviseur]{background-image:linear-gradient(90deg,#062c20f2 0%,#062b20c7 43%,#0b352523 85%),url('/assets/images/hero-madagascar.webp')}
.hero[data-role=admin]{background-image:linear-gradient(90deg,#06281ef4 0%,#072e21bd 43%,#123b292c 87%),url('/assets/images/hero-madagascar.webp')}
.hero-copy{position:relative;z-index:2;align-self:center;min-width:0;max-width:700px}
.hero .eyebrow{display:flex;align-items:center;gap:8px;color:#b6e6c1;letter-spacing:.17em;font-size:10px;font-weight:800;margin-bottom:10px}
.hero .eyebrow svg{width:18px;height:18px;color:#6dea92}
.hero h1{font-family:Manrope,'DM Sans',sans-serif;font-size:clamp(25px,2.8vw,40px);font-weight:800;letter-spacing:-.05em;line-height:1.08;color:white;margin:0}
.hero .hero-secondary{font-size:clamp(14px,1.75vw,23px);line-height:1.25;margin:4px 0 7px;color:#fff;font-weight:450;letter-spacing:-.035em}
.hero-description{max-width:565px;color:#e1efe5!important;font-size:12px!important;line-height:1.5!important;margin:6px 0 13px!important}
.hero-cta{display:flex;flex-wrap:wrap;gap:9px}
.hero .button{height:33px;min-height:33px;border-radius:8px;padding:0 15px;font-size:11px;font-weight:800}
.hero .button-light{background:#fff;color:#123e2a;border-color:#fff}
.hero .button-light:hover{background:#def3e4;color:#083b27;transform:translateY(-1px)}
.hero .button-glass{border:1px solid #ecfff680;color:#fff;background:#062f2599}
.hero .button-glass:hover{border-color:#eaffef;background:#ffffff24;transform:translateY(-1px)}
.hero-aside{position:relative;z-index:3;align-self:stretch;display:flex;flex-direction:column;justify-content:center;
 min-width:235px;width:247px;margin-left:auto;border:1px solid #b9d4be50;
 border-radius:13px;padding:12px 14px;background:linear-gradient(155deg,#0c3629ed,#05271fe8);backdrop-filter:blur(12px);
 box-shadow:0 4px 19px #001a1345;color:#fff
}
.hero-aside-title{display:flex;align-items:center;gap:7px;color:#d2efda;font-size:11px;font-weight:750;padding-bottom:8px;border-bottom:1px solid #bedcca24;margin-bottom:4px}
.hero-aside-title svg{width:17px;color:#8ee7ab}
.hero-stat{display:flex;align-items:center;gap:10px;padding:4px 0;min-height:30px;border-bottom:1px solid #cfedd11a}
.hero-stat>svg{flex:none;color:#b8e8c6;background:#ffffff19;padding:4px;border-radius:7px;width:25px;height:25px}
.hero-stat>span{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1}
.hero-stat strong{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.hero-stat small{font-size:10px;color:#d4e6da;text-align:right}
.hero-aside-footer{margin-top:10px;color:#a6c9b2;font-size:9px;line-height:1.4}
.subnav{margin:10px 0 0;display:flex;gap:7px;flex-wrap:wrap;max-height:38px;overflow:auto;scrollbar-width:thin}
.subnav:empty{display:none}
.subnav .nav-item{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;color:#567060;background:#ffffffda;border:1px solid #e1e9e2;border-radius:8px;font-size:10px;font-weight:650;white-space:nowrap}
.subnav .nav-item svg{width:14px;height:14px}
.subnav .nav-item:hover,.subnav .nav-item.active{color:#0b6540;border-color:#c1e9ce;background:#e9f7ee}
.info-banner,.demo-provenance{border-radius:9px;margin:10px 0;padding:9px 14px!important;background:#ebf6ef!important;border:1px solid #d4ebde!important;color:#42614b!important;font-size:11px!important;line-height:1.5;box-shadow:none!important}
.info-banner strong,.demo-provenance strong{color:#174d30}
.workspace-content{margin-top:10px;display:grid;gap:13px}
.section-head{margin:9px 0 10px}
.section-head h2{font:800 16px/1.3 Manrope,'DM Sans',sans-serif;color:#102e20;letter-spacing:-.04em}
.section-head p{color:#789080;font-size:11px;margin:2px 0}
.grid{gap:12px}
.card,.demo-tile,.workspace-data,.demo-plant,.kpi,.demo-metric{
 border:1px solid #e4ede7!important;border-radius:13px!important;background:#fff!important;
 box-shadow:0 4px 15px rgba(15,71,34,.045)!important
}
.card:hover,.demo-tile:hover,.demo-plant:hover{border-color:#c9e3d2!important}
.card-pad,.demo-tile,.workspace-data{padding:13px 14px}
.card h3,.card-header h3,.demo-tile-title,.demo-page-head h2{font-family:Manrope,'DM Sans',sans-serif;font-size:13px;line-height:1.3;font-weight:800;color:#1c2e22;letter-spacing:-.03em}
.card-header{margin-bottom:12px}
.kpi-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:10px 0}
.kpi{min-height:100px;padding:13px 15px!important;position:relative;overflow:hidden}
.kpi::after{content:'';position:absolute;right:12px;bottom:12px;width:32%;height:24px;background:linear-gradient(180deg,transparent,#d1eddd77);clip-path:polygon(0 85%,16% 50%,35% 72%,48% 30%,64% 50%,80% 20%,100% 35%,100% 100%,0 100%);opacity:.6;pointer-events:none}
.kpi:nth-child(5n+2)::after{background:linear-gradient(180deg,transparent,#f5d9d377)}
.kpi:nth-child(5n+3)::after{background:linear-gradient(180deg,transparent,#e4e9fd99)}
.kpi-top{color:#728579;font-weight:700;gap:12px}
.kpi-top span:first-child{font-size:10px;letter-spacing:.005em}
.kpi-top span:last-child{width:33px;height:33px;display:flex;align-items:center;justify-content:center;background:#ebf8ee;color:#269861;border-radius:10px;font-size:18px}
.kpi:nth-child(5n+2) .kpi-top span:last-child{background:#fff0ee;color:#dd5364}
.kpi:nth-child(5n+3) .kpi-top span:last-child{background:#ebf3ff;color:#407fc6}
.kpi:nth-child(5n+4) .kpi-top span:last-child{background:#f3eeff;color:#7d64bb}
.kpi>b{font:800 clamp(21px,2vw,27px)/1.1 Manrope,'DM Sans',sans-serif;letter-spacing:-.05em;color:#10271d;font-variant-numeric:tabular-nums}
.kpi small{font-size:10px;color:#7b8d7c;max-width:85%}
.kpi .status{font-size:10px}
.status,.demo-pill,.demo-signal{border-radius:100px!important;font-size:10px!important;font-weight:700!important;letter-spacing:0!important;padding:4px 9px!important}
.status.alert,.demo-signal.danger{color:#c43848!important;background:#ffeaeb!important;border-color:#ffd9df!important}
.status.warn,.demo-signal.warning{color:#bd792b!important;background:#fff2de!important;border-color:#fde8ca!important}
.status.info{color:#397cb0!important;background:#e6f3ff!important}
.status:not(.warn):not(.alert):not(.info):not(.neutral){color:#128355!important;background:#dff6e8!important;border-color:#cff1d9!important}
.button{border-radius:8px;font-size:11px;font-weight:750}
.button-primary{background:#0b5036;color:#fff;border-color:#0b5036}
.button-primary:hover{background:#11734a;color:#fff}
.card .small-link,.demo-tile a{color:#1e6543}
.table-scroll{border:1px solid #edf0ec;border-radius:8px}
.data-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;white-space:nowrap}
.data-table th{background:#f5f9f6;color:#657a69;font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:800;padding:11px 9px}
.data-table td{font-size:11px;color:#354c3f;padding:10px 9px;border-color:#eaf0eb}
.data-table tbody tr:hover td{background:#f4faf6}
.panel-item{border-bottom:1px solid #edf3ee;border-radius:7px;padding:10px 8px}
.panel-item:hover{background:#f3f9f5}
.panel-item small,.muted,.tiny{color:#819186}
.round-icon{background:#eaf8ed;color:#148959;border-radius:10px}
.alert-card{background:#fff;border-radius:12px;border:1px solid #e2eee5}
.demo-page-head h1,.demo-page-head h2{font-family:Manrope,'DM Sans',sans-serif}
.demo-metrics,.demo-cards{gap:11px}
.demo-metric{padding:13px}
.demo-metric strong{font-family:Manrope,'DM Sans',sans-serif;font-variant-numeric:tabular-nums}
.demo-plant img,.plant-photo img{object-fit:cover}
.demo-card-body{padding:11px}
.workspace-data{margin-bottom:10px}
.workspace-stats{gap:8px}
.workspace-stats article,.workspace-stats button{border:1px solid #e0ece4;border-radius:11px;background:linear-gradient(175deg,#fff,#f8fcf9)}
.workspace-stats strong{font:800 22px Manrope,'DM Sans',sans-serif;color:#0d5035}
.footer{margin-top:20px;color:#8d9b91;border-top:1px solid #e0e9e1;padding-top:14px}
@media(max-width:1370px){
 .app-header .brand{min-width:160px}
 .app-header .primary-nav .nav-item,.app-header .nav-more>summary{padding:0 8px;font-size:10px;gap:5px}
 .app-header .primary-nav .nav-item svg{width:15px;height:15px}
 .top-tools-caption,.premium-live-dot{display:none}
 .hero-aside{width:225px}
}
@media(max-width:1150px){
 .app-header .brand{min-width:auto}
 .app-header .primary-nav{gap:0}
 .app-header .primary-nav .nav-item{padding:0 7px}
 .app-header .primary-nav .nav-item span{display:none}
 .app-header .nav-more>summary{padding:0 9px}
 .app-header .nav-more>summary span{display:none}
 .hero{min-height:218px}
 .kpi-row{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* One responsive navigation breakpoint: menu and toggle switch together. */
@media(max-width:900px){
 .app-header{width:calc(100% - 24px);margin:9px 12px 0;height:58px;top:8px;padding:0 11px;gap:9px}
 .app-header .brand{font-size:18px;min-width:0}
 .app-header .brand img{width:32px;height:32px}
 .app-header .brand-name small{font-size:9px}
 .app-header .mobile-menu{display:inline-flex;flex:none;align-items:center;justify-content:center;min-width:44px;min-height:44px;
  color:#fff;background:#ffffff14;border:1px solid #ffffff55;border-radius:9px;font-size:19px}
 .app-header .mobile-menu svg{width:22px;height:22px;flex:none}
 .app-header .mobile-menu:hover,.app-header .mobile-menu[aria-expanded=true]{background:#ffffff28;border-color:#b7ecca}
 .app-header .primary-nav{position:absolute;left:0;right:0;top:calc(100% + 6px);display:none;
  height:auto;min-width:0;max-height:calc(100dvh - 100px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  padding:12px;background:linear-gradient(145deg,#052b20,#0a422e);border:1px solid #39704b;border-radius:12px;
  box-shadow:0 18px 42px #0322188c;align-items:stretch;flex-wrap:wrap;gap:7px}
 .app-header .primary-nav.open{display:flex}
 .app-header .primary-nav .nav-item{flex:1 1 calc(50% - 8px);width:auto;min-width:0;min-height:43px;
  justify-content:flex-start;padding:9px 11px;font-size:12px;white-space:normal;border:1px solid #ffffff14}
 .app-header .primary-nav .nav-item span{display:inline;overflow-wrap:anywhere}
 .app-header .nav-more{flex:1 1 calc(50% - 8px);min-width:0}
 .app-header .nav-more>summary{width:100%;min-height:43px;justify-content:flex-start;
  padding:9px 11px;color:#e9ffec;font-size:12px}
 .app-header .nav-more>summary span{display:inline}
 .app-header .nav-more-panel{position:static;left:auto;right:auto;width:100%;min-width:0;
  max-height:42vh;margin-top:8px;border-radius:9px;box-shadow:inset 0 0 0 1px #dce8e1;overflow-y:auto}
 .app-header .top-tools{margin-left:auto}
 .app-header .profile-menu .account-wrap{display:none}
 .app-header .premium-live-dot,.app-header .top-tools-caption{display:none}
}
.app-header.is-scrolled{border-color:#3875565c;box-shadow:0 12px 36px #092a2280,0 2px 6px #001f151f}
.app-header.is-scrolled .brand-name{color:#fff}
.app-header .mobile-menu:focus-visible{outline:3px solid #99ecc2;outline-offset:3px}

@media(max-width:760px){
 .app-shell{padding:10px 11px 32px}
 .crumb{font-size:9px}
 .hero{min-height:260px;padding:21px 17px;flex-direction:column;gap:14px;border-radius:12px}
 .hero .hero-description{max-width:100%;font-size:11px!important}
 .hero h1{font-size:25px}
 .hero .hero-secondary{font-size:16px}
 .hero-aside{width:100%;min-width:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:9px}
 .hero-aside-title,.hero-aside-footer,.hero-aside>p{grid-column:1/-1}
 .hero-stat{padding:4px 6px}
 .hero-stat>span{display:block}
 .hero-stat small{display:block;text-align:left;font-size:9px}
 .hero-stat strong{font-size:12px}
 .kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .kpi{min-height:90px}
 .grid.cols-2,.grid.cols-3,.grid.cols-4,.grid.cols-even{grid-template-columns:1fr}
 .subnav{max-height:none;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
 .info-banner,.demo-provenance{font-size:10px!important}
}
@media(max-width:375px){
 .app-header .profile-menu .user-pic{width:29px;height:29px}
 .app-header .brand-name small{display:none}
 .hero-aside{grid-template-columns:1fr 1fr}
 .hero-stat>svg{display:none}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
.premium-private-data{margin-top:12px;min-width:0;max-width:100%}
.premium-private-data>.workspace-data{background:#fff}

/* Role-specific client dashboard modules derived from the eight supplied client screens. */
.premium-client-dashboard{display:grid;gap:13px}
.premium-demo-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.premium-demo-kpi{display:grid;position:relative;align-content:start;gap:4px;min-width:0;min-height:105px;padding:12px 15px 12px 58px;background:#fff;border:1px solid #e4eee8;border-radius:12px;box-shadow:0 3px 14px #17452708}
.premium-demo-kpi-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;position:absolute;left:14px;top:16px;background:#e5f7eb;color:#179457;border-radius:9px;font-size:19px}
.premium-demo-kpi:nth-child(2) .premium-demo-kpi-icon{background:#ffeeef;color:#cf4b55}
.premium-demo-kpi:nth-child(4) .premium-demo-kpi-icon{background:#e8f3ff;color:#4087b9}
.premium-demo-kpi small{font-size:10px;color:#839287;font-weight:750}
.premium-demo-kpi strong{font:800 clamp(17px,2vw,26px)/1.1 Manrope,sans-serif;color:#142e21;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.premium-demo-kpi>span:last-child{font-size:10px;color:#688574}
.premium-overview-grid,.premium-middle-grid{display:grid;grid-template-columns:1.13fr 1fr;gap:12px;align-items:stretch}
.premium-overview-grid>.demo-tile,.premium-middle-grid>.demo-tile{min-width:0}
.premium-panel-intro{font-size:11px;color:#718878;line-height:1.45;margin:4px 0 10px}
.premium-plot-list{display:grid;gap:5px;max-height:250px;overflow-y:auto;scrollbar-color:#cadccf #fff;scrollbar-width:thin}
.premium-plot-row{display:flex;align-items:center;gap:11px;padding:7px 9px;background:#f9fbf9;border:1px solid #edf2ee;border-radius:9px;color:#234132;text-decoration:none;min-height:38px}
.premium-plot-row:hover{background:#eef8f1;border-color:#cde8d7}
.premium-plot-leaf{width:27px;height:27px;display:grid;place-items:center;color:#118b50;background:#e5f7eb;border-radius:8px;font-size:16px}
.premium-plot-row>span:nth-child(2){display:grid;gap:1px;flex:1}
.premium-plot-row strong{font-size:11px;color:#203c2b}
.premium-plot-row small{font-size:9px;color:#879787}
.premium-online,.premium-no-source{font-size:9px;border-radius:100px;padding:4px 7px;background:#e7f8ed;color:#20895a;white-space:nowrap}
.premium-no-source{background:#f2f4f1;color:#7d8a7f}
.premium-overview-grid .demo-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.premium-overview-grid .demo-metric{min-height:84px;display:grid;align-content:start;padding:10px!important;gap:4px}
.premium-overview-grid .demo-metric strong{font-size:19px;line-height:1.1;letter-spacing:-.04em}
.premium-overview-grid .demo-metric span{font-size:9px;color:#839185}
.premium-overview-grid .demo-metric small{font-size:10px}
.premium-panel-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.premium-middle-grid{grid-template-columns:1.55fr 1fr}
.premium-middle-grid>.demo-tile{min-height:350px}
.premium-middle-grid .demo-toolbar{gap:8px}
.premium-middle-grid .instrument-panel{border:1px solid #edf2ed;border-radius:10px;padding:10px!important;margin:4px 0}
.premium-middle-grid .instrument-canvas{height:220px}
.premium-middle-grid .demo-list-row{gap:9px;border-bottom:1px solid #edf1ee}
.premium-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:2px}
.premium-gallery-head h2{font:800 15px Manrope,sans-serif;letter-spacing:-.04em;color:#172b1e;margin:0 0 2px}
.premium-gallery-head p{font-size:11px;color:#829285;margin:0}
.premium-plant-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.premium-plant-tile{display:grid;align-content:start;gap:8px;min-width:0;padding:7px 7px 10px;background:#fff;border:1px solid #e0eae4;border-radius:11px;color:#24352b;box-shadow:0 3px 14px #193d1908}
.premium-plant-tile:hover{border-color:#97c9a4;transform:translateY(-2px);box-shadow:0 8px 24px #17482e18}
.premium-plant-image{position:relative;width:100%;height:112px;border-radius:7px;overflow:hidden;background:#e4eee5}
.premium-plant-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.premium-plant-tile:hover img{transform:scale(1.035)}
.premium-plant-image span{position:absolute;right:5px;bottom:5px;background:#082e24cd;color:#e9faee;border:1px solid #ffffff33;border-radius:3px;padding:3px 5px;font-size:8px;letter-spacing:.03em;font-weight:800}
.premium-plant-title{display:grid;gap:3px}
.premium-plant-title strong{font-size:11px;font-weight:800}
.premium-plant-title small{font-size:9px;color:#89968c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.premium-plant-condition{justify-self:start;padding:3px 7px;border-radius:100px;background:#e9f8ee;color:#1b8552;font-size:9px}
.premium-disclosure{font-size:10px;color:#667d6b;margin:0 0 6px;padding:10px 13px;background:#eff7f0;border:1px solid #dbe9de;border-radius:9px}
@media(max-width:1150px){
 .premium-demo-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .premium-plant-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 .premium-demo-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .premium-demo-kpi{padding:10px 11px 10px 47px;min-height:96px}
 .premium-demo-kpi-icon{left:8px;top:12px}
 .premium-overview-grid,.premium-middle-grid{grid-template-columns:1fr}
 .premium-overview-grid .demo-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .premium-plant-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 .premium-plant-image{height:128px}
}

/* Expert: triage first, longitudinal evidence next, no fictitious validation. */
.premium-expert-workspace,.premium-supervisor-workspace,.premium-admin-workspace{display:grid;gap:13px;min-width:0;max-width:100%}
.premium-expert-workspace>.kpi-row{grid-template-columns:repeat(5,minmax(0,1fr))}
.premium-expert-grid{display:grid;grid-template-columns:minmax(210px,.91fr) minmax(370px,1.9fr) minmax(225px,.94fr);gap:12px;align-items:start}
.premium-expert-left,.premium-expert-middle,.premium-expert-right,.premium-supervisor-main,.premium-supervisor-mid,.premium-supervisor-side,.premium-admin-left,.premium-admin-middle,.premium-admin-right{display:grid;gap:12px;min-width:0;align-content:start}
.premium-expert-person{display:flex;align-items:center;gap:9px;margin:2px 0 10px;padding:11px 9px;border:1px solid #e4eee8;background:#f7faf7;border-radius:10px;min-width:0}
.premium-expert-person svg{color:#12794d;flex:none}
.premium-expert-person>span:nth-child(2),.premium-case-plant>span:nth-child(2){display:grid;gap:4px;min-width:0;flex:1}
.premium-expert-person strong,.premium-case-plant strong{font-size:11px;white-space:normal}
.premium-expert-person small,.premium-case-plant small{font-size:9px;color:#87998a}
.premium-expert-person .status{flex:none}
.premium-case-plant{display:flex;align-items:center;gap:9px;padding:8px 5px;color:#284035;border-bottom:1px solid #edf2ee}
.premium-case-plant:hover{background:#f4faf6;border-radius:8px}
.premium-case-icon{width:31px;height:31px;display:grid;place-items:center;color:#148756;background:#e7f6ea;border-radius:8px}
.premium-priority-case{display:flex;align-items:center;gap:11px;padding:12px 4px;border-bottom:1px solid #e8f0e9;min-width:0}
.premium-priority-case:last-child{border-bottom:none}
.premium-case-photo{position:relative;flex:none;width:66px;height:64px;border-radius:9px;overflow:hidden;background:#eaf4ed}
.premium-case-photo img{display:block;width:100%;height:100%;object-fit:cover}
.premium-case-photo small{position:absolute;bottom:3px;right:3px;font-size:8px;padding:2px 4px;background:#123c2dcc;color:white;border-radius:3px}
.premium-case-info{display:grid;gap:4px;flex:1;min-width:0}
.premium-case-info strong{font-size:12px;line-height:1.35;color:#1c3327}
.premium-case-info>small{font-size:10px;color:#7a8c7c}
.premium-case-tags{display:flex;gap:5px;flex-wrap:wrap}
.premium-priority-case>.button{margin-left:5px;flex:none}
.premium-task-list{display:grid}
.premium-task{display:flex;align-items:start;gap:9px;padding:9px 2px;border-bottom:1px solid #e9efeb}
.premium-task:last-child{border-bottom:0}
.premium-task-check{color:#18a369;font-size:19px;line-height:1}
.premium-task>span:last-child{display:grid;gap:3px}
.premium-task strong{font-size:11px;font-weight:750}
.premium-task small{font-size:9px;color:#89968e}
.premium-supervisor-layout{display:grid;grid-template-columns:minmax(340px,1.5fr) minmax(310px,1.05fr) minmax(230px,.86fr);gap:12px;align-items:start}
.premium-supervisor-row{display:flex;gap:9px;align-items:center;min-width:0;padding:9px 2px;border-bottom:1px solid #edf1ec}
.premium-supervisor-row:last-child{border-bottom:0}
.premium-supervisor-row>svg{width:24px;height:24px;flex:none;padding:5px;background:#e8f8ee;border-radius:8px;color:#1a9360}
.premium-supervisor-led{width:10px;height:10px;flex:none;border-radius:50%;background:#e98a50;box-shadow:0 0 0 4px #fdf0e6}
.premium-supervisor-row>span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}
.premium-supervisor-row strong{font-size:11px;color:#23372a;line-height:1.35}
.premium-supervisor-row small{font-size:9px;color:#8e9b90}
.premium-supervisor-row .status{flex:none}
.premium-supervisor-layout .map,.premium-admin-grid .map{height:245px;background:#0e3428}
.premium-supervisor-layout .map-empty,.premium-admin-grid .map-empty{height:100%;min-height:220px;display:grid;place-items:center;background:linear-gradient(145deg,#103d2bb8,#04251ed9),url('/assets/images/hero-madagascar.webp') center/cover}
.premium-supervisor-layout .map-empty>div,.premium-admin-grid .map-empty>div{padding:20px 26px;text-align:center;color:white}
.premium-supervisor-layout .map-empty strong,.premium-admin-grid .map-empty strong{font-size:14px;color:#fff}
.premium-supervisor-layout .map-empty p,.premium-admin-grid .map-empty p{font-size:11px;color:#d7e9dc}
.premium-supervisor-layout .map-empty small,.premium-admin-grid .map-empty small{font-size:10px;color:#99cbad}
.premium-supervisor-main .instrument-panel{border-radius:10px}
.premium-admin-workspace>.kpi-row{grid-template-columns:repeat(8,minmax(0,1fr))}
.premium-admin-workspace>.kpi-row .kpi{padding:10px!important;min-height:92px}
.premium-admin-workspace>.kpi-row .kpi-top span:first-child{font-size:9px}
.premium-admin-workspace>.kpi-row .kpi-top span:last-child{width:25px;height:25px;font-size:14px}
.premium-admin-workspace>.kpi-row .kpi>b{font-size:19px}
.premium-admin-workspace>.kpi-row .kpi small{font-size:9px}
.premium-admin-grid{display:grid;grid-template-columns:minmax(330px,1.33fr) minmax(330px,1.27fr) minmax(275px,1fr);gap:12px;align-items:start}
.premium-admin-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.premium-admin-actions>a{display:flex;gap:7px;align-items:center;padding:11px 9px;border:1px solid #e5eee7;border-radius:9px;background:#f7fbf8;color:#275b40;font-size:10px;font-weight:800}
.premium-admin-actions>a:hover{background:#e8f7ec;border-color:#c8e6d0}
.premium-admin-actions>a svg{flex:none;width:16px;color:#1b995d}
.premium-admin-actions>a span:nth-child(2){flex:1}
@media(max-width:1250px){
 .premium-expert-grid,.premium-supervisor-layout,.premium-admin-grid{grid-template-columns:1fr 1.2fr}
 .premium-expert-right,.premium-supervisor-side,.premium-admin-right{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
 .premium-admin-workspace>.kpi-row{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:760px){
 .premium-expert-workspace>.kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .premium-expert-grid,.premium-supervisor-layout,.premium-admin-grid{grid-template-columns:minmax(0,1fr)}
 .premium-expert-left,.premium-expert-middle,.premium-expert-right,.premium-supervisor-side,.premium-admin-right{grid-column:auto;grid-template-columns:1fr}
 .premium-admin-workspace>.kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .premium-priority-case{flex-wrap:wrap}
 .premium-case-info{min-width:calc(100% - 80px)}
 .premium-priority-case>.button{margin-left:77px}
}

/* Reference geometry: dense 1448px desktop composition with a compact botanical hero. */
@media (min-width:901px){
 .app-shell{padding-top:7px}
 .app-shell>.crumb{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
 .hero{height:238px;min-height:0;padding:17px 25px;gap:22px}
 .hero[data-role="expert"]{height:223px}
 .hero[data-role="superviseur"]{height:177px}
 .hero[data-role="admin"]{height:194px}
 .hero .hero-copy{align-self:center}
 .hero .eyebrow{margin-bottom:5px;font-size:9px}
 .hero h1{font-size:clamp(26px,2.55vw,35px);line-height:1.08;letter-spacing:-.045em}
 .hero .hero-secondary{font-size:clamp(13px,1.5vw,19px);margin:3px 0 5px}
 .hero .hero-description{font-size:11px!important;max-width:660px;line-height:1.4!important;margin:5px 0 8px!important}
 .hero .hero-cta{gap:8px;margin-top:8px}
 .hero .button{height:30px;min-height:30px;padding:0 12px}
 .hero-aside{align-self:center;max-height:100%;padding:8px 12px;min-width:211px;width:237px}
 .hero-aside-title{font-size:10px;padding-bottom:5px;margin-bottom:2px}
 .hero-stat{min-height:25px;padding:2px 0}
 .hero-stat>svg{width:22px;height:22px}
 .hero-stat strong{font-size:12px}
 .hero-stat small{font-size:9px}
 .hero-aside-footer{font-size:8px;margin-top:5px}
 .hero[data-role="superviseur"] .hero-aside-footer,.hero[data-role="admin"] .hero-aside-footer{display:none}
 .subnav:empty{display:none}
}
@media (max-width:900px){
 .hero{height:auto;min-height:0}
 .hero[data-role]{min-height:225px}
 .hero-aside{max-height:none}
}
/* Shared visual language on every route, including data-driven panels. */
.card,.workspace-data,.demo-tile,.demo-plant{transition:box-shadow .22s ease,border-color .22s ease,transform .22s ease}
.card:focus-within,.workspace-data:focus-within,.demo-tile:focus-within{border-color:#a7d5b5!important;box-shadow:0 0 0 3px #0e955018!important}
.data-table thead th{position:sticky;top:0;z-index:1;background:#f2f8f4}
.data-table tbody tr:nth-child(even) td{background:#fbfdfb}
.data-table tbody tr:hover td{background:#edf9f1}
.status,.demo-pill{min-height:20px;line-height:1.2}
.primary-nav .nav-item svg{width:16px;height:16px;stroke-width:1.8}
.premium-plant-image img,.plant-photo img,.detail-photo{transition:transform .35s cubic-bezier(.2,.75,.3,1)}
.premium-plant-card:hover .premium-plant-image img,.plant-card:hover .plant-photo img{transform:scale(1.035)}
@media(prefers-reduced-motion:reduce){.premium-plant-image img,.plant-photo img,.detail-photo{transition:none!important}}
.kpi-top>span:last-child svg{width:18px;height:18px;stroke-width:1.8}
.round-icon svg{width:17px;height:17px;stroke-width:1.8}
.hero-stat>svg,.premium-admin-actions svg,.premium-supervisor-row svg{stroke-linecap:round;stroke-linejoin:round}
/* Every trend card is populated from five verified API series. Never decorative faux sparklines. */
.kpi::after{display:none!important}
.premium-microgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:10px 0 12px}
.premium-mini-card{min-width:0;background:#f9fcfa;border:1px solid #e7efea;border-radius:9px;padding:10px 8px 8px;display:grid;gap:4px;overflow:hidden}
.premium-mini-top{display:flex;align-items:start;justify-content:space-between;gap:3px}
.premium-mini-top small{color:#536f5e;font-size:9px;line-height:1.25;font-weight:750;min-height:24px}
.premium-mini-source{color:#20855a;background:#e7f5eb;padding:2px 3px;border-radius:4px;font-size:7px;font-weight:850}
.premium-mini-number{font:800 clamp(12px,1vw,16px)/1.3 Manrope,'DM Sans',sans-serif;color:#1b412c;letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.premium-mini-legend{color:#8c9f90;font-size:8px;white-space:nowrap}
.premium-mini-canvas{display:block;width:100%;height:60px;max-width:100%}
.premium-mini-error,.premium-mini-loading{grid-column:1/-1;font-size:11px;color:#768978;padding:14px;background:#f5f9f5}
@media(max-width:1390px){.premium-microgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.premium-microgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1391px){.premium-overview-grid{grid-template-columns:minmax(320px,.78fr) minmax(0,1.5fr)}}
/* Evidence-based professional dashboards. Ring and bar proportions come from public SQL only. */
.role-viz-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;min-width:0}
.role-viz-panel{background:#fff;border:1px solid #e4eee7;border-radius:12px;padding:12px 16px;min-width:0;box-shadow:0 3px 14px #123d2110}
.role-viz-heading{display:grid;gap:3px;margin-bottom:10px}
.role-viz-heading strong{font:800 12px/1.2 Manrope,sans-serif;color:#1a3927}
.role-viz-heading small{color:#899b8a;font-size:10px}
.role-viz-bars{display:grid;gap:7px}
.role-viz-line{display:grid;gap:4px}
.role-viz-line-top{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#647c6c}
.role-viz-line-top strong{color:#234932;font-weight:850}
.role-viz-track{background:#edf4ee;min-height:7px;border-radius:99px;overflow:hidden}
.role-viz-fill{display:block;height:7px;border-radius:99px;background:linear-gradient(90deg,#3ccb88,#087d50);transition:width .25s ease}
.role-viz-line:nth-child(3n+2) .role-viz-fill{background:linear-gradient(90deg,#a1e4aa,#36a57c)}
.role-viz-line:nth-child(3n) .role-viz-fill{background:linear-gradient(90deg,#70c9d1,#4887a6)}
.role-viz-ring-wrap{display:flex;align-items:center;gap:20px;min-height:138px}
.role-viz-ring{width:126px;height:126px;flex:none;border-radius:50%;padding:16px;display:grid;place-items:center}
.role-viz-ring-hole{width:100%;height:100%;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column}
.role-viz-ring-hole strong{font:850 26px Manrope,sans-serif;color:#1d4430}
.role-viz-ring-hole small{font-size:9px;color:#768776}
.role-viz-legend{display:grid;gap:9px;flex:1;min-width:0}
.role-viz-legend-row{display:flex;align-items:center;gap:8px;font-size:10px;color:#738578}
.role-viz-legend-row i{height:8px;width:8px;flex:none;border-radius:3px}
.role-viz-legend-row span{flex:1;min-width:0}
.role-viz-legend-row strong{color:#244936;font-weight:800}
.role-viz-empty{font-size:11px;padding:12px;color:#728576}
@media(max-width:950px){.role-viz-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.role-viz-fill{transition:none}}

/* Clear, usable actions in small viewports and consistent text hierarchy. */
.view-tabs button{min-height:36px}
.atlas-plot-actions button,.atlas-plot-actions a{min-height:36px}
@media(max-width:760px){.view-tabs button,.atlas-plot-actions button,.atlas-plot-actions a{min-height:40px}}

/* Keyboard navigation for wide data tables. */
.table-scroll:focus-visible{outline:3px solid #48a878;outline-offset:2px;border-radius:8px}
.table-scroll{scrollbar-gutter:stable}

/* Keep the accessible skip link above the persistent navigation. */
.skip:focus{position:fixed;top:8px;left:8px;z-index:300;box-shadow:0 6px 22px #0525144d;border-radius:9px}

/* Role-specific, accessible context beneath navigation. Scope is descriptive,
   never a role grant or an assertion about live private data. */
.role-context{
 display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,.9fr);
 gap:18px;align-items:center;margin:12px 0 18px;padding:17px 21px;
 background:linear-gradient(112deg,#ffffff 0%,#f1f8f3 100%);
 border:1px solid #dce9df;border-radius:16px;
 box-shadow:0 4px 21px rgba(13,60,37,.045);
}
.role-context-main,.role-context-side{min-width:0}
.role-context-kicker{
 display:block;color:#14754f;font-size:10px;text-transform:uppercase;
 letter-spacing:.075em;font-weight:800;margin-bottom:5px;
}
.role-context-main strong{font:800 clamp(14px,1.6vw,18px)/1.3 Manrope,'DM Sans',sans-serif;color:#173127}
.role-context-main p,.role-context-side p{margin:6px 0 0;color:#4f6658;font-size:12px;line-height:1.6}
.role-context-side{border-left:1px solid #d9e7dd;padding-left:21px}
.role-context-side>span{font-size:10px;letter-spacing:.045em;text-transform:uppercase;color:#5b7564;font-weight:800}
.role-context-side a{display:inline-flex;margin-top:9px;min-height:32px;align-items:center;color:#126c49;font-weight:750;text-underline-offset:4px}
.role-context-side a:hover{color:#06442d}
.role-context-side a:focus-visible{outline:3px solid #14754f;outline-offset:3px;border-radius:3px}
@media(max-width:760px){
 .role-context{grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 0 15px;padding:16px}
 .role-context-side{border-left:0;border-top:1px solid #d9e7dd;padding:11px 0 0}
 .role-context-main strong{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.role-context a{transition:none}}
