.app-sidebar { scrollbar-width: thin; }
.menu-content { gap: 1.4rem; }
.app-nav a { padding-block: .55rem; }
.nav-heading { margin-bottom: .6rem; letter-spacing: .12em; }
.plant-picker { margin-top: .85rem; border-top: 1px solid #e3ece9; padding-top: .75rem; }
.plant-picker > summary { display: flex; align-items: center; justify-content: space-between; padding: .4rem .65rem; cursor: pointer; font-weight: 650; list-style: none; }
.plant-picker > summary::-webkit-details-marker { display: none; }
.tree-toggle { border: 1px solid #cfddd7; border-radius: 5px; width: 1.2rem; height: 1.2rem; display: grid; place-items: center; color: #237d63; }
.tree-toggle::before { content: "+"; }
.plant-picker[open] > summary .tree-toggle::before { content: "−"; }
.plant-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.plant-search { width: 100%; min-width: 0; margin: .45rem 0; box-sizing: border-box; padding: .5rem .65rem; font-size: .82rem; background: #f7faf9; }
.plant-tree { display: flex; flex-direction: column; flex-wrap: nowrap; max-height: 14rem; overflow-y: auto; scrollbar-width: thin; }
.plant-tree a { flex: 0 0 auto; border-left: 2px solid #dce9e3; margin-left: .7rem; padding: .5rem .7rem; text-decoration: none; color: #29463b; overflow-wrap: anywhere; font-size: .84rem; }
.plant-tree a small { display: block; font-size: .71rem; color: #60746d; padding-top: .2rem; }
.plant-tree a[aria-current], .plant-tree a:hover { background: #eaf5ef; border-color: #188b68; }
.plant-tree [hidden], .plant-search-empty[hidden] { display: none; }
.plant-list-note, .plant-search-empty { font-size: .75rem; padding: 0 .65rem; }
.selected-plant-name { color: #1d745c; font-weight: 650; font-size: .9rem; margin: 0 .7rem .55rem; overflow-wrap: anywhere; }
.workspace-intro { max-width: 65rem; line-height: 1.6; }
.workspace-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.workspace-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.workspace-panels .card { margin: 0; }
.workspace-table small { display: block; color: #63756f; margin-top: .25rem; }
.workspace-table td { vertical-align: top; overflow-wrap: anywhere; }
.workspace-table a { text-underline-offset: .2rem; }
.workspace-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin: 1rem 0; }
.workspace-toolbar label { display: grid; gap: .4rem; font-size: .85rem; }
.workspace-pagination { display: flex; gap: 1rem; align-items: center; margin-block: 1rem; }
.access-form { max-width: 55rem; }
.access-form fieldset { border: 1px solid #dce8e2; border-radius: .7rem; margin: 1rem 0; padding: 1rem; }
.access-form legend { font-weight: 650; padding-inline: .3rem; }
.access-form .grant-row { display: grid; grid-template-columns: 1fr minmax(10rem, 14rem); gap: 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #eff3f1; }
.access-form .grant-row label { overflow-wrap: anywhere; }
.access-form .grant-row select { width: 100%; }
.access-form .grant-row:last-child { border: 0; }
.access-form input:not([type=checkbox]):not([type=hidden]) { width: min(100%, 28rem); box-sizing: border-box; }
.access-form .errorlist { color: #ac3030; }
.access-form small.muted { display: block; margin-top: .5rem; }
.access-form .account-toggle { display: flex; align-items: center; gap: .6rem; }
.access-form .account-toggle input { margin: 0; }
.role-guide { display: grid; gap: .45rem; font-size: .88rem; }
.role-guide p { margin: 0; }
@media(max-width:760px) {
  .workspace-menu[open] .nav-heading, .workspace-menu[open] .sidebar-plant { display: block; }
  .workspace-menu[open] .app-nav { flex-direction: column; }
  .plant-tree { max-height: 12rem; }
  .access-form .grant-row { grid-template-columns: 1fr; gap: .3rem; }
}
