/* Forest inventory / taxation workspace v1 — isolated from existing surfaces. */
.nav-icon[data-icon="forestry"]:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 15px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 56% 44% 45% 55%;
  background:
    radial-gradient(ellipse at 50% 44%,transparent 0 24%,currentColor 26% 29%,transparent 31% 45%,currentColor 47% 50%,transparent 52%);
  transform: rotate(-5deg);
}
.nav-icon[data-icon="forestry"]:after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 4px;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
}

.forestry-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) 235px;
  align-items: center;
  gap: 32px;
  margin-bottom: 18px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(112,226,178,.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 84% 40%,rgba(111,224,175,.13),transparent 31%),
    linear-gradient(135deg,rgba(16,48,44,.95),rgba(6,24,26,.98));
  box-shadow: 0 24px 56px rgba(0,0,0,.16);
}
.forestry-hero.is-limited { border-color: rgba(238,190,92,.24); }
.forestry-hero small,.forestry-kpi-code,.forestry-evidence span {
  color: #79dabb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.forestry-hero h2 { margin: 7px 0 8px; color: var(--premium-text,#eff8f3); font-size: 27px; }
.forestry-hero p { max-width: 770px; margin: 0; color: var(--premium-muted,#a9c0b8); font-size: 13px; line-height: 1.65; }
.forestry-hero aside { padding-left: 25px; border-left: 1px solid rgba(255,255,255,.09); }
.forestry-hero aside span,.forestry-hero aside small { display: block; color: var(--premium-faint,#7f9a91); }
.forestry-hero aside span { font-size: 9px; letter-spacing: .12em; }
.forestry-hero aside strong { display: block; margin: 8px 0 2px; color: #83e7bd; font-size: 42px; line-height: 1; }
.forestry-hero aside strong i { font-size: 15px; font-style: normal; }
.forestry-hero aside small { letter-spacing: 0; text-transform: none; }

.forestry-kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.forestry-kpis article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--premium-line,rgba(255,255,255,.08));
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(15,40,39,.9),rgba(7,23,24,.98));
}
.forestry-kpis strong { display: block; margin: 11px 0 7px; color: var(--premium-text,#eff8f3); font-size: 29px; line-height: 1.05; }
.forestry-kpis strong i { color: var(--premium-muted,#a9c0b8); font-size: 12px; font-style: normal; font-weight: 600; }
.forestry-kpis p,.forestry-kpis footer { margin: 0; color: var(--premium-faint,#7f9a91); font-size: 10px; line-height: 1.5; }
.forestry-kpis footer { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--premium-line,rgba(255,255,255,.08)); }
.forestry-kpis footer b { color: #78dcb6; }
.forestry-kpis .bonitet-mark { color: #e9c66e; font-family: Georgia,serif; font-size: 42px; }
.species-bar { height: 7px; margin: 11px 0 8px; overflow: hidden; border-radius: 8px; background: #b88950; }
.species-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4c9c72,#77dcb2); }

.forestry-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,.7fr); gap: 18px; margin-bottom: 18px; }
.forestry-history .chart-wrap { min-height: 310px; }
.forestry-history .chart-line.actual { stroke: #7de4b8; stroke-width: 3; }
.forestry-history .chart-area { fill: rgba(125,228,184,.18); opacity: .6; }
.forestry-composition { display: grid; align-content: start; }
.composition-donut {
  display: grid;
  width: 174px;
  height: 174px;
  place-content: center;
  margin: 18px auto 21px;
  border-radius: 50%;
  background: radial-gradient(circle at center,#0b2928 0 55%,transparent 56%),conic-gradient(#75ddb0 calc(var(--conifer)*1%),#b88950 0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06),0 0 38px rgba(79,185,137,.12);
  text-align: center;
}
.composition-donut strong { color: var(--premium-text,#eff8f3); font-size: 35px; line-height: 1; }
.composition-donut strong i { font-size: 13px; font-style: normal; }
.composition-donut span { margin-top: 4px; color: var(--premium-faint,#7f9a91); font-size: 9px; text-transform: uppercase; }
.forestry-composition dl { margin: 0; }
.forestry-composition dl>div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--premium-line,rgba(255,255,255,.08)); }
.forestry-composition dt { color: var(--premium-muted,#a9c0b8); font-size: 11px; }
.forestry-composition dd { margin: 0; color: var(--premium-text,#eff8f3); font-size: 11px; font-weight: 700; }
.forestry-composition dt i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }
.forestry-composition dt i.conifer { background: #75ddb0; }
.forestry-composition dt i.deciduous { background: #b88950; }

.forestry-table-card { margin-bottom: 18px; }
.forestry-table-card .data-table small { color: var(--premium-faint,#7f9a91); }
.forestry-evidence { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--premium-line,rgba(255,255,255,.08)); border-radius: 15px; background: var(--premium-line,rgba(255,255,255,.08)); }
.forestry-evidence>div { min-width: 0; padding: 18px 20px; background: rgba(8,28,29,.97); }
.forestry-evidence strong { display: block; margin: 8px 0 4px; overflow: hidden; color: var(--premium-text,#eff8f3); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.forestry-evidence p { margin: 0; overflow-wrap: anywhere; color: var(--premium-faint,#7f9a91); font-size: 10px; line-height: 1.5; }
.forestry-disclaimer { display: flex; gap: 18px; padding: 17px 20px; border: 1px solid rgba(232,189,94,.2); border-radius: 14px; background: rgba(232,189,94,.055); }
.forestry-disclaimer b { flex: 0 0 auto; color: #ebc977; font-size: 11px; }
.forestry-disclaimer p { margin: 0; color: var(--premium-muted,#a9c0b8); font-size: 11px; line-height: 1.55; }

@media(max-width:1180px) {
  .forestry-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forestry-layout { grid-template-columns: 1fr; }
}
@media(max-width:760px) {
  .forestry-hero { grid-template-columns: 1fr; padding: 21px; }
  .forestry-hero aside { padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.09); border-left: 0; }
  .forestry-kpis { grid-template-columns: 1fr; }
  .forestry-evidence { grid-template-columns: 1fr; }
  .forestry-disclaimer { display: block; }
  .forestry-disclaimer b { display: block; margin-bottom: 7px; }
}

.forestry-section-nav{position:sticky;z-index:12;top:0;display:flex;gap:7px;margin:-4px 0 16px;padding:8px;overflow-x:auto;border:1px solid var(--premium-line,rgba(255,255,255,.08));border-radius:14px;background:rgba(5,22,23,.93);backdrop-filter:blur(14px)}
.forestry-section-nav button{flex:0 0 auto;padding:8px 12px;border:1px solid rgba(126,222,181,.12);border-radius:9px;background:rgba(126,222,181,.045);color:var(--premium-muted,#a9c0b8);font:700 10px/1 inherit;cursor:pointer}.forestry-section-nav button:hover{border-color:rgba(126,222,181,.38);color:#91eac4}
.forestry-calibration dl,.forestry-passport dl,.forestry-carbon dl{margin:12px 0 0}.forestry-calibration dl>div,.forestry-passport dl>div,.forestry-carbon dl>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--premium-line,rgba(255,255,255,.08))}.forestry-calibration dt,.forestry-passport dt,.forestry-carbon dt{color:var(--premium-faint,#7f9a91);font-size:10px}.forestry-calibration dd,.forestry-passport dd,.forestry-carbon dd{margin:0;color:var(--premium-text,#eff8f3);font-size:11px;font-weight:700;text-align:right}
.forestry-structure-card,.forestry-history,.forestry-planning,.forestry-portfolio{margin-bottom:18px;scroll-margin-top:72px}.forestry-structure-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}.forestry-structure-grid article{padding:18px;border:1px solid rgba(126,222,181,.12);border-radius:13px;background:rgba(13,43,40,.55)}.forestry-structure-grid small,.forestry-structure-grid span{display:block;color:var(--premium-faint,#7f9a91);font-size:9px}.forestry-structure-grid strong{display:block;margin:9px 0 5px;color:#91eac4;font-size:27px}.forestry-structure-grid strong i{font-size:11px;font-style:normal}
.forestry-event-timeline{display:flex;align-items:flex-start;justify-content:space-between;gap:2px;margin:3px 42px 18px;padding-top:12px;border-top:1px solid rgba(126,222,181,.18)}.forestry-event-timeline button{position:relative;min-width:0;padding:0;border:0;background:none;color:#67867c;font-size:8px;cursor:pointer}.forestry-event-timeline button i{display:block;width:5px;height:5px;margin:-15px auto 5px;border-radius:50%;background:#517167}.forestry-event-timeline button.has-event{color:#e9c66e;font-weight:800}.forestry-event-timeline button.has-event i{width:9px;height:9px;margin-top:-17px;background:#e9c66e;box-shadow:0 0 0 4px rgba(233,198,110,.13)}
.forestry-event-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.forestry-event-list article{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:13px;border:1px solid rgba(255,255,255,.075);border-radius:11px;background:rgba(7,27,28,.7);cursor:pointer}.forestry-event-list article>i{width:10px;height:10px;border-radius:50%;background:#e7b85d}.forestry-event-list article>i.fire{background:#e46c4d}.forestry-event-list article>i.recovery{background:#65d4a3}.forestry-event-list article b,.forestry-event-list article span{display:block}.forestry-event-list article b{color:var(--premium-text,#eff8f3);font-size:11px}.forestry-event-list article span{margin-top:3px;color:var(--premium-faint,#7f9a91);font-size:9px}.forestry-event-list article strong{color:#e9c66e;font-size:13px}.forestry-event-list article em{grid-column:2/4;color:#73dcb0;font-size:9px;font-style:normal}
.forestry-climate{display:grid;grid-template-columns:1.2fr repeat(2,1fr);gap:1px;margin-bottom:18px;overflow:hidden;border:1px solid rgba(89,159,190,.18);border-radius:14px;background:rgba(89,159,190,.18)}.forestry-climate>div,.forestry-climate article{padding:16px;background:#0a2428}.forestry-climate small,.forestry-climate span{display:block;color:#7fa0a6;font-size:9px}.forestry-climate strong,.forestry-climate b{display:block;margin:5px 0;color:#b9e5ef;font-size:12px}.forestry-climate article span{margin-top:5px}
.forestry-oracle{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;margin:15px 0;padding:17px;border:1px solid rgba(126,222,181,.22);border-radius:14px;background:linear-gradient(120deg,rgba(18,72,58,.45),rgba(7,30,31,.75))}.forestry-oracle>i{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:rgba(126,222,181,.12);color:#8be7bd;font-style:normal}.forestry-oracle small{color:#6fa990;font-size:8px;letter-spacing:.12em}.forestry-oracle h3{margin:4px 0;color:#eff8f3;font-size:16px}.forestry-oracle p{margin:0;color:#9bb8ae;font-size:10px}.forestry-oracle>strong{color:#8be7bd;font-size:25px}.forestry-oracle>strong i{display:block;font-size:8px;font-style:normal;text-align:right}
.forestry-scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.forestry-scenario-grid>article{padding:17px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:#092425}.forestry-scenario-grid>article.recommended{border-color:rgba(126,222,181,.35);box-shadow:inset 0 0 0 1px rgba(126,222,181,.08)}.forestry-scenario-grid header{display:flex;gap:9px;align-items:center}.forestry-scenario-grid header span{color:#65887c;font-size:9px}.forestry-scenario-grid header b{flex:1;color:#eff8f3;font-size:12px}.forestry-scenario-grid header em{padding:4px 7px;border-radius:10px;background:rgba(126,222,181,.12);color:#8be7bd;font-size:8px;font-style:normal}.forestry-scenario-grid>article>strong{display:block;margin:15px 0 4px;color:#e9c66e;font-size:21px}.forestry-scenario-grid>article>strong i{font-size:9px;font-style:normal}.forestry-scenario-grid>article>p{margin:0;color:#79978d;font-size:9px}.forestry-scenario-grid .chart-wrap{min-height:190px}.forestry-scenario-grid footer{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.forestry-scenario-grid footer span{color:#78968c;font-size:8px}.forestry-scenario-grid footer b{display:block;color:#aac6bc;font-size:9px}.forestry-scenario-grid footer button{display:block;margin-top:6px;padding:0;border:0;background:transparent;color:#83d9b1;font:inherit;cursor:pointer}.forestry-scenario-grid footer button:hover{color:#c8f4dc;text-decoration:underline}
.forestry-finance-grid,.forestry-risk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px;scroll-margin-top:72px}.forestry-carbon-value{margin:16px 0;padding:18px;border-radius:13px;background:linear-gradient(135deg,rgba(43,126,94,.25),rgba(5,33,32,.5))}.forestry-carbon-value strong,.forestry-carbon-value span{display:block}.forestry-carbon-value strong{color:#86e6bb;font-size:31px}.forestry-carbon-value strong i{font-size:12px;font-style:normal}.forestry-carbon-value span{margin-top:4px;color:#83a49a;font-size:9px}.forestry-rating{display:grid;width:55px;height:55px;place-items:center;border:2px solid currentColor;border-radius:50%;font-size:27px}.forestry-rating.small{display:inline-grid;width:30px;height:30px;font-size:14px}.rating-A{color:#73e0af}.rating-B{color:#b8dd73}.rating-C{color:#e7bc63}.rating-D{color:#df775e}
.forestry-apocalypse>.card-head>strong{color:#ef8d6f;font-size:20px}.forestry-apocalypse>.card-head>strong i{font-size:9px;font-style:normal}.forestry-apocalypse>div:not(.card-head){display:grid;gap:6px}.forestry-apocalypse article{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding:11px;border-radius:9px;background:rgba(84,35,30,.22)}.forestry-apocalypse article b,.forestry-apocalypse article small{display:block}.forestry-apocalypse article b{color:#e5d7d1;font-size:10px}.forestry-apocalypse article small,.forestry-apocalypse article em{color:#9c7e76;font-size:8px}.forestry-apocalypse article strong{color:#ed9a7f;font-size:11px}.forestry-apocalypse article em{grid-column:2;font-style:normal}.forestry-pest>.card-head>strong{font-size:28px}.forestry-pest>.card-head>strong i{font-size:10px;font-style:normal}.forestry-pest .risk-high{color:#ed8469}.forestry-pest .risk-medium{color:#e6c06b}.forestry-pest .risk-low{color:#7bd9ad}.forestry-pest>p{color:#b3c9c1;font-size:11px;line-height:1.55}.forestry-signal-list{display:grid;gap:8px}.forestry-signal-list span{display:grid;grid-template-columns:110px 1fr auto;gap:8px;align-items:center}.forestry-signal-list b,.forestry-signal-list em,.forestry-signal-list small{font-size:8px}.forestry-signal-list b{color:#aac3ba}.forestry-signal-list i{height:5px;border-radius:4px;background:#d8a25c}.forestry-signal-list em{color:#d7bf85;font-style:normal}.forestry-signal-list small{grid-column:2/4;color:#77958b}.forestry-pest footer{margin-top:15px;color:#749187;font-size:8px}
.forestry-portfolio .data-table{min-width:1050px}.forestry-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.forestry-actions button{padding:17px;border:1px solid rgba(126,222,181,.15);border-radius:12px;background:#0a2928;color:#eff8f3;text-align:left;cursor:pointer}.forestry-actions b,.forestry-actions span{display:block}.forestry-actions b{font-size:11px}.forestry-actions span{margin-top:5px;color:#78988d;font-size:8px}.mono-wrap{font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere;font-size:9px}
.forestry-map-event-marker{position:absolute;z-index:8;top:50%;left:50%;display:grid;min-width:190px;max-width:260px;padding:12px 14px 12px 38px;transform:translate(-50%,-100%);border:1px solid rgba(239,185,86,.6);border-radius:10px;background:rgba(8,30,29,.94);box-shadow:0 12px 30px rgba(0,0,0,.32);pointer-events:none}.forestry-map-event-marker>i{position:absolute;top:13px;left:14px;width:15px;height:15px;border:4px solid #f0b95d;border-radius:50%;box-shadow:0 0 0 6px rgba(240,185,93,.15)}.forestry-map-event-marker:after{position:absolute;bottom:-12px;left:50%;width:18px;height:18px;content:"";transform:translateX(-50%) rotate(45deg);border-right:1px solid rgba(239,185,86,.6);border-bottom:1px solid rgba(239,185,86,.6);background:rgba(8,30,29,.94)}.forestry-map-event-marker strong,.forestry-map-event-marker span,.forestry-map-event-marker small{display:block}.forestry-map-event-marker strong{color:#fff1d2;font-size:11px}.forestry-map-event-marker span{margin-top:3px;color:#d7bc82;font-size:9px}.forestry-map-event-marker small{margin-top:5px;color:#8fa69c;font-size:8px}
.form-section-title{margin:8px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.1);color:#85dab5;font-size:12px}.forestry-history-detail>section{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.forestry-history-detail>section div{padding:12px;border-radius:9px;background:rgba(23,61,39,.12)}.forestry-history-detail small,.forestry-history-detail b{display:block}.forestry-history-detail small{color:#78958b;font-size:8px}.forestry-history-detail b{margin-top:4px;font-size:12px}.forestry-history-detail article{margin-top:10px;padding:12px;border-left:3px solid #d5aa57;background:rgba(213,170,87,.07)}.forestry-event-detail dl>div{display:grid;grid-template-columns:130px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08)}.forestry-event-detail dt{color:#7d9b91}.forestry-event-detail dd{margin:0;color:#dcebe5}.forestry-verification-result header{text-align:center}.forestry-verification-result header small,.forestry-verification-result header span{display:block;color:#77958b}.forestry-verification-result header strong{display:block;margin:5px 0;color:#88e3b8;font-size:42px}.forestry-verification-result header strong i{font-size:13px;font-style:normal}
@media(max-width:1180px){.forestry-structure-grid{grid-template-columns:repeat(2,1fr)}.forestry-scenario-grid,.forestry-finance-grid,.forestry-risk-grid{grid-template-columns:1fr}.forestry-event-list{grid-template-columns:1fr}.forestry-climate{grid-template-columns:1fr}.forestry-actions{grid-template-columns:1fr}}
@media(max-width:760px){.forestry-section-nav{top:52px}.forestry-structure-grid{grid-template-columns:1fr}.forestry-scenario-grid{grid-template-columns:1fr}.forestry-event-timeline{margin-right:5px;margin-left:5px}.forestry-event-timeline span{display:none}.forestry-history-detail>section{grid-template-columns:repeat(2,1fr)}}

.forestry-quality-strip{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:1px;margin:-7px 0 18px;overflow:hidden;border:1px solid rgba(126,222,181,.18);border-radius:15px;background:rgba(126,222,181,.18)}
.forestry-quality-strip>div{padding:16px 20px;background:#0a2626}.forestry-quality-strip span{color:#79bca4;font-size:10px;font-weight:800;letter-spacing:.12em}.forestry-quality-strip strong{display:block;margin:6px 0 4px;color:#eff8f3;font-size:14px}.forestry-quality-strip p{margin:0;color:#9bb8ae;font-size:11px;line-height:1.5}.forestry-quality-strip.quality-review{border-color:rgba(233,198,110,.28);background:rgba(233,198,110,.2)}.forestry-quality-strip.quality-limited{border-color:rgba(231,132,105,.28);background:rgba(231,132,105,.2)}
.forestry-feedback{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;margin-bottom:18px;padding:20px;border:1px solid rgba(126,222,181,.18);border-radius:15px;background:linear-gradient(120deg,rgba(18,72,58,.32),rgba(7,30,31,.82))}.forestry-feedback span{color:#79dabb;font-size:10px;font-weight:800;letter-spacing:.13em}.forestry-feedback strong{display:block;margin:6px 0;color:#eff8f3;font-size:15px}.forestry-feedback p,.forestry-feedback small{margin:0;color:#9bb8ae;font-size:11px}.forestry-feedback>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:480px}.forestry-feedback button{padding:9px 12px;border:1px solid rgba(126,222,181,.24);border-radius:9px;background:#0b302d;color:#dff6eb;font:700 11px/1 inherit;cursor:pointer}.forestry-feedback button:hover,.forestry-feedback button.selected{border-color:#78dcb6;background:rgba(126,222,181,.16)}.forestry-feedback small{flex-basis:100%;margin-top:4px;text-align:right}
.composition-donut{box-shadow:inset 0 0 0 2px rgba(255,255,255,.11),0 0 38px rgba(79,185,137,.18)}
.forestry-scenario-grid>article>strong.negative{color:#ff9478}.forestry-scenario-grid>article>strong.positive{color:#8be7bd}
.forestry-section-nav button,.forestry-hero small,.forestry-kpi-code,.forestry-evidence span{font-size:10px}.forestry-kpis p,.forestry-kpis footer,.forestry-composition dt,.forestry-composition dd,.forestry-calibration dt,.forestry-calibration dd,.forestry-passport dt,.forestry-passport dd,.forestry-carbon dt,.forestry-carbon dd,.forestry-oracle p,.forestry-event-list article b,.forestry-pest>p,.forestry-apocalypse article b,.forestry-actions b{font-size:11px}.forestry-structure-grid small,.forestry-structure-grid span,.forestry-event-list article span,.forestry-event-list article em,.forestry-climate small,.forestry-climate span,.forestry-scenario-grid>article>p,.forestry-scenario-grid footer span,.forestry-scenario-grid footer b,.forestry-apocalypse article small,.forestry-apocalypse article em,.forestry-pest footer,.forestry-actions span{font-size:10px}.forestry-structure-grid strong,.forestry-carbon-value strong,.forestry-pest>.card-head>strong,.forestry-rating{filter:none;opacity:1;text-shadow:0 1px 12px rgba(0,0,0,.35)}
@media(max-width:1180px){.forestry-quality-strip{grid-template-columns:1fr}.forestry-feedback{grid-template-columns:1fr}.forestry-feedback>div:last-child{justify-content:flex-start;max-width:none}.forestry-feedback small{text-align:left}}

/* Contrast safety: model values must remain readable even when an older theme rule is cached. */
.premium-cabinet .content.forestry-content :is(h1,h2,h3,strong,b,dd) {
  color: var(--premium-text,#eff8f3) !important;
  -webkit-text-fill-color: var(--premium-text,#eff8f3) !important;
  opacity: 1 !important;
}
.premium-cabinet .content.forestry-content :is(.forestry-kpis strong,.forestry-structure-grid strong,.forestry-carbon-value strong,.forestry-oracle>strong,.forestry-pest>.card-head>strong,.forestry-quality-strip strong,.forestry-feedback strong) {
  color: #91eac4 !important;
  -webkit-text-fill-color: #91eac4 !important;
}
.premium-cabinet .content.forestry-content .forestry-kpis .bonitet-mark,
.premium-cabinet .content.forestry-content .forestry-scenario-grid>article>strong {
  color: #e9c66e !important;
  -webkit-text-fill-color: #e9c66e !important;
}
.premium-cabinet .content.forestry-content .forestry-scenario-grid>article>strong.negative,
.premium-cabinet .content.forestry-content .forestry-apocalypse :is(strong,.card-head>strong) {
  color: #ff9478 !important;
  -webkit-text-fill-color: #ff9478 !important;
}
.premium-cabinet .content.forestry-content .forestry-scenario-grid>article>strong.positive,
.premium-cabinet .content.forestry-content .risk-low,
.premium-cabinet .content.forestry-content .rating-A {
  color: #8be7bd !important;
  -webkit-text-fill-color: #8be7bd !important;
}
.premium-cabinet .content.forestry-content .risk-medium,
.premium-cabinet .content.forestry-content .rating-B,
.premium-cabinet .content.forestry-content .rating-C {
  color: #e7c46d !important;
  -webkit-text-fill-color: #e7c46d !important;
}
.premium-cabinet .content.forestry-content .risk-high,
.premium-cabinet .content.forestry-content .rating-D {
  color: #ff9478 !important;
  -webkit-text-fill-color: #ff9478 !important;
}
.premium-cabinet .content.forestry-content .button.primary,
.premium-cabinet .content.forestry-content .button.primary :is(b,strong) {
  color: #08201c !important;
  -webkit-text-fill-color: #08201c !important;
}

/* Map workspace v2: keep the cabinet shell, provide labelled tools and clear exits. */
.ui-icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }

@media (min-width:841px) {
  .app-shell.premium-cabinet:has(.os-map-workspace) {
    display: grid !important;
    grid-template-columns: 204px minmax(0,1fr) !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    background: #0b1a1a !important;
  }
  .app-shell.premium-cabinet:has(.os-map-workspace) > .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    display: flex !important;
    width: 204px !important;
    height: 100vh !important;
    padding: 22px 10px 16px !important;
    overflow: hidden !important;
    border-right: 1px solid var(--premium-line) !important;
    background: #112929 !important;
    box-shadow: none !important;
  }
  .app-shell.premium-cabinet:has(.os-map-workspace) .workspace-identity,
  .app-shell.premium-cabinet:has(.os-map-workspace) .nav-caption,
  .app-shell.premium-cabinet:has(.os-map-workspace) .sidebar-status,
  .app-shell.premium-cabinet:has(.os-map-workspace) .sidebar-fgis { display: none !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .app-brand {
    display: flex !important; align-items: center !important; gap: 10px !important;
    min-height: 48px !important; margin: 0 0 22px !important; padding: 0 12px !important;
  }
  .app-shell.premium-cabinet:has(.os-map-workspace) .app-brand .premium-mark { width: 34px !important; height: 34px !important; flex: 0 0 34px !important; transform: scale(.78) !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .app-brand .brand-word { display: grid !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .app-brand .brand-word strong { color: var(--premium-aqua) !important; font-size: 15px !important; -webkit-text-fill-color: var(--premium-aqua) !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .app-brand .brand-word small { color: var(--premium-faint) !important; font-size: 7px !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .side-nav { display: flex !important; flex: 1 1 auto; flex-direction: column; gap: 3px !important; min-height: 0; overflow-y: auto; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .side-nav button { display: grid !important; grid-template-columns: 30px minmax(0,1fr) auto !important; grid-template-rows: 1fr !important; min-height: 39px !important; padding: 4px 8px !important; border-radius: 10px !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .side-nav .nav-icon[data-icon] { grid-column: 1 !important; grid-row: 1 !important; width: 27px !important; height: 27px !important; align-self: center !important; transform: none !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .side-nav button > b { display: block !important; grid-column: 2 !important; grid-row: 1 !important; align-self: center !important; color: inherit !important; font-size: 11px !important; -webkit-text-fill-color: currentColor !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .side-nav button > small { display: none !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .logout-button { min-height: 36px !important; margin-top: 8px !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) > .workspace {
    display: block !important; grid-column: 2 !important; min-width: 0 !important;
    height: 100vh !important; min-height: 0 !important; overflow: hidden !important;
  }
  .app-shell.premium-cabinet:has(.os-map-workspace) .topbar {
    display: flex !important; height: 58px !important; min-height: 58px !important;
    border-bottom: 1px solid var(--premium-line) !important; background: rgba(11,26,26,.97) !important;
  }
  .app-shell.premium-cabinet:has(.os-map-workspace) .content.map-content {
    width: 100% !important; height: calc(100vh - 58px) !important; min-height: 0 !important;
    padding: 0 !important; overflow: hidden !important; background: #071718 !important;
  }
}

.premium-cabinet .os-map-workspace {
  width: 100%; height: 100% !important; min-height: 0 !important;
  grid-template-columns: 116px 280px minmax(440px,1fr) 320px;
  grid-template-rows: 68px minmax(0,1fr) 64px;
  background: #071718 !important;
}
.premium-cabinet .os-map-workspace.layers-collapsed { grid-template-columns: 116px 0 minmax(440px,1fr) 320px; }
.premium-cabinet .os-map-header {
  display: grid; grid-template-columns: minmax(220px,1fr) minmax(270px,340px) minmax(330px,1fr);
  gap: 18px; padding: 0 18px !important; border-color: var(--premium-line) !important;
  background: linear-gradient(90deg,#0a2726,#071b1c) !important;
}
.premium-cabinet .os-map-context { display: flex; align-items: center; gap: 14px; min-width: 0; }
.premium-cabinet .os-map-context > div { display: grid; gap: 3px; min-width: 0; }
.premium-cabinet .os-map-context small { color: var(--premium-aqua); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.premium-cabinet .os-map-context strong { color: var(--premium-text); font-size: 16px; white-space: nowrap; }
.premium-cabinet .os-map-back {
  display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px !important;
  border: 1px solid var(--premium-line-strong) !important; border-radius: 10px !important;
  background: rgba(111,212,194,.07) !important; color: var(--premium-mint) !important; font-weight: 750;
}
.premium-cabinet .os-map-back:hover { background: rgba(111,212,194,.14) !important; }
.premium-cabinet .os-map-plot-picker { height: 42px; border-color: var(--premium-line-strong) !important; border-radius: 10px !important; background: rgba(3,17,18,.55); }
.premium-cabinet .os-map-plot-picker > .ui-icon { width: 17px; height: 17px; color: var(--premium-aqua); }
.premium-cabinet .os-map-plot-picker select { height: 40px; color: var(--premium-text) !important; font-weight: 700; }
.premium-cabinet .os-map-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.premium-cabinet .os-map-header-actions button {
  display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 9px;
  border: 1px solid transparent !important; border-radius: 9px; color: var(--premium-muted) !important;
}
.premium-cabinet .os-map-header-actions button:hover { border-color: var(--premium-line-strong) !important; background: rgba(111,212,194,.08) !important; color: var(--premium-mint) !important; }
.premium-cabinet .os-map-header-actions .ui-icon { width: 17px; height: 17px; }
.premium-cabinet .os-map-header-actions span { font-size: 9px; font-weight: 700; white-space: nowrap; }

.premium-cabinet .os-map-toolbar {
  align-items: stretch; gap: 7px; padding: 14px 8px 10px; border-color: var(--premium-line) !important; background: #08191a !important;
}
.premium-cabinet .os-map-toolbar button {
  display: flex; width: 100%; height: auto; min-height: 62px; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 5px; border: 1px solid transparent; border-radius: 10px; color: var(--premium-muted) !important; font-size: 10px;
}
.premium-cabinet .os-map-toolbar button span { display: block; font-size: 8px; font-weight: 700; line-height: 1.2; text-align: center; }
.premium-cabinet .os-map-toolbar button.active,.premium-cabinet .os-map-toolbar button:hover { border-color: var(--premium-line-strong); }
.premium-cabinet .os-map-toolbar button:nth-last-child(1) { margin-top: auto; margin-bottom: 0; }
.premium-cabinet .os-layer-panel { margin: 12px 0 12px 10px; }
.premium-cabinet .os-layer-panel > header > .ui-icon { width: 18px; height: 18px; color: var(--premium-aqua); }
.premium-cabinet .os-layer-panel > header button { display: grid; place-items: center; }
.premium-cabinet .os-layer-panel > header button .ui-icon { width: 18px; height: 18px; }
.premium-cabinet .os-map-zoom button { display: grid; place-items: center; color: var(--premium-text) !important; }
.premium-cabinet .os-map-zoom button .ui-icon { width: 19px; height: 19px; }
.premium-cabinet .os-map-zoom button > span { font-size: 25px; line-height: 1; }
.premium-cabinet .os-map-inspector header button { display: grid; place-items: center; padding: 0; }
.premium-cabinet .os-map-inspector header button .ui-icon { width: 17px; height: 17px; }
.premium-cabinet .os-map-inspector section > button { display: flex; align-items: center; justify-content: center; gap: 7px; }
.premium-cabinet .os-map-inspector section > button .ui-icon { width: 16px; height: 16px; }
.premium-cabinet .os-quality .download { display: flex; align-items: center; justify-content: center; gap: 8px; }

@media (max-width:1450px) and (min-width:841px) {
  .app-shell.premium-cabinet:has(.os-map-workspace) { grid-template-columns: 178px minmax(0,1fr) !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) > .sidebar { width: 178px !important; }
  .premium-cabinet .os-map-workspace { grid-template-columns: 78px 244px minmax(390px,1fr) 300px; }
  .premium-cabinet .os-map-workspace.layers-collapsed { grid-template-columns: 78px 0 minmax(390px,1fr) 300px; }
  .premium-cabinet .os-map-toolbar button span { font-size: 7px; }
  .premium-cabinet .os-map-header { grid-template-columns: minmax(190px,1fr) minmax(230px,290px) auto; }
  .premium-cabinet .os-map-header-actions button span { display: none; }
  .premium-cabinet .os-map-header-actions button { width: 38px; justify-content: center; padding: 0; }
}

@media (max-width:1100px) and (min-width:841px) {
  .premium-cabinet .os-map-workspace { grid-template-columns: 68px 220px minmax(360px,1fr); }
  .premium-cabinet .os-map-workspace.layers-collapsed { grid-template-columns: 68px 0 minmax(360px,1fr); }
  .premium-cabinet .os-map-header { grid-column: 1/4; gap: 10px; grid-template-columns: minmax(170px,1fr) minmax(210px,260px); padding-inline: 10px !important; }
  .premium-cabinet .os-map-header-actions,.premium-cabinet .os-map-inspector { display: none !important; }
  .premium-cabinet .os-map-timeline { grid-column: 1/4; }
  .premium-cabinet .os-map-back span,.premium-cabinet .os-map-context > div small { display: none; }
  .premium-cabinet .os-map-toolbar { padding-inline: 5px; }
}

@media (max-width:840px) {
  .app-shell.premium-cabinet:has(.os-map-workspace) { display: block !important; height: auto !important; min-height: 100vh !important; overflow: visible !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .topbar { display: flex !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) > .workspace { height: auto !important; min-height: 100vh !important; overflow: visible !important; }
  .app-shell.premium-cabinet:has(.os-map-workspace) .content.map-content { height: calc(100dvh - 62px) !important; min-height: 620px !important; padding: 0 !important; overflow: hidden !important; }
  .premium-cabinet .os-map-workspace { height: 100% !important; min-height: 620px !important; grid-template-columns: 1fr; grid-template-rows: 62px minmax(0,1fr) 72px; }
  .premium-cabinet .os-map-header { grid-column: 1; grid-template-columns: auto minmax(170px,1fr); gap: 10px; padding: 0 10px !important; }
  .premium-cabinet .os-map-context > div,.premium-cabinet .os-map-header-actions { display: none; }
  .premium-cabinet .os-map-back { min-width: 42px; padding: 0 9px !important; }
  .premium-cabinet .os-map-back span { display: none; }
  .premium-cabinet .os-map-plot-picker { grid-column: 2; width: 100%; }
  .premium-cabinet .os-map-stage { grid-column: 1; grid-row: 2; }
  .premium-cabinet .os-map-timeline { grid-column: 1; grid-row: 3; }
  .premium-cabinet .os-map-toolbar,.premium-cabinet .os-layer-panel,.premium-cabinet .os-map-inspector { display: none !important; }
}

/* Forestry 2.11: decision workflow, expert references and comparable assets. */
.forestry-decision-brief{margin:14px 0;padding:18px;border:1px solid rgba(111,212,194,.28);border-radius:14px;background:linear-gradient(135deg,rgba(17,75,67,.55),rgba(8,28,29,.92));box-shadow:inset 0 1px rgba(255,255,255,.03)}
.forestry-decision-brief>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.forestry-decision-brief>header span{color:var(--premium-aqua,#6fd4c2);font-size:9px;font-weight:800;letter-spacing:.13em}.forestry-decision-brief h2{margin:6px 0;color:var(--premium-text,#eff8f3);font-size:19px}.forestry-decision-brief p{margin:0;color:var(--premium-muted,#a8c2b9);font-size:11px}.forestry-decision-brief>header>strong{color:var(--premium-mint,#9bf0dc);font-size:34px}.forestry-decision-brief>header>strong i,.forestry-decision-metrics b i{font-size:.45em;font-style:normal;color:var(--premium-muted,#a8c2b9)}
.forestry-decision-brief.risk-high{border-color:rgba(240,137,92,.48)}.forestry-decision-brief.risk-medium{border-color:rgba(235,190,86,.42)}
.forestry-decision-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:15px 0}.forestry-decision-metrics article{display:grid;gap:4px;padding:12px;border:1px solid var(--premium-line,rgba(255,255,255,.08));border-radius:10px;background:rgba(3,18,19,.42)}.forestry-decision-metrics small{color:var(--premium-faint,#7f9a91);font-size:8px;font-weight:800;letter-spacing:.1em}.forestry-decision-metrics b{color:var(--premium-text,#eff8f3);font-size:17px}.forestry-decision-metrics span{color:var(--premium-muted,#a8c2b9);font-size:9px}.forestry-decision-brief>footer{display:flex;flex-wrap:wrap;gap:8px}
.forestry-passport .wide{width:100%;margin-top:12px}.forestry-portfolio .card-head>div:last-child{display:flex;gap:7px}.forestry-portfolio input[type=checkbox]{width:16px;height:16px;accent-color:var(--premium-aqua,#6fd4c2)}
.forestry-reference-register{margin-top:14px}.forestry-reference-status{display:inline-flex;padding:4px 7px;border-radius:999px;background:rgba(235,190,86,.12);color:#f0cb73;font-size:9px;font-weight:800}.forestry-reference-status.verified{background:rgba(111,212,194,.13);color:var(--premium-mint,#9bf0dc)}
.calibration-reference-choice{display:flex!important;align-items:flex-start;gap:10px;padding:12px;border:1px solid rgba(111,212,194,.22);border-radius:10px;background:rgba(111,212,194,.06)}.calibration-reference-choice input{width:17px;height:17px;margin-top:2px;accent-color:var(--premium-aqua,#6fd4c2)}.calibration-reference-choice span{display:grid;gap:4px}.calibration-reference-choice small{color:var(--premium-muted,#a8c2b9);font-size:10px}.form-section-title{margin:5px 0 -2px;color:var(--premium-aqua,#6fd4c2);font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.forestry-compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}.forestry-compare-grid article{padding:15px;border:1px solid var(--premium-line,rgba(255,255,255,.08));border-radius:12px;background:rgba(5,26,27,.72)}.forestry-compare-grid article>header{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.forestry-compare-grid h3{margin:4px 0;color:var(--premium-text,#eff8f3)}.forestry-compare-grid header small,.forestry-compare-grid footer{color:var(--premium-muted,#a8c2b9);font-size:10px}.forestry-compare-grid header>strong{color:var(--premium-mint,#9bf0dc);font-size:10px;text-align:right}.forestry-compare-grid article>div{display:grid;grid-template-columns:48px minmax(80px,1fr) 94px;align-items:center;gap:8px;margin:9px 0;font-size:10px}.forestry-compare-grid i{height:7px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden}.forestry-compare-grid i b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#329c7d,#82e8c9)}.forestry-compare-grid article>div>strong{color:var(--premium-text,#eff8f3);text-align:right;font-size:10px}.forestry-compare-grid footer{margin-top:13px;padding-top:10px;border-top:1px solid var(--premium-line,rgba(255,255,255,.08))}
@media(max-width:900px){.forestry-decision-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.forestry-decision-brief>header{flex-direction:column}.forestry-decision-brief>header>strong{font-size:27px}}
