/*
    黑土未来农业智能体 MVP 样式。
    设计目标：轻量、可信、面向农事运营的未来感工作台。
*/
:root {
    --bg: #f4f7f3;
    --surface: #ffffff;
    --surface-strong: #eef4ec;
    --ink: #142018;
    --muted: #66746b;
    --line: #dce5dc;
    --green: #2f7d4f;
    --green-deep: #1d5b38;
    --blue: #2d70b8;
    --gold: #b8872b;
    --red: #b6453c;
    --soil: #594737;
    --shadow: 0 18px 45px rgba(20, 32, 24, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(244, 247, 243, 0.84), rgba(244, 247, 243, 0.52)),
        linear-gradient(180deg, rgba(244, 247, 243, 0.12), rgba(244, 247, 243, 0.82)),
        url("./assets/future-agriculture-hero.png") center / cover no-repeat,
        var(--bg);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    background:
        radial-gradient(circle at 72% 18%, rgba(45, 112, 184, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(47, 125, 79, 0.08), transparent 45%);
    pointer-events: none;
}

button,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.appShell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 20px;
    color: #f7fbf4;
    background: linear-gradient(180deg, #153822, #172b27 52%, #20282a);
}

.brandBlock {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brandMark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #12331f;
    background: #d5ef75;
    border-radius: var(--radius);
    font-weight: 800;
}

.brandEyebrow,
.pageKicker,
.sectionKicker {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brandBlock h1,
.topbar h2,
.panel h3 {
    margin: 0;
}

.brandBlock h1 {
    font-size: 22px;
}

.brandBlock .brandEyebrow {
    color: rgba(247, 251, 244, 0.72);
}

.navList {
    display: grid;
    gap: 8px;
}

.navItem {
    width: 100%;
    padding: 12px 14px;
    color: rgba(247, 251, 244, 0.76);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.navItem:hover,
.navItem.isActive {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.storageCard {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
}

.storageCard p {
    margin: 6px 0 0;
    color: rgba(247, 251, 244, 0.72);
    font-size: 13px;
    line-height: 1.55;
}

.statusDot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    background: #7ee082;
    border-radius: 50%;
}

.mainArea {
    padding: 26px;
    overflow: hidden;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.topbar h2 {
    font-size: 30px;
    line-height: 1.18;
}

.rolePanel {
    display: grid;
    gap: 8px;
    min-width: 230px;
}

.rolePanel label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.rolePanel select {
    padding: 12px 14px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.loginBadge {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.loginDot {
    width: 10px;
    height: 10px;
    background: #70d66f;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(112, 214, 111, 0.16);
}

.loginBadge div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.loginBadge strong {
    font-size: 13px;
}

.loginBadge span:not(.loginDot) {
    color: var(--muted);
    font-size: 12px;
}

.logoutButton {
    margin-left: auto;
    min-height: 32px;
    padding: 6px 9px;
    color: var(--green-deep);
    background: #edf6ef;
    border: 1px solid #cfe7d4;
    border-radius: 6px;
    font-weight: 800;
}

.viewSection {
    display: none;
}

.viewSection.isVisible {
    display: block;
}

.heroVisual {
    position: relative;
    min-height: 230px;
    margin-bottom: 14px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(11, 32, 22, 0.78), rgba(11, 32, 22, 0.16)),
        url("./assets/future-agriculture-hero.png") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.heroVisual::after {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(11, 32, 22, 0.32));
    pointer-events: none;
}

.heroVisual > div {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 28px;
}

.heroVisual h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.18;
}

.heroVisual p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
}

.heroKicker {
    margin: 0 0 8px;
    color: #d5ef75;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.briefingGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.briefingCard {
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 229, 220, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.briefingCard.isCritical {
    background: linear-gradient(135deg, #fff7f0, #ffffff);
    border-color: rgba(182, 69, 60, 0.28);
}

.briefingCard span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.briefingCard strong {
    display: block;
    margin: 8px 0;
    font-size: 24px;
    line-height: 1.2;
}

.briefingCard p {
    margin: 0;
    color: var(--green-deep);
    line-height: 1.55;
}

.overviewGrid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    gap: 14px;
    margin-bottom: 14px;
}

.mapSummaryPanel,
.assistantPanel {
    min-height: 500px;
}

.miniFieldMap {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    background: #2f4f38;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.oviMap {
    background:
        radial-gradient(circle at 24% 18%, rgba(162, 191, 104, 0.52), transparent 28%),
        radial-gradient(circle at 82% 30%, rgba(105, 151, 88, 0.44), transparent 30%),
        linear-gradient(135deg, #243d2e, #547245 48%, #2f4b35);
}

.oviTopTools {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.mapSearch {
    flex: 1;
    min-height: 36px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(10, 24, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.oviSideTools {
    position: absolute;
    top: 68px;
    left: 12px;
    z-index: 3;
    display: grid;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(20, 32, 24, 0.18);
    border-radius: var(--radius);
}

.oviSideTools span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.oviSideTools span + span {
    border-top: 1px solid var(--line);
}

.oviCanvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        linear-gradient(24deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(114deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 18% 22%, rgba(157, 178, 91, 0.45), transparent 24%),
        radial-gradient(circle at 70% 36%, rgba(105, 143, 74, 0.5), transparent 28%),
        radial-gradient(circle at 50% 78%, rgba(54, 86, 50, 0.86), transparent 38%),
        #365d39;
    background-size: 48px 48px, 56px 56px, auto, auto, auto, auto;
}

.satelliteGrid {
    position: absolute;
    inset: -30px;
    opacity: 0.42;
    background:
        repeating-linear-gradient(
            18deg,
            rgba(226, 238, 176, 0.38) 0,
            rgba(226, 238, 176, 0.38) 3px,
            transparent 3px,
            transparent 18px
        );
}

.mapRiverBand {
    position: absolute;
    right: -60px;
    bottom: 82px;
    left: -70px;
    height: 34px;
    background: rgba(72, 155, 184, 0.72);
    border: 4px solid rgba(219, 244, 255, 0.48);
    border-radius: 999px;
    transform: rotate(-8deg);
}

.mapRoadLine {
    position: absolute;
    background: rgba(245, 237, 198, 0.82);
    border: 1px solid rgba(90, 72, 42, 0.18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mainRoad {
    right: 20px;
    bottom: 112px;
    left: 48px;
    height: 9px;
    transform: rotate(-3deg);
}

.crossRoad {
    top: 70px;
    bottom: 40px;
    left: 51%;
    width: 9px;
    transform: rotate(3deg);
}

.kmlField {
    position: absolute;
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 150px;
    min-height: 94px;
    padding: 14px;
    color: #ffffff;
    background: rgba(47, 125, 79, 0.5);
    border: 3px solid #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    clip-path: polygon(5% 10%, 92% 0, 100% 82%, 12% 100%);
}

.kmlField strong,
.kmlField span {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

.kmlField strong {
    font-size: 15px;
}

.kmlField span {
    font-size: 12px;
    font-weight: 800;
}

.kmlField.isWatch {
    background: rgba(184, 135, 43, 0.58);
}

.kmlField.isDanger {
    background: rgba(182, 69, 60, 0.62);
}

.fieldA {
    top: 92px;
    left: 72px;
    width: 35%;
    transform: rotate(-3deg);
}

.fieldB {
    top: 82px;
    right: 38px;
    width: 34%;
    transform: rotate(2deg);
}

.fieldC {
    bottom: 78px;
    left: 92px;
    width: 34%;
    transform: rotate(4deg);
}

.fieldD {
    right: 58px;
    bottom: 70px;
    width: 35%;
    transform: rotate(-2deg);
}

.mapCenterMark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.mapCenterMark::before,
.mapCenterMark::after {
    position: absolute;
    content: "";
    background: rgba(255, 255, 255, 0.9);
}

.mapCenterMark::before {
    top: 15px;
    right: -9px;
    left: -9px;
    height: 2px;
}

.mapCenterMark::after {
    top: -9px;
    bottom: -9px;
    left: 15px;
    width: 2px;
}

.satelliteBase {
    fill: #3f633f;
}

.satelliteTexture {
    fill: rgba(183, 198, 120, 0.28);
}

.satelliteCropRows {
    fill: none;
    stroke: rgba(235, 241, 198, 0.24);
    stroke-width: 7;
    stroke-linecap: round;
}

.mapWater {
    fill: none;
    stroke: rgba(75, 157, 186, 0.58);
    stroke-width: 18;
    stroke-linecap: round;
}

.oviRoad {
    fill: none;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 16 10;
}

.oviField {
    stroke: #f7fbf4;
    stroke-width: 4;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

.normalBlock {
    fill: rgba(47, 125, 79, 0.74);
}

.watchBlock {
    fill: rgba(184, 135, 43, 0.78);
}

.dangerBlock {
    fill: rgba(182, 69, 60, 0.78);
}

.fieldLabel,
.fieldMetaLabel {
    fill: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    paint-order: stroke;
    stroke: rgba(10, 28, 18, 0.82);
    stroke-width: 4;
    stroke-linejoin: round;
}

.fieldLabel {
    font-size: 15px;
    font-weight: 800;
}

.fieldMetaLabel {
    font-size: 12px;
    font-weight: 700;
}

.largeLabel {
    font-size: 18px;
}

.mapCrosshair {
    fill: none;
    stroke: rgba(255, 255, 255, 0.86);
    stroke-width: 2;
    stroke-linecap: round;
}

.mapLayerBar {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(16, 36, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.oviTopTools .mapLayerBar {
    position: static;
    flex: 0 0 auto;
}

.mapLayerBar button {
    min-height: 30px;
    padding: 5px 9px;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.mapLayerBar button.isActive {
    color: #12331f;
    background: #d5ef75;
}

.mapZoomControl {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: grid;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(20, 32, 24, 0.18);
    border-radius: var(--radius);
}

.mapZoomControl span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.mapZoomControl span + span {
    border-top: 1px solid var(--line);
}

.mapCoordinate,
.mapScale {
    position: absolute;
    z-index: 1;
    color: #ffffff;
    background: rgba(16, 36, 24, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.mapCoordinate {
    left: 12px;
    bottom: 12px;
    padding: 6px 8px;
}

.mapScale {
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
}

.mapScale span {
    display: block;
    width: 52px;
    height: 4px;
    background: #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
}

.riskLegend {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
}

.riskLight {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 50%;
}

.greenLight {
    background: var(--green);
}

.yellowLight {
    background: var(--gold);
}

.redLight {
    background: var(--red);
}

.metricGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.metricCard,
.panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(220, 229, 220, 0.84);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metricCard {
    padding: 18px;
}

.metricCard span {
    color: var(--muted);
    font-size: 13px;
}

.metricCard strong {
    display: block;
    margin: 8px 0;
    font-size: 28px;
}

.metricCard p {
    margin: 0;
    color: var(--green-deep);
    font-size: 13px;
}

.contentGrid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 14px;
}

.mapGrid {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.panel {
    padding: 18px;
}

.widePanel {
    min-height: 360px;
}

.panelHeader {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    color: var(--green-deep);
    background: #e6f3e8;
    border: 1px solid #cde7d0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.priorityList,
.taskBoard,
.fieldList,
.newsGrid,
.actionStack,
.timeline,
.permissionTable {
    display: grid;
    gap: 10px;
}

.priorityItem,
.taskItem,
.fieldItem,
.newsItem,
.pointButton,
.timelineItem,
.permissionRow {
    padding: 14px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.priorityItem {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.priorityRank {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: var(--green);
    border-radius: var(--radius);
    font-weight: 800;
}

.priorityItem h4,
.taskItem h4,
.fieldItem h4,
.newsItem h4 {
    margin: 0 0 6px;
}

.priorityItem p,
.taskItem p,
.fieldItem p,
.newsItem p,
.assistantBox p,
.insightBox p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.assistantBox,
.insightBox {
    min-height: 150px;
    padding: 16px;
    background: #f7f9f6;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.assistantBox strong,
.insightBox strong {
    display: block;
    margin-bottom: 10px;
}

.assistantForm {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 14px;
}

.assistantForm select,
.assistantForm input {
    width: 100%;
    min-height: 54px;
    padding: 14px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
}

.quickQuestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quickQuestions button {
    min-height: 34px;
    padding: 7px 10px;
    color: var(--green-deep);
    background: #edf6ef;
    border: 1px solid #cfe7d4;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.assistantAnswer {
    min-height: 104px;
    margin-top: 14px;
    padding: 18px;
    color: var(--green-deep);
    background: linear-gradient(135deg, #edf6ef, #ffffff);
    border: 2px solid #b9ddc0;
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(47, 125, 79, 0.12);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.75;
}

.assistantAnswer:empty {
    display: none;
}

.visuallyHidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mockMap {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #2f4f38;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mockMap svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
}

.mapBase {
    fill: #dcebd6;
}

.mapRiver {
    fill: none;
    stroke: rgba(45, 112, 184, 0.48);
    stroke-width: 26;
    stroke-linecap: round;
}

.fieldShape {
    fill: rgba(184, 135, 43, 0.42);
    stroke: rgba(89, 71, 55, 0.72);
    stroke-width: 3;
}

.activeField {
    fill: rgba(47, 125, 79, 0.46);
}

.warningField {
    fill: rgba(182, 69, 60, 0.36);
}

.mapPin,
.riskPin {
    fill: #ffffff;
    stroke-width: 5;
}

.mapPin {
    stroke: var(--green);
}

.riskPin {
    stroke: var(--red);
}

.mapLegend {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 12px;
}

.legendBox {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 2px;
}

.legendBox.confirmed {
    background: var(--green);
}

.legendBox.pending {
    background: var(--gold);
}

.legendBox.risk {
    background: var(--red);
}

.fieldItem {
    display: grid;
    gap: 12px;
}

.fieldMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fieldMeta span,
.taskTag,
.newsTag,
.roleTag {
    padding: 5px 8px;
    color: var(--soil);
    background: #fff6dd;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.fieldActions,
.taskActions,
.newsActions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.secondaryButton,
.primaryButton,
.pointButton {
    min-height: 38px;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-weight: 700;
}

.primaryButton {
    color: #ffffff;
    background: var(--green);
    border: 1px solid var(--green);
}

.primaryButton:disabled {
    cursor: not-allowed;
    color: #7b827d;
    background: #e8ece7;
    border-color: var(--line);
}

.secondaryButton {
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
}

.taskItem {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.plainList {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.scoreValue {
    color: var(--green-deep);
    font-size: 34px;
}

.pointButton {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--line);
}

.timelineItem {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.newsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.newsItem {
    display: grid;
    gap: 12px;
}

.permissionRow {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.4fr) minmax(110px, 0.5fr);
    gap: 12px;
    align-items: center;
}

.permissionRow strong {
    min-width: 0;
}

.storageSteps {
    display: grid;
    gap: 12px;
}

.storageSteps div {
    padding: 14px;
    background: #f7f9f6;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.storageSteps p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    max-width: 360px;
    padding: 13px 15px;
    color: #ffffff;
    background: rgba(20, 32, 24, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.isVisible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .appShell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
    }

    .navList {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metricGrid,
    .briefingGrid,
    .overviewGrid,
    .contentGrid,
    .mapGrid,
    .newsGrid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .mainArea,
    .sidebar {
        padding: 14px;
    }

    body {
        background-attachment: scroll;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 3;
        gap: 12px;
        background: rgba(21, 56, 34, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(14px);
    }

    .brandBlock {
        gap: 10px;
    }

    .brandMark {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .brandBlock h1 {
        font-size: 18px;
    }

    .brandBlock .brandEyebrow {
        margin-bottom: 2px;
        font-size: 10px;
    }

    .storageCard {
        display: none;
    }

    .navList {
        display: flex;
        gap: 8px;
        margin: 0 -14px;
        padding: 0 14px 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .navList::-webkit-scrollbar {
        display: none;
    }

    .navItem {
        flex: 0 0 auto;
        width: auto;
        min-height: 38px;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 14px;
    }

    .topbar h2 {
        font-size: 22px;
    }

    .navList,
    .metricGrid,
    .briefingGrid,
    .overviewGrid,
    .contentGrid,
    .mapGrid,
    .newsGrid {
        grid-template-columns: 1fr;
    }

    .heroVisual {
        min-height: 190px;
    }

    .heroVisual > div {
        padding: 20px;
    }

    .heroVisual h3 {
        font-size: 24px;
    }

    .briefingCard,
    .metricCard,
    .panel {
        padding: 14px;
    }

    .briefingCard strong,
    .metricCard strong {
        font-size: 24px;
    }

    .mapSummaryPanel,
    .assistantPanel,
    .widePanel {
        min-height: auto;
    }

    .miniFieldMap,
    .mockMap {
        min-height: 260px;
    }

    .miniFieldMap svg,
    .mockMap svg {
        min-height: 260px;
    }

    .riskLegend,
    .mapLegend {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: center;
    }

    .priorityItem,
    .taskItem,
    .permissionRow {
        grid-template-columns: 1fr;
    }

    .panelHeader,
    .timelineItem {
        flex-direction: column;
    }

    .assistantForm {
        grid-template-columns: 1fr;
    }

    .assistantBox,
    .insightBox {
        min-height: auto;
    }

    .rolePanel {
        min-width: 0;
    }

    .loginBadge {
        min-width: 0;
        width: 100%;
    }

    .oviTopTools {
        align-items: stretch;
        flex-direction: column;
    }

    .oviTopTools .mapLayerBar {
        width: fit-content;
        max-width: 100%;
        overflow-x: auto;
    }

    .kmlField {
        min-width: 122px;
        min-height: 82px;
        padding: 10px;
    }

    .kmlField strong {
        font-size: 12px;
    }

    .kmlField span {
        font-size: 10px;
    }
}
