




.pw {
  --p-navy: #051138; --p-slate: #536887; --p-slate-2: #6F8CA9; --p-teal: #3AB3C3; --p-teal-d: #006E7E; --p-btn: #17808F;
  --p-bg: #F4F8F9; --p-line: #DAE6EF; --p-line-2: #B1C7D6;
  --p-green: #23843D; --p-red: #CC3426; --p-amber: #A86600;
  --text: var(--t-text); --mono: var(--t-mono); --blue: #2338e8; --ease: cubic-bezier(.2, .7, .2, 1);
  position: relative;
  font-family: var(--text); letter-spacing: 0; color: var(--p-navy);
  background: #fff; overflow: hidden;
  container-type: inline-size;
}
.pw button, .pw input { font-family: inherit; letter-spacing: 0; }
.pw :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

.pw-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; background: var(--panel); color: var(--ink); min-height: 52px; border-bottom: 1px solid var(--line); font-family: var(--t-text); }
.pw-try { display: inline-flex; align-items: center; gap: 8px; flex: none; margin: 0; padding: 6px 10px 5px 9px; border-radius: 3px; background: var(--cobalt-08); }
.pw-try .label { color: var(--cobalt); font-family: var(--t-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.pw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }
.pw-hint { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.pw-reset { flex: none; min-height: 32px; padding: 0 12px; border: 0; border-radius: 4px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-family: var(--t-text); font-size: 12.5px; cursor: pointer; }
.pw-reset:hover { box-shadow: inset 0 0 0 1px var(--cobalt); }
.pw-reset[hidden] { display: none; }
.pw-bar :focus-visible { outline-color: var(--cobalt); }
.pw-nojs { padding: 48px 32px; color: var(--p-slate); }
html:not(.js) .pw-bar { display: none; }


.pw { font-size: 17px; line-height: 1.55; }
:where(.pw) :where(img, video, svg) { display: block; max-width: 100%; }
:where(.pw) :where(strong, b) { font-weight: 700; }
:where(.pw) :where(h1, h2, h3, h4, p, dl, dd, ol, ul, figure, blockquote) { margin: 0; }
:where(.pw) :where(ol, ul) { padding: 0; list-style: none; }
:where(.pw) button { font: inherit; color: inherit; }


.pw .chip { padding: 0; font-size: inherit; color: inherit; }
.pw .chip:hover { box-shadow: inset 0 0 0 1px transparent; color: inherit; }
.pw .chip.on, .pw .chip.on:hover { box-shadow: inset 0 0 0 1.5px var(--p-teal); }
.pw .sw { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; flex: initial; }
.pw .sw::after { content: none; }


.pbtn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--p-btn); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease), opacity .2s;
}
.pbtn:hover:not(:disabled) { background: #11707E; }
.pbtn:active:not(:disabled) { transform: scale(.97); }
.pbtn:disabled { opacity: .45; cursor: default; }
.pbtn-ghost { background: var(--p-bg); color: var(--p-slate); }
.pbtn-ghost:hover:not(:disabled) { background: #E6EEF2; }

.ck { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; font-size: 16px; color: var(--p-navy); }
.ck input, .rd input, .seg input, .sw input, .mp-row input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ck-box {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px;
  border: 1.5px solid var(--p-slate-2); background: #fff; color: var(--p-teal);
  transition: border-color .15s, background-color .15s, transform .15s var(--ease);
}
.ck-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .22s var(--ease); }
input:checked + .ck-box { border-color: var(--p-teal); background: #F1F9FA; }
input:checked + .ck-box svg { stroke-dashoffset: 0; }
.ck:active .ck-box { transform: scale(.92); }
input:focus-visible + .ck-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.ck.is-off { color: #9BAABA; cursor: not-allowed; }
.ck.is-off .ck-box { border-color: #D3DEE6; background: #F6F9FA; }




.cfg { padding: 28px 32px 28px; }
.cfg-title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--p-navy); }
.cfg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; margin-top: 22px; align-items: start; }
.cfg-opts { display: grid; gap: 0; }
.cfg-group { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--p-line); min-width: 0; }
.cfg-group:first-child { padding-top: 0; }
.cfg-group:last-child { border-bottom: 0; padding-bottom: 0; }
.cfg-group legend { padding: 0; margin-bottom: 8px; font-size: 20px; font-weight: 700; color: var(--p-navy); float: left; width: 100%; }
.cfg-group legend + * { clear: both; }
.cfg-note { font-size: 12px; color: var(--p-slate); margin: -4px 0 0; }
.cfg-count { display: inline-block; margin: 10px 0 4px; padding: 3px 10px; border-radius: 999px; background: var(--p-bg); color: var(--p-teal-d); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.cfg-count.full { background: #FFF1DE; color: var(--p-amber); }
.cfg-sensors { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.cfg-limit { min-height: 0; font-size: 13px; color: var(--p-amber); font-weight: 700; }
.cfg-limit:not(:empty) { margin-top: 8px; }

.cfg-sub { display: grid; grid-template-rows: 0fr; opacity: 0; transition: opacity .25s; }
.cfg-sub.on { grid-template-rows: 1fr; opacity: 1; }
.cfg-sub > .cfg-sub-in { overflow: hidden; min-height: 0; }
.cfg-sub.on > .cfg-sub-in { margin: 6px 0 8px; }
.cfg-sub-in { border: 1px solid var(--p-line); border-radius: 10px; padding: 0 14px; }
.cfg-sub.on .cfg-sub-in { padding: 12px 14px 14px; }
.cfg-sub:not(.on) .cfg-sub-in { border-color: transparent; }
.cfg-radios { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.rd { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.rd-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--p-slate); display: grid; place-items: center; transition: border-color .15s; }
.rd-dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--p-teal); transform: scale(0); transition: transform .2s var(--ease); }
.rd input:checked + .rd-dot { border-color: var(--p-teal); }
.rd input:checked + .rd-dot::after { transform: scale(1); }
.rd input:focus-visible + .rd-dot { outline: 2px solid var(--blue); outline-offset: 2px; }
.cfg-time { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cfg-time input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--p-line); background: var(--p-bg);
  font-size: 15px; color: var(--p-navy);
}
.cfg-time input:disabled { opacity: .55; }
.cfg-time input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cfg-unit { font-size: 14px; color: var(--p-slate); }

.cfg-prev { position: sticky; top: 72px; background: var(--p-bg); border-radius: 12px; padding: 16px 16px 22px; min-height: 420px; display: grid; grid-template-rows: auto 1fr; }
.cfg-prev-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cfg-prev-l { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-slate); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #E4ECF1; }
.seg label { position: relative; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--p-slate); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: #fff; color: var(--p-navy); box-shadow: 0 1px 3px rgba(5, 17, 56, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.cfg-stage { display: grid; align-items: center; padding: 20px 0 6px; }
.cfg-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.cfg-toast {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px; background: var(--p-navy); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
.cfg-toast.show { opacity: 1; transform: translate(-50%, 0); }


.vc {
  display: grid; grid-template-columns: minmax(0, 1fr) 52px; width: 100%; max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(5, 17, 56, .07), 0 0 0 1px rgba(5, 17, 56, .04);
  transition: box-shadow .3s;
}
.vc.saved { animation: vcsaved .9s var(--ease); }
@keyframes vcsaved { 0% { box-shadow: 0 0 0 0 rgba(58, 179, 195, .55), 0 2px 10px rgba(5, 17, 56, .07); } 100% { box-shadow: 0 0 0 14px rgba(58, 179, 195, 0), 0 2px 10px rgba(5, 17, 56, .07); } }
.vc-main { padding: 16px 18px 0; min-width: 0; }
.vc-top { display: flex; justify-content: space-between; gap: 12px; }
.vc-plate { font-size: 16px; font-weight: 700; color: var(--p-navy); letter-spacing: .01em; }
.vc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-top: 3px; font-size: 13px; color: var(--p-navy); }
.vc-status b { font-weight: 700; }
.vc-st { font-weight: 600; transition: color .25s; }
.vc-st.is-moving { color: var(--p-green); }
.vc-st.is-stopped { color: var(--p-red); }
.vc-sep { display: inline-block; width: 1px; height: 12px; margin: 0 10px; background: var(--p-line-2); vertical-align: middle; }
.vc-more { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--p-bg); color: var(--p-slate); }
.vc-more svg { width: 18px; fill: currentColor; }
.vc-row { display: grid; grid-template-rows: 0fr; opacity: 0; transition: opacity .24s; }
.vc-row.on { grid-template-rows: 1fr; opacity: 1; }
.vc-row-o { overflow: hidden; min-height: 0; }
.vc-row-in { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--p-navy); }
.vc-row-in > span:last-child { min-width: 0; }
.vc-ic { flex: none; width: 18px; height: 18px; margin-top: 0; color: var(--p-navy); }
.vc-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vc-muted { color: var(--p-slate-2); }
.vc-row.flash .vc-row-in { animation: rowflash 1.1s var(--ease); }
@keyframes rowflash { 0% { background: rgba(58, 179, 195, .22); } 100% { background: rgba(58, 179, 195, 0); } }
.vc-row-in { border-radius: 6px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; }
.vc-sens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--p-bg); }
.vc-s { display: grid; gap: 3px; min-width: 0; transition: opacity .15s, transform .15s; }
.vc-s.new { animation: spop .32s var(--ease); }
.vc-s.out { opacity: 0; transform: scale(.9); }
@keyframes spop { from { opacity: 0; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }
.vc-s-l { font-size: 11px; color: var(--p-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-s-v { font-size: 12px; font-weight: 700; color: var(--p-navy); white-space: nowrap; }
.vc-s-accent .vc-s-v { color: var(--p-teal-d); }
.vc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 10px 0 12px; font-size: 13px; color: var(--p-slate); }
.vc-foot-ic { display: flex; gap: 8px; }
.vc-foot-ic span, .vc-rail span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--p-bg); color: var(--p-slate); }
.vc-foot-ic svg, .vc-rail svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vc-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; border-left: 1px solid var(--p-line); }
.vc-rail span { color: var(--p-teal-d); }

@container (max-width: 760px) {
  .cfg { padding: 20px 18px 22px; }
  .cfg-title { font-size: 22px; }
  .cfg-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
  .cfg-prev { order: -1; position: relative; top: 0; min-height: 0; padding: 12px 12px 16px; }
  .cfg-opts { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); padding-bottom: 24px; }
  .cfg-stage { padding: 14px 0 0; }
  .cfg-foot { position: sticky; bottom: 0; margin: 16px -18px -22px; padding: 12px 18px 16px; background: rgba(255, 255, 255, .94); border-top: 1px solid var(--p-line); }
  .cfg-foot .pbtn { flex: 1; }
  .cfg-toast { bottom: 10px; white-space: normal; text-align: center; border-radius: 16px; width: max-content; }
}
@container (max-width: 440px) {
  .vc { grid-template-columns: minmax(0, 1fr) 44px; }
  .vc-main { padding: 14px 12px 0; }
  .vc-status { column-gap: 12px; }
  .vc-status .vc-sep { display: none; }
  .vc-sens { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 12px; }
  .cfg-sensors { grid-template-columns: 1fr; }
  .ck { font-size: 15px; }
}




.fl { position: relative; background: #fff; }
.fl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 12px; border-bottom: 1px solid var(--p-line); }
.fl-crumb { font-size: 13px; color: var(--p-slate); }
.fl-title { font-size: 20px; font-weight: 700; line-height: 1.15; color: var(--p-navy); }
.fl-head-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fl-dd, .fl-collapse {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--p-bg); color: var(--p-navy); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.fl-dd:hover, .fl-collapse:hover { background: #E6EEF2; }
.fl-dd[hidden] { display: none; }
.fl-dd-c, .fl-collapse-ic { display: grid; width: 18px; height: 18px; transition: transform .25s var(--ease); }
.fl-dd-c svg, .fl-collapse-ic svg, .chip-caret svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fl-dd[aria-expanded="true"] .fl-dd-c { transform: rotate(180deg); }
.fl-collapse-ic { transform: rotate(180deg); }
.fl.collapsed .fl-collapse-ic { transform: none; }

.fl-rowwrap { display: grid; grid-template-rows: 0fr; border-bottom: 1px solid transparent; }
.fl-rowwrap.on { grid-template-rows: 1fr; border-bottom-color: var(--p-line); }
.fl-row-o { overflow: hidden; min-height: 0; display: flex; align-items: center; gap: 12px; }
.fl-row {
  display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0;
  overscroll-behavior-x: contain; scroll-padding-inline: 20px;
}
.fl-row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; border-radius: 999px; background: var(--p-bg); box-shadow: inset 0 0 0 1px transparent; transition: background-color .2s, box-shadow .2s; }
.chip-main { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 14px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--p-slate); white-space: nowrap; }
.chip-split .chip-main { padding-right: 6px; }
.chip-n { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 700; color: var(--p-navy); font-variant-numeric: tabular-nums; }
.chip-n.bump { animation: nbump .5s var(--ease); }
@keyframes nbump { 0% { transform: translateY(-6px); opacity: 0; } 60% { transform: translateY(1px); opacity: 1; } 100% { transform: none; } }
.chip:hover { background: #E8EFF3; }
.chip.on { background: #F1F9FA; box-shadow: inset 0 0 0 1.5px var(--p-teal); }
.chip.on .chip-main { color: var(--p-teal-d); font-weight: 600; }
.chip.on .chip-n { background: #D3ECEF; color: var(--p-teal-d); }
.chip-caret { display: grid; place-items: center; width: 34px; height: 38px; padding: 0 8px 0 2px; border: 0; background: none; border-radius: 0 999px 999px 0; color: var(--p-slate); cursor: pointer; }
.chip-caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.chip-caret svg { transition: transform .25s var(--ease); }
.fl-dur { flex: none; display: none; align-items: center; gap: 10px; padding-right: 20px; font-size: 13px; color: var(--p-slate); white-space: nowrap; }
.fl-dur.on { display: flex; animation: fadein .25s var(--ease); }
.fl-dur-v { min-width: 64px; padding: 4px 10px; border-radius: 6px; background: var(--p-bg); color: var(--p-navy); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
@keyframes fadein { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.pw input[type=range] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none; width: 140px; height: 28px; background: transparent; cursor: pointer; margin: 0;
}
.pw input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--p-teal) var(--fill), #DDE7EE var(--fill)); }
.pw input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--p-teal) var(--fill), #DDE7EE var(--fill)); }
.pw input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2.5px solid var(--p-teal); box-shadow: 0 1px 4px rgba(5, 17, 56, .2); }
.pw input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid var(--p-teal); }
.pw input[type=range]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

.fl-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); height: 560px; background: var(--p-bg); }
.fl-listcol { display: grid; grid-template-rows: auto 1fr; min-height: 0; border-right: 1px solid var(--p-line); }
.fl-results-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 8px; }
.fl-results { font-size: 13px; color: var(--p-slate); }
.fl-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--p-green); }
.fl-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34A852; }
.fl-live.tick .fl-live-dot { animation: pwpulse 1s; }
.fl-list { overflow-y: auto; padding: 0 12px 16px; display: grid; gap: 10px; align-content: start; overscroll-behavior: contain; }
.fv { display: grid; gap: 6px; padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(5, 17, 56, .06); border-left: 3px solid var(--sc, var(--p-line)); transition: opacity .15s, transform .15s; }
.fv[hidden] { display: none; }
.fv.leaving { opacity: 0; transform: scale(.97); }
.fv-top { display: flex; justify-content: space-between; align-items: center; }
.fv-plate { font-size: 15px; font-weight: 700; }
.fv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.fv-status { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; }
.fv-status b { font-weight: 700; }
.fv-st { font-weight: 600; }
.st-moving { color: var(--p-green); } .st-stopped { color: var(--p-red); } .st-idling { color: var(--p-amber); }
.st-offline { color: var(--p-amber); } .st-lowgps { color: #3F6DB5; } .st-nodevice { color: var(--p-slate); } .st-expired { color: #A51E2D; }
.fv-loc { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--p-navy); }
.fv-loc .vc-ic, .fv-loc .vc-ic svg { width: 16px; height: 16px; }
.fv-up { font-size: 12px; color: var(--p-slate-2); }
.fl-empty { padding: 24px 16px; color: var(--p-slate); font-size: 14px; }
.fl-empty[hidden] { display: none; }
.fl-map { position: relative; min-height: 0; overflow: hidden; }
.fl-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fl-menu {
  position: absolute; z-index: 5; display: grid; padding: 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 16px 40px -12px rgba(5, 17, 56, .35), 0 0 0 1px rgba(5, 17, 56, .06);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .16s, transform .2s var(--ease);
}
.fl-menu.open { opacity: 1; transform: none; }
.fl-menu[hidden] { display: none; }
.fl-mi { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 15px; color: var(--p-navy); cursor: pointer; text-align: left; }
.fl-mi:hover, .fl-mi:focus-visible { background: var(--p-bg); }
.fl-mi[aria-checked="true"] { background: #F1F9FA; color: var(--p-teal-d); font-weight: 600; }
.fl-mi-n { min-width: 32px; padding: 2px 8px; border-radius: 999px; background: #E9F0F4; font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.fl-mi[aria-checked="true"] .fl-mi-n { background: #D3ECEF; }

@container (max-width: 720px) {
  .fl-body { grid-template-columns: 1fr; height: 520px; }
  .fl-map { display: none; }
  .fl-listcol { border-right: 0; }
  .fl-head { padding: 12px 14px 10px; align-items: flex-start; }
  .fl-row { padding: 10px 14px; scroll-padding-inline: 14px; }
  .fl-row-o { flex-wrap: wrap; gap: 0; }
  .fl-dur { width: 100%; padding: 0 14px 12px; }
  .fl-dur input { flex: 1; }
  .fl-collapse-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fl-collapse { width: 40px; padding: 0; justify-content: center; }
}




.map-svg {
  --land: #EEF1F4; --park: #DCE8DF; --water: #C8DBEA; --road: #FFFFFF; --road-c: #D3DBE3; --minor: #FFFFFF; --minor-c: #E1E6EB; --label: #8A98A8; --rail: #C2CBD4;
  background: var(--land);
}
.map-svg[data-style="classic"] { --land: #F2F3F1; --park: #C6E7BA; --water: #A7D1F0; --road: #FCD45F; --road-c: #E4B43A; --minor: #FFFFFF; --minor-c: #D9DCDF; --label: #5E6A77; --rail: #A9B0B8; }
.map-svg[data-style="satellite"] { --land: #3E4A39; --park: #2D4829; --water: #1D3146; --road: #8D8D7F; --road-c: #565B50; --minor: #6C7262; --minor-c: #474D42; --label: #EEF2F4; --rail: #8A8A80; }
.map-svg[data-style="terrain"] { --land: #EEE7D8; --park: #CCE1BD; --water: #B2D2E5; --road: #FFFFFF; --road-c: #D6CAB1; --minor: #FAF7F1; --minor-c: #DBD1BC; --label: #776B55; --rail: #BFB49C; }
.map-svg * { transition: fill .5s, stroke .5s, opacity .4s; }
.m-land { fill: var(--land); }
.m-park path, .m-park { fill: var(--park); }
.m-lake { fill: var(--water); }
.m-river { fill: none; stroke: var(--water); stroke-width: 24; stroke-linecap: round; }
.m-minor-c path { fill: none; stroke: var(--minor-c); stroke-width: 7; }
.m-minor path { fill: none; stroke: var(--minor); stroke-width: 4.5; }
.m-art-c path { fill: none; stroke: var(--road-c); stroke-width: 15; stroke-linecap: round; }
.m-art path { fill: none; stroke: var(--road); stroke-width: 10.5; stroke-linecap: round; }
.m-rail { fill: none; stroke: var(--rail); stroke-width: 2; stroke-dasharray: 8 6; }
.m-sat rect { fill: #1E2A1B; }
.m-sat { opacity: 0; }
.map-svg[data-style="satellite"] .m-sat { opacity: 1; }
.m-contour path { fill: none; stroke: #CDBF9F; stroke-width: 1.2; }
.m-contour { opacity: 0; }
.map-svg[data-style="terrain"] .m-contour { opacity: 1; }
.m-labels text { font-family: var(--text); font-size: 15px; font-weight: 600; fill: var(--label); stroke: var(--land); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
.m-traffic path { fill: none; stroke-width: 5; stroke-linecap: round; }
.t-green { stroke: #34A852; } .t-amber { stroke: #FFA800; } .t-red { stroke: #E84234; }
.m-traffic { opacity: 0; transition: opacity .4s; }
.fence { opacity: 0; transform: scale(.5); transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.fence-c { fill: rgba(24, 80, 198, .2); stroke: #1850C6; stroke-width: 1.5; }
.fence-pin { fill: #1850C6; stroke: #fff; stroke-width: 2; }
.fence-g { font-family: var(--text); font-size: 12px; font-weight: 700; fill: #fff; }
.fence-name { font-family: var(--text); font-size: 13px; font-weight: 700; fill: #1850C6; stroke: #fff; stroke-width: 3.5px; paint-order: stroke; }
.veh { filter: drop-shadow(0 2px 2px rgba(5, 17, 56, .28)); transition: opacity .3s; }
.v-body { fill: #fff; stroke: #9DB2C5; stroke-width: 1; }
.v-lines { fill: none; stroke: #C9D6E1; stroke-width: 1; }
.v-cab { transition: fill .4s; }
.v-glass { fill: rgba(255, 255, 255, .55); }
.v-plate rect { fill: #fff; filter: drop-shadow(0 1px 2px rgba(5, 17, 56, .22)); }
.v-plate text { font-family: var(--text); font-size: 11.5px; font-weight: 700; fill: #051138; }
.v-plate { transition: opacity .3s; }
.veh.dim, .v-plate.dim { opacity: .14; }
.veh.hl { filter: drop-shadow(0 0 6px rgba(58, 179, 195, .95)); }
.fl-svg .v-plate { opacity: 0; }




.mp { position: relative; height: 620px; overflow: hidden; }
.mp-map, .mp-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp:not(.show-plates) .v-plate { opacity: 0; }
.mp.show-traffic .m-traffic { opacity: 1; }
.mp.show-fences .fence { opacity: 1; transform: none; }
.mp-btn {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: 12px; background: #fff; color: var(--p-navy); font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 17, 56, .16); transition: opacity .2s, transform .2s var(--ease);
}
.mp-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--p-teal-d); stroke-width: 1.5; stroke-linejoin: round; }
.mp-btn:not(:focus-visible) { animation: nudge 2.6s 1.2s 2 var(--ease); }
@keyframes nudge { 0%, 100% { transform: none; } 10% { transform: translateY(-3px); } 20% { transform: none; } }
.mp.open .mp-btn { opacity: 0; pointer-events: none; transform: scale(.96); }
.mp-panel {
  position: absolute; z-index: 3; top: 16px; right: 16px; width: 344px; max-height: calc(100% - 32px); overflow-y: auto;
  padding: 18px 22px 20px; border-radius: 16px; background: #fff;
  box-shadow: 0 24px 60px -20px rgba(5, 17, 56, .4), 0 0 0 1px rgba(5, 17, 56, .05);
  opacity: 0; transform: translateX(24px); pointer-events: none; visibility: hidden;
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.mp.open .mp-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s, transform .35s var(--ease), visibility 0s; }
.mp-ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mp-ph h4 { font-size: 18px; font-weight: 700; }
.mp-close { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -10px; border: 0; border-radius: 50%; background: none; color: var(--p-slate); cursor: pointer; }
.mp-close:hover { background: var(--p-bg); }
.mp-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mp-sec { margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--p-line); min-width: 0; }
.mp-sec legend, .mp-legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 700; color: var(--p-navy); float: left; width: 100%; }
.mp-sec legend + * { clear: both; }
.sw-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sw { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.sw-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--p-line); transition: box-shadow .2s, transform .2s var(--ease); }
.sw-img svg { width: 100%; height: 100%; }
.sw-l { font-size: 13px; color: var(--p-slate); }
.sw input:checked + .sw-img { box-shadow: 0 0 0 3px var(--p-teal); }
.sw input:checked ~ .sw-l { color: var(--p-teal-d); font-weight: 700; }
.sw:hover .sw-img { transform: translateY(-2px); }
.sw input:focus-visible + .sw-img { outline: 2px solid var(--blue); outline-offset: 3px; }
.mp-row { position: relative; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; min-height: 42px; cursor: pointer; font-size: 15px; font-weight: 600; }
.mp-row-ic { display: grid; place-items: center; color: var(--p-navy); }
.mp-row-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sw-track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #CFDBE4; transition: background-color .2s; }
.sw-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(5, 17, 56, .25); transition: transform .25s var(--ease); }
.mp-row input:checked + .sw-track { background: var(--p-teal); }
.mp-row input:checked + .sw-track .sw-knob { transform: translateX(20px); }
.mp-row input:focus-visible + .sw-track, .mp-row input:focus-visible + .ck-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.mp-size { border-bottom: 0; }
.mp-size input[type=range] { width: 100%; }
.mp-size-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--p-slate); margin-top: 2px; }
.mp-foot { display: flex; justify-content: flex-end; padding-top: 6px; }
.mp-toast {
  position: absolute; z-index: 4; left: 50%; bottom: 20px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px; background: var(--p-navy); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: opacity .2s, transform .25s var(--ease);
}
.mp-toast.show { opacity: 1; transform: translate(-50%, 0); }

@container (max-width: 720px) {
  .mp { height: 600px; }
  .mp-map { transition: transform .45s var(--ease); }
  .mp.open .mp-map { transform: translateY(-26%); }
  .sw-img { width: min(100%, 48px); border-radius: 10px; }
  .sw { gap: 4px; }
  .mp-ph h4 { font-size: 17px; }
  .mp-close { width: 36px; height: 36px; }
  .sw-row { gap: 6px; }
  .mp-sec legend, .mp-legend { margin-bottom: 6px; font-size: 15px; }
  .mp-btn { top: 12px; right: 12px; }
  .mp-panel {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 66%; border-radius: 18px 18px 0 0; padding: 8px 18px 16px;
    transform: translateY(40px);
  }
  .mp-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--p-line); }
  .mp-foot .pbtn { flex: 1; }
}


@media (max-width: 720px) {
  .pw-bar { flex-wrap: wrap; row-gap: 6px; padding: 10px 10px 10px 12px; }
  .pw-hint { order: 3; flex-basis: 100%; font-size: 13px; }
  .pw-reset { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pw *, .pw *::before, .pw *::after { transition: none !important; animation: none !important; }
}
