/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-emerald-400: oklch(76.5% 0.177 163.223);
    --color-neutral-100: oklch(97% 0 none);
    --color-neutral-200: oklch(92.2% 0 none);
    --color-neutral-300: oklch(87% 0 none);
    --color-neutral-400: oklch(70.8% 0 none);
    --color-neutral-500: oklch(55.6% 0 none);
    --color-neutral-600: oklch(43.9% 0 none);
    --color-neutral-700: oklch(37.1% 0 none);
    --color-neutral-800: oklch(26.9% 0 none);
    --color-neutral-900: oklch(20.5% 0 none);
    --color-black: #000;
    --spacing: 0.25rem;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --leading-normal: 1.5;
    --radius-sm: 0.25rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --animate-spin: spin 1s linear infinite;
    --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .collapse {
    visibility: collapse;
  }
  .invisible {
    visibility: hidden;
  }
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .m-48 {
    margin: calc(var(--spacing) * 48);
  }
  .mr-2 {
    margin-right: calc(var(--spacing) * 2);
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-block {
    display: inline-block;
  }
  .inline-flex {
    display: inline-flex;
  }
  .list-item {
    display: list-item;
  }
  .table {
    display: table;
  }
  .h-full {
    height: 100%;
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-full {
    width: 100%;
  }
  .shrink {
    flex-shrink: 1;
  }
  .grow {
    flex-grow: 1;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .rotate-45 {
    rotate: 45deg;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .animate-pulse {
    animation: var(--animate-pulse);
  }
  .animate-spin {
    animation: var(--animate-spin);
  }
  .resize {
    resize: both;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .bg-black {
    background-color: var(--color-black);
  }
  .text-left {
    text-align: left;
  }
  .break-all {
    word-break: break-all;
  }
  .text-emerald-400 {
    color: var(--color-emerald-400);
  }
  .text-neutral-500 {
    color: var(--color-neutral-500);
  }
  .capitalize {
    text-transform: capitalize;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .underline {
    text-decoration-line: underline;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .select-all {
    -webkit-user-select: all;
    user-select: all;
  }
  @media (hover: hover) {
    .hover\:bg-\[var\(--color-accent-100\)\]:hover {
      background-color: var(--color-accent-100);
    }
  }
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/plus-jakarta-sans-vietnamese-wght-normal.9ba5d91f.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/plus-jakarta-sans-latin-ext-wght-normal.a048183b.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/plus-jakarta-sans-latin-wght-normal.be6419ff.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/manrope-vietnamese-wght-normal.383b32a0.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/manrope-latin-ext-wght-normal.f5cc7610.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/manrope-latin-wght-normal.fedf4c92.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font-plus-jakarta-sans: "Plus Jakarta Sans";
  --font-manrope: "Manrope";
  --font-heading: var(--font-manrope), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font-plus-jakarta-sans), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  --color-bg: #EEF2F7;
  --color-surface: #FFFFFF;
  --color-surface-2: #F8FAFC;
  --color-header-bg: #FFFFFF;
  --color-input-bg: #FFFFFF;
  --color-text: #1E293B;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-on-accent: #FFFFFF;
  --color-overlay: rgba(15, 23, 42, 0.45);
  --color-media-bg: #0A1020;
  --color-on-media: #FFFFFF;
  --color-hud-bg: rgba(11, 22, 40, 0.86);
  --color-hud-text: #E3E8F1;
  --color-accent-100: #EAF3FF;
  --color-accent-200: #CFE2FF;
  --color-accent-300: #9EC5FE;
  --color-accent-400: #5C9DFB;
  --color-accent: #1677FF;
  --color-accent-500: #1677FF;
  --color-accent-600: #0958D9;
  --color-accent-700: #0746B2;
  --color-accent-800: #053382;
  --color-accent-900: #0B1F3A;
  --color-neutral-100: #F1F5F9;
  --color-neutral-200: #D5DEE8;
  --color-neutral-300: #B4C2D2;
  --color-neutral-400: #8A9BB0;
  --color-neutral-500: #64748B;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1E293B;
  --color-neutral-900: #0F172A;
  --color-border: var(--color-neutral-200);
  --color-border-strong: var(--color-neutral-300);
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-danger: #DC2626;
  --color-info: #0284C7;
  --color-purple: #7C3AED;
  --color-cyan: #0891B2;
  --tint-accent: #EAF3FF;
  --color-brand: #0E46B2;
  --tint-success: #DCFCE7;
  --tint-warning: #FEF3C7;
  --tint-danger: #FEE2E2;
  --tint-info: #E0F2FE;
  --tint-purple: #EDE9FE;
  --tint-cyan: #CFFAFE;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --icon-stroke: 1.75;
  --icon-stroke-small: 2;
  --color-icon: var(--color-text-secondary);
  --color-icon-accent: var(--color-accent-600);
  --icon-blue: #2563EB;
  --icon-green: #16A34A;
  --icon-amber: #D97706;
  --icon-red: #DC2626;
  --icon-purple: #7C3AED;
  --icon-pink: #DB2777;
  --icon-indigo: #4F46E5;
  --icon-cyan: #0891B2;
  --icon-orange: #EA580C;
  --icon-teal: #0D9488;
  --icon-slate: #475569;
  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-2-5: 8.5px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-5: 17px;
  --space-6: 20.4px;
  --space-8: 27.2px;
  --space-10: 34px;
  --space-12: 40.8px;
  --space-16: 54.4px;
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-base: 4px;
  --shadow-sm: 0 1px 2px rgba(29, 31, 32, 0.06);
  --shadow-md: 0 2px 8px rgba(29, 31, 32, 0.09);
  --shadow-lg: 0 4px 16px rgba(29, 31, 32, 0.12);
  --border-hairline: 1px solid var(--color-neutral-200);
  --border-accent: 1px solid var(--color-accent-200);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0F1420;
  --color-surface: #141B2E;
  --color-surface-2: #10162A;
  --color-header-bg: #151B2B;
  --color-input-bg: #202A46;
  --color-text: #E3E8F1;
  --color-text-secondary: #C5CEE3;
  --color-text-muted: #8291B4;
  --color-on-accent: #FFFFFF;
  --color-overlay: rgba(0, 0, 0, 0.6);
  --color-accent-100: #2A1D12;
  --color-accent-200: #3D2814;
  --color-accent-300: #5C3A1A;
  --color-accent-400: #E8893A;
  --color-accent: #D4772A;
  --color-accent-500: #D4772A;
  --color-accent-600: #E8893A;
  --color-accent-700: #FFB366;
  --color-accent-800: #FFD0A0;
  --color-accent-900: #FFE8D1;
  --color-neutral-100: #1A2238;
  --color-neutral-200: #253050;
  --color-neutral-300: #2C3A62;
  --color-neutral-400: #5F6D8F;
  --color-neutral-500: #8291B4;
  --color-neutral-600: #A3AFCB;
  --color-neutral-700: #C5CEE3;
  --color-neutral-800: #D6DCEA;
  --color-neutral-900: #E3E8F1;
  --color-border: #253050;
  --color-border-strong: #2C3A62;
  --color-success: #3FB950;
  --color-warning: #E3B341;
  --color-danger: #F85149;
  --color-info: #58A6FF;
  --color-purple: #A371F7;
  --color-cyan: #39C5E0;
  --tint-accent: #2A1D12;
  --color-brand: #2F7BFF;
  --tint-success: #12261A;
  --tint-warning: #2E2510;
  --tint-danger: #2D1517;
  --tint-info: #0E2238;
  --tint-purple: #221A38;
  --tint-cyan: #0E2A33;
  --color-icon: #A3AFCB;
  --color-icon-accent: #E8893A;
  --icon-blue: #58A6FF;
  --icon-green: #3FB950;
  --icon-amber: #E3B341;
  --icon-red: #F85149;
  --icon-purple: #A371F7;
  --icon-pink: #F778BA;
  --icon-indigo: #8B95F9;
  --icon-cyan: #39C5E0;
  --icon-orange: #FF9A4D;
  --icon-teal: #2DD4BF;
  --icon-slate: #A3AFCB;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.55);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  height: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--leading-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
::selection {
  background: var(--color-accent-200);
  color: var(--color-accent-900);
}
svg.lucide {
  stroke-width: var(--icon-stroke);
  flex-shrink: 0;
}
svg.lucide[width="11"],
svg.lucide[width="12"],
svg.lucide[width="13"],
svg.lucide[width="14"] {
  stroke-width: var(--icon-stroke-small);
}
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-base);
  background: var(--tint-accent);
  color: var(--color-icon-accent);
}
.icon-chip--sm {
  width: 22px;
  height: 22px;
}
.icon-chip--lg {
  width: 36px;
  height: 36px;
}
.icon-chip--success {
  background: var(--tint-success);
  color: var(--color-success);
}
.icon-chip--warning {
  background: var(--tint-warning);
  color: var(--color-warning);
}
.icon-chip--danger {
  background: var(--tint-danger);
  color: var(--color-danger);
}
.icon-chip--info {
  background: var(--tint-info);
  color: var(--color-info);
}
.icon-chip--purple {
  background: var(--tint-purple);
  color: var(--color-purple);
}
.workspace-sidebar-toggle {
  position: absolute;
  z-index: 60;
  top: 50%;
  width: 18px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--border-accent);
  background: var(--color-surface);
  color: var(--color-accent-800);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: left .3s ease, right .3s ease, background .15s ease;
}
.workspace-sidebar-toggle[data-side="left"] {
  transform: translate(-50%, -50%);
}
.workspace-sidebar-toggle[data-side="right"] {
  transform: translate(50%, -50%);
}
.workspace-sidebar-toggle:hover {
  background: var(--color-accent-100);
}
.workspace-sidebar-toggle:active {
  background: var(--color-accent-200);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.heading {
  font-family: var(--font-heading);
  font-weight: 700;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.input {
  height: var(--space-8);
  width: 100%;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  border: var(--border-hairline);
  border-radius: var(--radius-none);
  background: var(--color-input-bg);
  padding: 0 var(--space-3);
  outline: none;
  transition: border-color 0.15s ease;
}
.input::placeholder {
  color: var(--color-text-muted);
}
.input:hover {
  border-color: var(--color-neutral-400);
}
.input:focus {
  border-color: var(--color-accent);
}
.input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.blueprint {
  position: relative;
  border: var(--border-hairline);
  background: var(--color-surface);
}
.blueprint>.corner {
  position: absolute;
  width: 8px;
  height: 8px;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  color: var(--color-neutral-400);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blueprint>.corner::before {
  content: "+";
}
.blueprint>.corner.tl {
  top: -4px;
  left: -4px;
}
.blueprint>.corner.tr {
  top: -4px;
  right: -4px;
}
.blueprint>.corner.bl {
  bottom: -4px;
  left: -4px;
}
.blueprint>.corner.br {
  bottom: -4px;
  right: -4px;
}
.card {
  padding: var(--space-4);
}
.card-kicker {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  border-left: 3px solid var(--color-accent);
  padding-left: 6px;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.card-kicker::before {
  display: none;
}
.card-fig {
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: var(--border-hairline);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tag:hover {
  background: var(--color-accent-100);
}
.tag-accent {
  border-color: var(--color-accent-300);
  color: var(--color-accent-700);
  background: var(--color-accent-100);
}
:where(th, .btn, [class*="badge"], [class*="-tag"], [class*="chip"], [class*="pill"], [class*="nav-tab"]) {
  white-space: nowrap;
}
:where(.area-param-tags, .res-list-tags, .dev-bypass-badge-bar) {
  white-space: normal;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: var(--border-hairline);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--color-neutral-100);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-600);
}
.btn-ghost {
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--color-neutral-100);
  border-color: var(--color-neutral-200);
}
.btn-icon {
  padding: var(--space-2);
  min-width: 30px;
  min-height: 30px;
  color: var(--color-icon-accent);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  height: 52px;
  padding: 0 var(--space-5);
  background: var(--color-header-bg);
  border-bottom: var(--border-hairline);
  font-family: var(--font-body);
  font-weight: 600;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-accent-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  justify-self: start;
}
.nav-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-brand-wordmark {
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1.1px currentColor;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eagle-eye-mark {
  flex-shrink: 0;
  -webkit-text-stroke: 0;
}
.eagle-eye-mark-glint {
  fill: var(--color-header-bg);
}
.app-corner-logo {
  position: fixed;
  right: 10px;
  bottom: 4px;
  z-index: 900;
  width: auto;
  height: 12px;
  opacity: 0.3;
  pointer-events: none;
}
.nav-date-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-weather-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-accent-700);
  white-space: nowrap;
}
.nav-weather-date {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  margin-left: 2px;
}
.nav-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: center;
}
.nav-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  border: var(--border-hairline);
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-tab:hover {
  background: var(--color-accent-100);
}
.nav-tab[data-active="true"] {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}
.nav-tab-chevron {
  transition: transform 0.2s ease;
}
.nav-tab-dropdown {
  position: relative;
  display: inline-block;
}
.nav-tab-dropdown[data-open="true"] .nav-tab-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: var(--border-hairline);
  box-shadow: var(--shadow-md);
  margin-top: 0;
  z-index: 100;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--color-neutral-100);
}
.nav-dropdown-item:last-child {
  border-bottom: none;
}
.nav-dropdown-item:hover {
  background: var(--color-accent-100);
  color: var(--color-accent-900);
}
.nav-dropdown-item[data-active="true"] {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-self: end;
  margin-right: var(--space-2);
}
.nav-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: var(--border-accent);
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--color-accent-700);
  text-transform: uppercase;
  background: var(--color-accent-100);
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-accent-700);
}
.stat-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-neutral-200);
}
.progress-fill {
  height: 100%;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.donut {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.donut-center {
  position: absolute;
  text-align: center;
}
.donut-center-value {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-700);
}
.donut-center-label {
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.elev-sm {
  box-shadow: var(--shadow-sm);
}
.elev-md {
  box-shadow: var(--shadow-md);
}
.elev-lg {
  box-shadow: var(--shadow-lg);
}
[disabled],
.disabled {
  opacity: 0.45;
  pointer-events: none;
}
[data-shell="results"],
[data-shell="operations"] {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - 52px);
  overflow: hidden;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}
.dialog {
  background: var(--color-surface);
  border: var(--border-hairline);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
}
.dialog-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-hairline);
}
.dialog-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}
.dialog-body {
  padding: var(--space-4);
  overflow-y: auto;
}
.dialog-actions {
  padding: var(--space-3) var(--space-4);
  border-top: var(--border-hairline);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}
.technical-select-field {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.technical-select-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
}
.technical-select-trigger {
  border-radius: 0 !important;
}
.technical-select[data-disabled='true'] .technical-select-trigger {
  cursor: not-allowed;
  opacity: 0.5;
}
[data-eagle-map],
[data-map-view] {
  position: relative;
  z-index: 0;
}
[data-eagle-map] canvas,
[data-map-view] canvas {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
}
[data-eagle-map] .mf-iconview-marker-container,
[data-map-view] .mf-iconview-marker-container {
  position: absolute !important;
  z-index: 1000 !important;
  visibility: visible !important;
  display: inline-block !important;
}
[data-map-view] .mf-iconview-marker-container:has([data-hovered="true"]) {
  z-index: 1001 !important;
}
.fre-mf-waypoint,
.fre-mf-takeoff,
.fre-mf-area-vertex,
.frm-waypoint-marker,
.fre-mf-delete-badge,
.fre-mf-add-badge,
.fre-mf-grid-point,
.dms-mf-marker-icon,
.dms-dock-marker,
.geofence-mf-airport-pin,
.geofence-mf-zone-label,
.geofence-mf-vertex,
.mv-route-marker,
.mv-route-takeoff,
.mv-route-vertex {
  position: relative;
  z-index: 1000 !important;
  visibility: visible !important;
}
.geofence-mf-airport-pin {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #d97706;
  color: #ea580c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.geofence-mf-airport-pin.no-fly {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}
.geofence-mf-airport-pin.height-limit {
  border-color: #d97706;
  color: #d97706;
  background: #fffbeb;
}
.geofence-mf-airport-pin:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.geofence-mf-airport-pin[data-selected="true"] {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2.5px var(--color-accent), 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) scale(1.25);
}
.geofence-mf-zone-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--color-surface, #ffffff);
  border: 1.5px solid var(--color-neutral-300, #cbd5e1);
  color: var(--color-text, #0f172a);
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.geofence-mf-zone-label[data-type="no-fly"] {
  border-left: 3px solid #dc2626;
}
.geofence-mf-zone-label[data-type="height-limit"] {
  border-left: 3px solid #f59e0b;
}
.geofence-mf-zone-label[data-type="custom-control"] {
  border-left: 3px solid #1677ff;
}
.geofence-mf-height-tag {
  font-size: var(--text-2xs);
  padding: 1px 4px;
  background: #fef3c7;
  color: #d97706;
  border-radius: 2px;
}
.app-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  width: min(460px, calc(100vw - 32px));
  min-height: 58px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 14px 14px;
  overflow: hidden;
  border: 1px solid var(--toast-accent, var(--color-accent-300));
  background: var(--color-neutral-900);
  color: var(--color-surface);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.24);
  animation: app-toast-enter 220ms ease-out;
}
.app-toast .corner {
  color: var(--toast-accent, var(--color-accent-300));
}
.app-toast--success {
  --toast-accent: var(--color-success);
}
.app-toast--info {
  --toast-accent: var(--color-accent-300);
}
.app-toast--warning {
  --toast-accent: var(--color-warning);
}
.app-toast--error {
  --toast-accent: var(--color-danger);
}
.app-toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--toast-accent);
  border: 1px solid var(--toast-accent);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--toast-accent) 55%, transparent);
  }
  background: var(--toast-accent);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--toast-accent) 12%, transparent);
  }
}
.app-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 1px;
}
.app-toast-title {
  color: var(--color-surface);
  font: 600 0.75rem var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-toast-message {
  color: var(--color-accent-200);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.app-toast-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-neutral-600);
  background: transparent;
  color: var(--color-neutral-300);
  cursor: pointer;
}
.app-toast-close:hover,
.app-toast-close:focus-visible {
  border-color: var(--toast-accent);
  color: var(--color-surface);
  background: var(--toast-accent);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--toast-accent) 18%, transparent);
  }
}
.app-toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  transform-origin: left;
  background: var(--toast-accent);
  animation: app-toast-progress 4.5s linear forwards;
}
@keyframes app-toast-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes app-toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@media (max-width: 640px) {
  .app-toast {
    top: 12px;
    width: calc(100vw - 24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-toast,
  .app-toast-progress {
    animation: none;
  }
}
.app-toast {
  top: 24px;
  right: 24px;
  left: auto;
  width: min(420px, calc(100vw - 32px));
  transform: none;
  border-color: var(--toast-accent);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 8px 24px rgba(29, 31, 32, 0.16);
}
.app-toast .corner {
  color: var(--toast-accent);
}
.app-toast-icon {
  border-color: var(--toast-accent);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--toast-accent) 45%, var(--color-neutral-200));
  }
  background: var(--color-neutral-100);
}
.app-toast-title {
  color: var(--color-accent-900);
}
.app-toast-message {
  color: var(--color-text-secondary);
}
.app-toast-close {
  border-color: var(--color-neutral-300);
  color: var(--color-text-secondary);
}
.app-toast-close:hover,
.app-toast-close:focus-visible {
  color: var(--color-accent-800);
  background: var(--color-accent-100);
}
@keyframes app-toast-enter {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 640px) {
  .app-toast {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}
.nav-theme-toggle svg.lucide-sun {
  color: var(--icon-amber);
}
.nav-theme-toggle svg.lucide-moon {
  color: var(--icon-indigo);
}
.nav-menu-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 6px;
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.nav-menu-section .lucide {
  color: var(--color-icon-accent);
}
.nav-seg {
  display: grid;
  gap: 2px;
  margin: 0 12px 10px;
  padding: 2px;
  border: var(--border-hairline);
  background: var(--color-surface-2);
}
.nav-seg--2 {
  grid-template-columns: 1fr 1fr;
}
.nav-seg--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.nav-seg-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-seg-opt:hover {
  background: var(--color-accent-100);
  color: var(--color-text);
}
.nav-seg-opt[data-active="true"] {
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
}
.nav-menu-divider {
  height: 1px;
  background: var(--color-border);
}
.app-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.app-body > main {
  min-width: 0;
}
.side-dock {
  --dock-width: 84px;
  position: relative;
  z-index: 40;
  flex: 0 0 var(--dock-width);
  width: var(--dock-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 6px;
  background: var(--color-header-bg);
  border-right: var(--border-hairline);
  font-family: var(--font-body);
}
.side-dock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.side-dock-item {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-1);
  border: 0;
  border-radius: var(--radius-base);
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.side-dock-item:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.side-dock-item:focus-visible,
.side-dock-shortcut:focus-visible {
  outline: 2px solid var(--color-accent-500);
  outline-offset: 1px;
}
.side-dock-item[data-active="true"] {
  background: var(--color-accent-600);
  color: var(--color-on-accent);
}
.side-dock-label {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}
.side-dock-foot {
  align-items: center;
  padding-top: var(--space-2);
  border-top: var(--border-hairline);
}
.side-dock-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface-2);
  transition: background-color 0.15s ease;
}
.side-dock-shortcut:hover {
  background: var(--color-neutral-200);
}
.side-dock-shortcut[data-active="true"] {
  background: var(--color-accent-600);
  color: var(--color-on-accent);
}
@media (max-width: 768px) {
  .side-dock {
    display: none;
  }
}
:where(svg.lucide-plane),
:where(svg.lucide-plane-takeoff),
:where(svg.lucide-plane-landing),
:where(svg.lucide-satellite),
:where(svg.lucide-radio-tower),
:where(svg.lucide-radio),
:where(svg.lucide-radar),
:where(svg.lucide-drone),
:where(svg.lucide-warehouse),
:where(svg.lucide-send),
:where(svg.lucide-navigation),
:where(svg.lucide-navigation-off),
:where(svg.lucide-users),
:where(svg.lucide-user),
:where(svg.lucide-user-round),
:where(svg.lucide-user-cog),
:where(svg.lucide-shield),
:where(svg.lucide-shield-check),
:where(svg.lucide-anchor),
:where(svg.lucide-hard-drive),
:where(svg.lucide-box),
:where(svg.lucide-door-open),
:where(svg.lucide-door-closed),
:where(svg.lucide-plug),
:where(svg.lucide-wifi),
:where(svg.lucide-phone) {
  color: var(--icon-blue);
}
:where(svg.lucide-map),
:where(svg.lucide-map-pinned),
:where(svg.lucide-map-pin),
:where(svg.lucide-route),
:where(svg.lucide-layers),
:where(svg.lucide-layers-3),
:where(svg.lucide-waypoints),
:where(svg.lucide-spline),
:where(svg.lucide-pentagon),
:where(svg.lucide-lasso),
:where(svg.lucide-mountain),
:where(svg.lucide-mountain-snow),
:where(svg.lucide-check-circle),
:where(svg.lucide-check-circle-2),
:where(svg.lucide-circle-check),
:where(svg.lucide-circle-check-big),
:where(svg.lucide-check-check),
:where(svg.lucide-check-square),
:where(svg.lucide-square-check),
:where(svg.lucide-bookmark-check),
:where(svg.lucide-clipboard-check),
:where(svg.lucide-list-checks),
:where(svg.lucide-file-check),
:where(svg.lucide-battery-charging),
:where(svg.lucide-battery),
:where(svg.lucide-battery-medium),
:where(svg.lucide-play),
:where(svg.lucide-play-circle),
:where(svg.lucide-circle-play),
:where(svg.lucide-save) {
  color: var(--icon-green);
}
:where(svg.lucide-alert-triangle),
:where(svg.lucide-triangle-alert),
:where(svg.lucide-bell),
:where(svg.lucide-bell-ring),
:where(svg.lucide-bell-off),
:where(svg.lucide-alarm-clock),
:where(svg.lucide-key),
:where(svg.lucide-key-round),
:where(svg.lucide-lock),
:where(svg.lucide-unlock),
:where(svg.lucide-lock-open),
:where(svg.lucide-zap),
:where(svg.lucide-star),
:where(svg.lucide-lightbulb),
:where(svg.lucide-message-square-warning),
:where(svg.lucide-hourglass) {
  color: var(--icon-amber);
}
:where(svg.lucide-trash),
:where(svg.lucide-trash-2),
:where(svg.lucide-x-circle),
:where(svg.lucide-circle-x),
:where(svg.lucide-ban),
:where(svg.lucide-circle-slash),
:where(svg.lucide-siren),
:where(svg.lucide-video-off),
:where(svg.lucide-image-off),
:where(svg.lucide-alert-circle),
:where(svg.lucide-circle-alert),
:where(svg.lucide-shield-alert),
:where(svg.lucide-power),
:where(svg.lucide-octagon-alert) {
  color: var(--icon-red);
}
:where(svg.lucide-brain),
:where(svg.lucide-brain-circuit),
:where(svg.lucide-cpu),
:where(svg.lucide-scan),
:where(svg.lucide-scan-line),
:where(svg.lucide-bot),
:where(svg.lucide-sparkles),
:where(svg.lucide-aperture),
:where(svg.lucide-focus) {
  color: var(--icon-purple);
}
:where(svg.lucide-camera),
:where(svg.lucide-video),
:where(svg.lucide-image),
:where(svg.lucide-images),
:where(svg.lucide-image-icon),
:where(svg.lucide-film),
:where(svg.lucide-gallery-horizontal-end),
:where(svg.lucide-file-image) {
  color: var(--icon-pink);
}
:where(svg.lucide-calendar),
:where(svg.lucide-calendar-days),
:where(svg.lucide-calendar-clock),
:where(svg.lucide-calendar-range),
:where(svg.lucide-calendar-plus),
:where(svg.lucide-clock),
:where(svg.lucide-clock-3),
:where(svg.lucide-timer),
:where(svg.lucide-timer-reset),
:where(svg.lucide-history),
:where(svg.lucide-repeat) {
  color: var(--icon-indigo);
}
:where(svg.lucide-cloud),
:where(svg.lucide-cloud-rain),
:where(svg.lucide-wind),
:where(svg.lucide-droplets),
:where(svg.lucide-thermometer),
:where(svg.lucide-thermometer-sun),
:where(svg.lucide-sun),
:where(svg.lucide-moon),
:where(svg.lucide-compass),
:where(svg.lucide-crosshair),
:where(svg.lucide-locate-fixed),
:where(svg.lucide-target),
:where(svg.lucide-globe),
:where(svg.lucide-ruler),
:where(svg.lucide-mountain-snow) {
  color: var(--icon-cyan);
}
:where(svg.lucide-layout-dashboard),
:where(svg.lucide-layout-grid),
:where(svg.lucide-gauge),
:where(svg.lucide-circle-gauge),
:where(svg.lucide-activity),
:where(svg.lucide-house),
:where(svg.lucide-home),
:where(svg.lucide-monitor),
:where(svg.lucide-palette),
:where(svg.lucide-tags),
:where(svg.lucide-tag) {
  color: var(--icon-orange);
}
:where(svg.lucide-file-text),
:where(svg.lucide-file-code),
:where(svg.lucide-file-archive),
:where(svg.lucide-file-stack),
:where(svg.lucide-file-search),
:where(svg.lucide-file-pen),
:where(svg.lucide-file-up),
:where(svg.lucide-folder),
:where(svg.lucide-folder-open),
:where(svg.lucide-clipboard-list),
:where(svg.lucide-list-todo),
:where(svg.lucide-inbox),
:where(svg.lucide-download),
:where(svg.lucide-upload),
:where(svg.lucide-library),
:where(svg.lucide-list-ordered) {
  color: var(--icon-teal);
}
:where(svg.lucide-settings),
:where(svg.lucide-sliders),
:where(svg.lucide-sliders-horizontal),
:where(svg.lucide-settings-2),
:where(svg.lucide-wrench) {
  color: var(--icon-slate);
}
:is(.btn-primary, .ant-btn-primary, .ant-btn-dangerous, .ant-tag, .ant-alert, .ant-message, .ant-badge,
    .ant-result, .ant-notification-notice, .icon-chip,
    [data-active="true"], [aria-selected="true"], [aria-checked="true"], [aria-current="page"],
    [class*="badge"], [class*="-tag"], [class*="danger"], [class*="error"], [class*="warning"],
    [class*="success"]) svg.lucide {
  color: inherit;
}
:root[data-theme="dark"] .app-corner-logo {
  filter: brightness(1.75) saturate(1.15);
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!../../packages/map-view/src/controls/controls.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* How much room the top-right control stack needs kept free. One 36px icon button plus the
   cluster's own right gutter, rounded up — every top bar a host screen draws over a map caps or
   offsets itself by this so it cannot land on the controls (see `.mv-control-cluster`). */
:root {
  --mv-controls-right-clearance: 56px;
}

.mv-control-cluster {
  position: absolute;
  right: var(--space-3, 10.2px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 10.2px);
  /* Above the vendor's HTML markers, which the host app forces to `z-index: 1000 !important` so
     they clear the WebGL canvas (see `[data-map-view] .mf-iconview-marker-container` in
     `apps/web/app/globals.css`). At 10 a dock/drone marker drew straight through any control wide
     enough to sit under it — the open layer panel made that unmissable. */
  z-index: 1100;
  /* A control must never spill outside the map it belongs to. The search box asks for 340px, which
     is wider than a small embedded map (the results dialog's minimap is ~326px), so cap the cluster
     at the map and let the box shrink into it — see `.mv-control-search`'s `max-width`. */
  max-width: calc(100% - var(--space-3, 10.2px) * 2);
  /* Same rule vertically: a map panel clips its overflow (`.oa-map`), so a cluster taller than the
     map would simply cut its last control off with no way to reach it. Only the layer panel gives
     way — it scrolls; every other control keeps its size. */
  max-height: calc(100% - var(--space-3, 10.2px) * 2);
  /* The cap above makes the cluster cover map the controls do not occupy, so it must stay
     transparent to clicks; each control takes them back for itself. */
  pointer-events: none;
}

.mv-control-cluster > * {
  pointer-events: auto;
  flex-shrink: 0;
}

.mv-control-cluster--top-right {
  top: var(--space-3, 10.2px);
  align-items: flex-end;
}

.mv-control-cluster--bottom-right {
  bottom: var(--space-3, 10.2px);
  align-items: flex-end;
}

.mv-control-cluster--top-center {
  top: var(--space-3, 10.2px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  flex-direction: row;
  align-items: center;
  /* Kept clear of the top-right icon stack on BOTH sides so the cluster stays centred on the map
     rather than drifting; `--mv-controls-right-clearance` is what every host screen that draws its
     own top bar over a map reserves too. */
  max-width: calc(100% - var(--mv-controls-right-clearance) * 2);
}

/* The shell every floating map bar in the product shares — same metrics as the results screen's
   `.res-map-floating-bar` and the geofence visibility ribbon, all three taken from the Events page
   filter bar: square corners, hairline border, `--space-2` gutter and gap, 28px-tall controls, and
   one type scale inside (0.75rem uppercase `--font-heading` for labels and actions, 0.75rem
   `--font-body` for values). Keep the three in step when changing any of them. */
.mv-control-panel.mv-outcome-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2, 6.8px);
  padding: 3px var(--space-2, 6.8px);
  border-radius: var(--radius-none);
  box-sizing: border-box;
  white-space: nowrap;
}

.mv-outcome-filter-types,
.mv-outcome-filter-preset {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2, 6.8px);
}

.mv-outcome-filter-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--space-2, 6.8px);
  border: var(--border-hairline);
  background: var(--color-surface);
  border-radius: var(--radius-none);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mv-outcome-filter-trigger:hover {
  background: var(--color-accent-100);
  border-color: var(--color-accent);
}

.mv-outcome-filter-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}

.mv-outcome-filter-type input[type='checkbox'] {
  accent-color: var(--color-accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.mv-outcome-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: var(--border-hairline);
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-none);
  padding: var(--space-2, 6.8px);
  z-index: 20;
}

.mv-outcome-filter-menu-item {
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  border-radius: var(--radius-none);
  padding: var(--space-1, 3.4px) var(--space-3, 10.2px);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

.mv-outcome-filter-menu-item:hover {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}

.mv-outcome-filter-date {
  box-sizing: border-box;
  height: 28px;
  padding: 0 var(--space-2, 6.8px);
  border: var(--border-hairline);
  background: var(--color-surface);
  border-radius: var(--radius-none);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text);
  cursor: pointer;
}

.mv-outcome-filter-date:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mv-outcome-filter-separator {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  padding: 0 var(--space-1, 3.4px);
}

/* Same shape as the app's `.btn` / `.btn-primary` / `.btn-ghost`, restated here because
   `packages/map-view` cannot reach the host app's global stylesheet. */
.mv-outcome-filter-query,
.mv-outcome-filter-reset {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--space-3, 10.2px);
  border: var(--border-hairline);
  border-radius: var(--radius-none);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mv-outcome-filter-query {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

.mv-outcome-filter-query:hover {
  background: var(--color-accent-600);
}

.mv-outcome-filter-reset {
  background: transparent;
  border-color: transparent;
  color: var(--color-text);
}

.mv-outcome-filter-reset:hover {
  background: var(--color-neutral-100);
  border-color: var(--color-neutral-200);
}

/* Right-aligned like `.mv-layer-panel-control`, and for the same reason: the default `stretch`
   made every button in the group take the width of whichever one was hovered, so expanding
   "Đo diện tích" also blew up the icon-only distance button sitting above it. */
.mv-control-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.mv-control-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border-hairline);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-base);
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.15s ease,
              border-color 0.15s ease,
              color 0.15s ease,
              transform 0.1s ease;
}

/* Every control button draws its glyph at one size. The `size` prop at each call site had drifted
   — 18 for zoom/2D-3D/base map, 16 for search, draw and measure — so two buttons in the same 36px
   column rendered visibly different icons. The button owns the size; the prop only picks the icon.
   Kept off the label span, which is text, not a glyph. */
.mv-control-btn > svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.mv-control-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-accent-300);
  color: var(--color-accent-700);
}

.mv-control-btn:active {
  transform: translateY(1px);
  background: var(--color-accent-100);
}

.mv-control-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.mv-control-btn--with-icon,
.mv-control-btn--with-label {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.mv-control-btn--with-icon:hover,
.mv-control-btn--with-icon:focus-visible,
.mv-control-btn--with-label:hover,
.mv-control-btn--with-label:focus-visible {
  width: auto;
  padding: 0 10px;
}

.mv-control-btn-label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  margin-left: 0;
  transition: max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              margin-left 0.2s ease;
}

.mv-control-btn:hover .mv-control-btn-label,
.mv-control-btn:focus-visible .mv-control-btn-label {
  max-width: 280px;
  opacity: 1;
  pointer-events: auto;
  margin-left: 6px;
}

.mv-control-btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent-600);
  color: var(--color-on-accent);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--color-accent) 25%, transparent);
}

.mv-control-btn--primary:hover {
  background: var(--color-accent-600);
  border-color: var(--color-accent-700);
  color: var(--color-on-accent);
}

.mv-control-btn--primary:active {
  background: var(--color-accent-700);
}

.mv-control-badge {
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 2px;
  background: var(--color-accent-100);
  color: var(--color-accent-700);
  border: 1px solid var(--color-accent-200);
  margin-left: 2px;
}

.mv-control-btn .mv-control-btn-label.mv-control-badge {
  padding: 0;
  border-width: 0;
  margin-left: 0;
}

.mv-control-btn:hover .mv-control-btn-label.mv-control-badge,
.mv-control-btn:focus-visible .mv-control-btn-label.mv-control-badge {
  padding: 2px 4px;
  border-width: 1px;
  margin-left: 6px;
}

.mv-control-btn--dimension[aria-pressed='true'],
.mv-control-btn--model[aria-pressed='true'] {
  background: var(--color-accent-100);
  border-color: var(--color-accent-300);
  color: var(--color-accent-700);
}

.mv-control-search-container {
  position: relative;
  /* A column flex container does not clamp an item's cross-axis size, so without this the 340px
     search box keeps that width and spills off a narrower map (see `.mv-control-cluster`). */
  max-width: 100%;
}

/* Collapsed, the control is one more icon in the top-right stack — see `SearchBoxInner` for why
   it no longer sits open across the top of the map. */
.mv-control-search-toggle[aria-expanded='true'] {
  background: var(--color-accent-100);
  border-color: var(--color-accent-300);
  color: var(--color-accent-700);
}

/* Grows to the LEFT of the icon, staying inside the same 36px band the controls already occupy.
   Dropping it below instead would clear the host screen's top bar but cover the map itself — on a
   small embedded map (the dashboard overview) that buried the very pins the search is used to
   find. Along the band it covers page chrome for as long as the box is open and nothing else; the
   suggestion list, which only appears once there is a query to answer, is what extends downwards. */
.mv-control-search-panel {
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  width: 340px;
  /* A percentage would resolve against the 36px icon this is anchored to, so the viewport is the
     only cap available here. */
  max-width: calc(100vw - var(--space-6, 20.4px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

/* In the bottom-right stack the panel lines up with the icon's bottom edge and the suggestions
   open upwards, so neither runs off the bottom of the map. */
.mv-control-cluster--bottom-right .mv-control-search-panel {
  top: auto;
  bottom: 0;
  flex-direction: column-reverse;
}

.mv-control-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 340px;
  max-width: 100%;
  height: 36px;
  border: var(--border-hairline);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.mv-control-search:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-100);
}

.mv-control-search-select {
  border: none;
  border-right: 1px solid var(--color-neutral-200);
  background: transparent;
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--color-text);
  padding: 0 6px 0 8px;
  height: 100%;
  outline: none;
  cursor: pointer;
  max-width: 115px;
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: none;
}

.mv-control-search-select:focus-visible {
  background: var(--color-neutral-100);
}

.mv-control-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text);
  outline: none;
  box-shadow: none;
}

.mv-control-search-clear {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  padding: 0 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: color 0.12s ease;
}

.mv-control-search-clear:hover {
  color: var(--color-text);
}

.mv-control-search-btn {
  border: none;
  border-left: 1px solid var(--color-neutral-200);
  background: transparent;
  color: var(--color-text);
  border-radius: 0;
  width: 36px;
  min-width: 36px;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mv-control-search-btn:hover {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}

.mv-control-search-btn:active {
  background: var(--color-accent-200);
}

.mv-control-search-results {
  /* In flow inside `.mv-control-search-panel`, which already carries the offset and the width
     this used to have to reproduce for itself. */
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: color-mix(in srgb, var(--color-surface) 96%, transparent);
  backdrop-filter: blur(8px);
  border: var(--border-hairline);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.mv-control-search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid var(--color-neutral-100);
  background: transparent;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 0.12s ease;
  font-family: var(--font-body);
}

.mv-control-search-result-item:last-child {
  border-bottom: none;
}

.mv-control-search-result-item:hover,
.mv-control-search-result-item--active {
  background: var(--color-accent-100);
}

.mv-control-search-result-icon {
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--color-accent-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mv-control-search-result-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.mv-control-search-result-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv-control-search-result-desc {
  font-size: var(--text-2xs);
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv-control-search-status {
  padding: 12px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-align: center;
}

.mv-control-panel {
  border: var(--border-hairline);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-base);
  padding: var(--space-3, 10.2px);
}

.mv-layer-panel {
  min-width: 190px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* The collapsible variant: trigger button on top, panel dropping under it, both right-aligned so
   the 36px button lines up with the rest of the cluster while the wider panel grows leftwards. */
.mv-layer-panel-control {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  /* The one cluster item that yields to the cluster's `max-height` — see there. `min-height: 0`
     is what lets it shrink below the open panel's content height at all. */
  flex-shrink: 1;
  min-height: 0;
}

.mv-layer-panel-control > .mv-control-btn {
  flex-shrink: 0;
}

.mv-layer-panel-control > .mv-layer-panel {
  min-height: 0;
}

.mv-layer-panel-control > .mv-control-btn[aria-expanded='true'] {
  background: var(--color-surface);
  border-color: var(--color-accent-300);
  color: var(--color-accent-700);
}

.mv-control-panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-neutral-200);
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-700);
}

.mv-control-checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 3px 4px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}

.mv-control-checkbox-row:hover {
  background: var(--color-neutral-100);
}

.mv-control-checkbox-row--child {
  padding-left: 1.2em;
}

.mv-control-checkbox-row--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mv-control-checkbox-row--disabled:hover {
  background: transparent;
}

.mv-control-checkbox-row--disabled input {
  cursor: not-allowed;
}

.mv-control-panel--measurement {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-left: 3px solid var(--color-accent);
}

.mv-measurement-badge {
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
}

.mv-measurement-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* Always shows its name and state: unlike the icon buttons it has no glyph that could stand alone.
   As wide as the base-map card under it, so the two read as one group; the label goes above the
   track because both do not fit side by side in that width. */
.mv-terrain-switch {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  padding: 5px 4px;
  border: var(--border-hairline);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-base);
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.mv-terrain-switch:hover {
  background: var(--color-surface);
  border-color: var(--color-accent-300);
}

.mv-terrain-switch:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.mv-terrain-switch-track {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: var(--color-border-strong);
  transition: background 0.15s ease;
}

.mv-terrain-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.mv-terrain-switch[aria-checked='true'] {
  color: var(--color-accent-700);
}

.mv-terrain-switch[aria-checked='true'] .mv-terrain-switch-track {
  background: var(--color-accent);
}

.mv-terrain-switch[aria-checked='true'] .mv-terrain-switch-thumb {
  transform: translateX(12px);
}

.mv-basemap-switcher {
  position: relative;
}

.mv-basemap-card {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 11px;
  overflow: hidden;
  background: #10252e;
  color: var(--color-on-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.27);
  cursor: pointer;
}

.mv-basemap-trigger {
  width: 64px;
  height: 64px;
}

.mv-basemap-card[aria-current='true'] {
  outline: 2px solid #68e0f4;
  outline-offset: -2px;
}

.mv-basemap-card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.mv-basemap-card-label {
  position: absolute;
  inset: auto 0 0;
  padding: 15px 2px 5px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(16, 37, 46, 0.81));
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  line-height: 1.2;
  text-align: center;
  /* Two lines at most, so a long label such as "Surface model (DSM)" cannot cover the picture. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Opens to the left of the trigger, out over the map, centred on it: the panel (62px cards + 5px
   padding) is 8px taller than the 64px trigger, hence the -4px. It grows out of the trigger's side
   and the cards follow one by one from the nearest, so the row reads as coming from the button. */
.mv-basemap-menu {
  position: absolute;
  right: calc(100% + 8px);
  bottom: -4px;
  display: flex;
  gap: 3px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(16, 37, 46, 0.95);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.33);
  z-index: 20;
  transform-origin: right center;
  animation: mv-basemap-menu-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mv-basemap-menu > .mv-basemap-card {
  animation: mv-basemap-card-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mv-basemap-menu > .mv-basemap-card:nth-last-child(2) {
  animation-delay: 30ms;
}

.mv-basemap-menu > .mv-basemap-card:nth-last-child(3) {
  animation-delay: 60ms;
}

.mv-basemap-menu > .mv-basemap-card:nth-last-child(n + 4) {
  animation-delay: 90ms;
}

@keyframes mv-basemap-menu-in {
  from {
    opacity: 0;
    transform: translateX(8px) scale(0.96);
  }
}

@keyframes mv-basemap-card-in {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv-basemap-menu,
  .mv-basemap-menu > .mv-basemap-card {
    animation: none;
  }
}

.mv-basemap-thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

/* The pictures live in the host app's `public/map-styles/` (taken from the PhucDung3D SDK
   playground), since this package ships no assets of its own. */
.mv-basemap-thumb--satellite {
  background-image: url('/map-styles/satellite.jpg');
}

.mv-basemap-thumb--raster {
  background-image: url('/map-styles/raster.png');
}

/* The playground draws roadmap as a pattern, not a picture. */
.mv-basemap-thumb--roadmap {
  background: repeating-linear-gradient(
      40deg,
      transparent 0,
      transparent 16px,
      #f6f9f6 17px,
      #f6f9f6 20px,
      transparent 21px,
      transparent 34px
    )
    #cddbd5;
}

.mv-basemap-thumb--terrain {
  background:
    linear-gradient(160deg, transparent 55%, #5d7043 56%),
    linear-gradient(200deg, transparent 45%, #8a9a5b 46%),
    #dbe7d3;
}

.mv-layer-group {
  display: flex;
  flex-direction: column;
}

.mv-layer-group-member {
  padding-left: 18px;
}

/* Anchored under an MFMarker tip at the capture lat/lng — not screen-centered. Light industry
 * wireframe surface (implement-ui), not the dark HUD card this used to be — a floating card reads
 * as part of the same light system as every dialog/panel elsewhere, not a different app. */
.mv-outcome-popup-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--color-neutral-900) 25%, transparent));
  pointer-events: auto;
  margin-bottom: 24px;
}

.mv-outcome-popup {
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: var(--border-hairline);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  pointer-events: auto;
}

.mv-outcome-popup-tip {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--color-surface);
  margin-top: -1px;
  filter: drop-shadow(0 2px 1px color-mix(in srgb, var(--color-neutral-900) 12%, transparent));
}

.mv-outcome-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--color-surface);
  border-bottom: var(--border-hairline);
}

.mv-outcome-popup-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.mv-outcome-popup-chevron {
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.mv-outcome-popup-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-outcome-popup-close {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0 4px;
  font-size: var(--text-xl);
  line-height: 1;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.mv-outcome-popup-close:hover {
  color: var(--color-danger);
}

.mv-outcome-popup-thumb-wrap {
  position: relative;
  width: 100%;
  background: var(--color-neutral-200);
  border-bottom: var(--border-hairline);
}

.mv-outcome-popup-thumb,
.mv-outcome-popup-placeholder {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--color-neutral-200);
}

.mv-outcome-popup-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 10px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-surface);
}

.mv-outcome-popup-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mv-outcome-popup-row-split {
  justify-content: space-between;
}

.mv-outcome-popup-row-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mv-outcome-popup-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.mv-outcome-popup-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-2xs);
  color: var(--color-text-secondary);
}

.mv-outcome-popup-details {
  align-self: flex-end;
  border: none;
  background: transparent;
  color: var(--color-accent-700);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.mv-outcome-popup-details:hover {
  color: var(--color-accent);
}

.mv-outcome-popup-details-arrow {
  transition: transform 0.15s ease;
}

.mv-outcome-popup-details:hover .mv-outcome-popup-details-arrow {
  transform: translateX(2px);
}

/* ── Refused-edit notice ────────────────────────────────────────────
   The pill that says why a draft click did nothing. Mirrors
   flight-route-management's own `.fre-map-notice`, which shipped first; the two must read as the
   same message because a pilot meets both. Sits above `.mv-control-cluster` so a top-centre
   control (the outcome filter) cannot cover it, and stays click-through: it explains a refusal,
   it never takes the next click away from the map underneath. */
.mv-draft-notice {
  position: absolute;
  z-index: 1200;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-2, 6.8px);
  max-width: min(520px, 80%);
  padding: var(--space-2, 6.8px) var(--space-3, 10.2px);
  border-radius: 4px;
  background: var(--color-danger);
  border: 1px solid color-mix(in srgb, var(--color-danger) 70%, var(--color-on-accent));
  color: var(--color-on-accent);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.35;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.mv-draft-notice svg {
  flex: 0 0 auto;
}

/* Responsive outcome filter: grouped, accessible controls that reflow without horizontal clipping. */
.mv-control-panel.mv-outcome-filter {
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2, 8px) var(--space-3, 12px);
  width: max-content;
  max-width: 100%;
  padding: var(--space-2, 8px);
}

.mv-outcome-filter-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mv-outcome-filter-types,
.mv-outcome-filter-preset {
  gap: var(--space-2, 8px);
}

.mv-outcome-filter-label {
  padding: 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.mv-outcome-filter-options,
.mv-outcome-filter-dates,
.mv-outcome-filter-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1, 4px);
}

.mv-outcome-filter-trigger,
.mv-outcome-filter-query,
.mv-outcome-filter-reset {
  min-height: 36px;
  height: auto;
  padding-inline: var(--space-3, 12px);
}

.mv-outcome-filter-type {
  gap: var(--space-1, 4px);
  min-height: 36px;
  padding: 0 var(--space-2, 8px);
  border: 1px solid transparent;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mv-outcome-filter-type:hover,
.mv-outcome-filter-type:has(input:checked) {
  border-color: var(--color-accent-300);
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}

.mv-outcome-filter-type input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.mv-outcome-filter-menu-item[data-active='true'] {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
  font-weight: 600;
}

.mv-outcome-filter-date {
  min-width: 132px;
  height: 36px;
  padding-inline: var(--space-2, 8px);
}

.mv-outcome-filter-trigger:focus-visible,
.mv-outcome-filter-type:has(input:focus-visible),
.mv-outcome-filter-date:focus-visible,
.mv-outcome-filter-query:focus-visible,
.mv-outcome-filter-reset:focus-visible,
.mv-outcome-filter-menu-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 1199px) {
  .mv-control-panel.mv-outcome-filter {
    justify-content: flex-start;
  }

  .mv-outcome-filter-types {
    flex: 1 1 100%;
  }
}

@media (max-width: 767px) {
  .mv-control-cluster--top-center {
    left: var(--space-2, 8px);
    right: var(--space-2, 8px);
    transform: none;
    max-width: none;
  }

  .mv-control-panel.mv-outcome-filter {
    width: 100%;
    max-height: min(50vh, 260px);
    overflow-y: auto;
  }

  .mv-outcome-filter-types,
  .mv-outcome-filter-preset,
  .mv-outcome-filter-dates,
  .mv-outcome-filter-actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .mv-outcome-filter-options {
    flex-wrap: wrap;
  }

  .mv-outcome-filter-label {
    flex: 0 0 100%;
  }

  .mv-outcome-filter-date {
    flex: 1 1 132px;
  }

  .mv-outcome-filter-query,
  .mv-outcome-filter-reset {
    flex: 1 1 120px;
    justify-content: center;
  }
}

/* Compact desktop correction: keep every toolbar group on one baseline. */
.mv-control-panel.mv-outcome-filter {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: var(--space-2, 8px);
  padding: 4px 6px;
}

.mv-outcome-filter-group,
.mv-outcome-filter-types,
.mv-outcome-filter-preset,
.mv-outcome-filter-options,
.mv-outcome-filter-dates,
.mv-outcome-filter-actions {
  flex-wrap: nowrap;
  align-items: center;
}

.mv-outcome-filter-label {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 var(--space-2, 8px);
  border-right: var(--border-hairline);
  background: var(--color-neutral-100);
  color: var(--color-accent-800);
  font-size: var(--text-2xs);
  line-height: 1;
}

.mv-outcome-filter-trigger,
.mv-outcome-filter-query,
.mv-outcome-filter-reset,
.mv-outcome-filter-type {
  min-height: 28px;
  height: 28px;
}

.mv-outcome-filter-type {
  padding-inline: 6px;
}

.mv-outcome-filter-type input[type='checkbox'] {
  width: 14px;
  height: 14px;
}

.mv-outcome-filter-date {
  min-width: 124px;
  width: 124px;
  height: 28px;
}

@media (max-width: 1199px) {
  .mv-control-panel.mv-outcome-filter {
    flex-wrap: wrap;
  }

  .mv-outcome-filter-types {
    flex-basis: auto;
  }
}

@media (max-width: 767px) {
  .mv-outcome-filter-types,
  .mv-outcome-filter-preset,
  .mv-outcome-filter-dates,
  .mv-outcome-filter-actions {
    flex-wrap: wrap;
  }

  .mv-outcome-filter-label {
    flex-basis: auto;
    align-self: center;
    min-height: 28px;
  }
}

/* Outcome types live in a dropdown so the map toolbar stays on one compact row. */
.mv-outcome-filter-type-menu {
  min-width: 176px;
  gap: 2px;
}

.mv-outcome-filter-type-menu .mv-outcome-filter-type {
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
}

/* Terrain base map: PhucDung3D measurements, one row per result the viewer keeps. */
.mv-terrain-measure-hint {
  max-width: 200px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.mv-terrain-measure-hint[data-problem] {
  color: var(--color-danger);
}

.mv-terrain-measure-results {
  max-height: 220px;
  overflow-y: auto;
}

.mv-terrain-measure-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.mv-terrain-measure-remove {
  display: inline-flex;
  padding: 2px;
  border: none;
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.mv-terrain-measure-remove:hover {
  color: var(--color-danger);
}

/* Terrain tilt slider: collapsed, one 36px button reading the tilt; expanded, the card grows a
   vertical slider above the reading. It grows in flow, and the bottom-right cluster is anchored at
   its bottom, so the zoom buttons above slide up with the animation while the reading and the
   2D/3D and base-map buttons below stay put under the pointer. Only height/opacity animate — the
   thumb moves by value, eased in `useTerrainTilt`. */
.mv-terrain-tilt {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 36px;
  min-height: 36px;
  border: var(--border-hairline);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-base);
  color: var(--color-text);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mv-terrain-tilt[data-expanded] {
  background: var(--color-surface);
  border-color: var(--color-accent-300);
  color: var(--color-accent-700);
}

.mv-terrain-tilt-panel {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.mv-terrain-tilt[data-expanded] .mv-terrain-tilt-panel {
  height: 124px;
  opacity: 1;
  pointer-events: auto;
}

/* `writing-mode` + `rtl` is the standard vertical range: it puts `max` (75°, horizon) at the top. */
.mv-terrain-tilt-slider {
  flex: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 20px;
  height: 116px;
  margin: 0;
  accent-color: var(--color-accent-700);
  cursor: pointer;
}

.mv-terrain-tilt-slider:disabled {
  cursor: not-allowed;
}

.mv-terrain-tilt-value {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-family: var(--font-heading);
  font-size: var(--text-2xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .mv-terrain-tilt,
  .mv-terrain-tilt-panel {
    transition: none;
  }
}

/* Map4D stacks every HTML marker wrapper at the host's forced `z-index: 1000` (globals.css) and
   ignores `setZIndex` for them, so overlapping pins fall back to creation order. The selected
   event pin (`data-mv-raised`, see `eventIconView`) has to clear its neighbours, and the popup has
   to clear that pin in turn — it used to sit on top only because it is created last. */
[data-map-view] .mf-iconview-marker-container:has([data-mv-raised]) {
  z-index: 1001 !important;
}

[data-map-view] .mf-iconview-marker-container:has(.mv-outcome-popup) {
  z-index: 1002 !important;
}

/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.35_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!../../packages/map-view/src/engine-3d/terrain-engine.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.mv-terrain {
  position: absolute;
  inset: 0;
  background: #1f2a33;
}

/* The SDK appends its iframe here and sizes it to 100%, so the box needs a real height. */
.mv-terrain-viewer {
  width: 100%;
  height: 100%;
}

.mv-terrain-viewer iframe {
  display: block;
  border: 0;
}

.mv-terrain-status {
  position: absolute;
  z-index: 1150;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(420px, 80%);
  padding: var(--space-3, 10.2px) var(--space-4, 13.6px);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.4;
  text-align: center;
}

/* Bottom-left, clear of the bottom-right control cluster. */
.mv-terrain-bar {
  position: absolute;
  z-index: 1150;
  left: var(--space-3, 10.2px);
  bottom: var(--space-3, 10.2px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2, 6.8px);
  max-width: calc(100% - var(--mv-controls-right-clearance, 56px) - var(--space-3, 10.2px));
}

.mv-terrain-hint {
  padding: 4px var(--space-2, 6.8px);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: var(--text-xs);
}

.mv-terrain-session {
  position: absolute;
  z-index: 1200;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-2, 6.8px);
  max-width: min(520px, 80%);
  padding: var(--space-2, 6.8px) var(--space-3, 10.2px);
  border-radius: 4px;
  background: #b45309;
  color: #ffffff;
  font-size: var(--text-sm);
}

.mv-terrain-btn {
  flex: 0 0 auto;
  padding: 6px var(--space-3, 10.2px);
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  cursor: pointer;
}

.mv-terrain-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

/* The selected outcome's card: its tip on the projected pin, as the Map4D marker's bottom-centre
   anchor puts it. Only the card itself takes clicks; the box around it lets them reach the map. */
.mv-terrain-outcome-popup {
  position: absolute;
  z-index: 1140;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

