.harvest-species-options{margin:2px 0 12px 25px;padding:8px 0 8px 10px;border-left:2px solid #8d9ba855;font-size:12px}
.harvest-species-options summary{cursor:pointer;font-weight:700;margin-bottom:6px}
.harvest-species-options fieldset{border:0;padding:0;margin:0;min-width:0}
.harvest-species-options fieldset label{display:flex;align-items:center;gap:7px;min-height:32px;cursor:pointer;font-size:12px}
.harvest-species-options input{width:16px;height:16px;margin:0;accent-color:#556879}
.harvest-species-options small{font-size:10px;opacity:.75}
.harvest-species-note{display:block;margin-top:5px;line-height:1.5}
.harvest-species-options fieldset:disabled{opacity:.45}
.harvest-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.desktop-layer-panel{overflow:visible}
#desktop-layer-content{max-height:calc(100dvh - 165px);overflow-y:auto;overscroll-behavior:contain}
.left-panel{max-height:calc(100dvh - 135px);overflow-y:auto;overscroll-behavior:contain}
.harvest-species-actions{display:flex;gap:8px;margin:6px 0}
.harvest-class-legend{display:flex;flex-wrap:wrap;gap:9px;margin:8px 0;font-size:10px}
.harvest-class-legend span{display:flex;align-items:center;gap:4px}
.harvest-class-legend i{display:block;width:12px;height:12px;border:1px solid #9da9b6;border-radius:3px}
.harvest-species-actions button{font:inherit;font-size:11px;padding:5px 8px;min-height:28px;border:1px solid #97a7b5;border-radius:6px;background:#f1f5f8;color:#233b50;cursor:pointer}
@media(max-height:600px){.left-panel{max-height:calc(100dvh - 100px)}#desktop-layer-content{max-height:calc(100dvh - 120px)}}
.harvest-rights-open{display:block;margin:0 0 8px 25px;padding:6px 12px;min-height:32px;border:1px solid #9babb9;border-radius:7px;background:#edf3f8;color:#233b50;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.harvest-species-options.harvest-rights-drawer{position:fixed;z-index:45;left:12px;top:90px;width:310px;box-sizing:border-box;max-height:calc(100dvh - 24px);overflow-y:auto;margin:0;padding:15px;border:1px solid #bac8d3;border-radius:12px;background:#fff;color:#172536;box-shadow:0 8px 28px #0003;visibility:hidden;opacity:0;transform:translateX(-24px);pointer-events:none;transition:transform .2s ease,opacity .2s ease,visibility .2s}
.harvest-species-options.harvest-rights-drawer.is-open{visibility:visible;opacity:1;transform:translateX(0);pointer-events:auto}
.harvest-drawer-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:16px}
.harvest-drawer-header button{background:transparent;color:inherit;border:0;font-size:25px;min-height:36px;min-width:36px;cursor:pointer}
.harvest-rights-drawer .harvest-class-legend{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:14px}
.harvest-type-button{border:1px solid var(--type-color);border-radius:7px;background:#f5f7f9;color:#44505a;padding:8px 5px;font:inherit;font-size:12px;cursor:pointer}
.harvest-type-button[aria-pressed="true"]{background:var(--type-color);color:white}
.harvest-rights-drawer fieldset{display:grid;grid-template-columns:1fr;gap:6px}
.harvest-rights-drawer legend{font-weight:700;margin-bottom:8px}
.harvest-rights-drawer fieldset label{position:relative;padding:8px 10px;border:1px solid #c6d1db;border-radius:7px;background:#f4f6f8;color:#596572}
.harvest-rights-drawer fieldset label:has(input:checked){background:#e4f1fb;color:#123e5a;border-color:#3585bb}
.harvest-rights-drawer fieldset input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer}
.harvest-rights-drawer fieldset label:has(input:focus-visible){outline:2px solid #3585bb;outline-offset:2px}
.harvest-rights-drawer fieldset small{margin-left:auto}
html[data-map-theme="dark"] .harvest-rights-drawer{background:#19222d;color:#ecf2f8;border-color:#566575}
html[data-map-theme="dark"] .harvest-rights-drawer fieldset label{background:#273443;color:#becbd8}
html[data-map-theme="dark"] .harvest-rights-drawer fieldset label:has(input:checked){background:#294b66;color:#fff}
@media(prefers-reduced-motion:reduce){.harvest-rights-drawer{transition:none}}

.harvest-section-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:6px 0 8px 25px}.harvest-rights-drawer .harvest-section-buttons{margin-left:0}.harvest-section-buttons button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px;min-height:42px;border:2px solid var(--group-color);border-radius:6px;background:#e5e9ee;color:#263344;font:inherit;font-size:11px;cursor:pointer}.harvest-section-buttons button[aria-pressed="true"]{background:var(--group-color);color:#fff}.harvest-section-buttons small{font-size:10px}.harvest-section-buttons button:focus-visible{outline:2px solid #006ea8;outline-offset:2px}


.release-guidance-content{font-size:13px;line-height:1.7}.release-guidance-content h2{font-size:18px}.release-guidance-content table{width:100%;border-collapse:collapse}.release-guidance-content td,.release-guidance-content th{padding:6px;text-align:left;border-bottom:1px solid #9cabb8}.release-guidance-content a{color:#126aa0;text-decoration:underline}
.release-guidance-content{max-height:55dvh;overflow-y:auto;padding-right:6px}
.harvest-rights-open[hidden],.harvest-rights-drawer fieldset label[hidden]{display:none!important}

.harvest-rights-drawer fieldset label.harvest-risk-species{border-color:var(--species-color);color:var(--species-color)}.harvest-rights-drawer fieldset label.harvest-risk-species:has(input:checked){background:var(--species-color);border-color:var(--species-color);color:#fff}.harvest-risk-species span::before{content:"";display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:50%;background:var(--species-color);border:1px solid currentColor}
html[data-map-theme="dark"] .harvest-rights-drawer fieldset label.harvest-risk-species:has(input:checked){background:var(--species-color);color:#fff;border-color:var(--species-color)}

/* Bound the drawer to its available viewport space, including its top offset. */
.harvest-species-options.harvest-rights-drawer{overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;scroll-padding-bottom:16px}
.harvest-drawer-header{position:sticky;top:-15px;z-index:2;background:inherit;padding:8px 0}
.harvest-section-buttons button{min-width:0;overflow-wrap:anywhere}

.harvest-subspecies{min-width:0}
.harvest-subspecies>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;margin:0}
.harvest-subspecies>summary::-webkit-details-marker{display:none}
.harvest-subspecies>summary::before{content:"▶";font-size:11px;flex:none}
.harvest-subspecies[open]>summary::before{content:"▼"}
.harvest-subspecies>summary>label{flex:1;min-width:0}
.harvest-subspecies-list{display:grid;gap:5px;padding:6px 0 8px 23px}
.harvest-rights-drawer .harvest-subspecies-list label{min-height:30px;padding:6px 10px;font-size:12px}

/* Four balanced category controls; matching two-column class controls. */
.harvest-section-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
.harvest-section-buttons button{min-height:54px;padding:8px 6px;justify-content:center;border-radius:8px;font-size:12px}
.harvest-rights-drawer .harvest-class-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:0;margin-bottom:12px}
