:root { --navy:#082b55; --ink:#16345a; --muted:#63758b; --line:#d8e2eb; --teal:#078f90; --teal-pale:#edf9f8; --surface:#fff; --danger:#b23c4d; --shadow:0 12px 28px rgba(18,50,83,.14); }
* { box-sizing:border-box; }
html,body { width:100%; height:100%; margin:0; font-family:Manrope,Arial,sans-serif; color:var(--ink); background:#eef4f4; }
button,input,select,textarea { font:inherit; } button { cursor:pointer; }
.app { display:grid; grid-template-rows:76px minmax(0,1fr); min-height:680px; height:100%; }
.topbar { display:flex; align-items:center; gap:20px; padding:0 28px; background:var(--surface); border-bottom:1px solid var(--line); z-index:20; }
.brand { display:flex; align-items:center; gap:13px; min-width:290px; font-size:22px; font-weight:800; letter-spacing:-.03em; }
.brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:8px; background:var(--navy); color:#fff; font-size:20px; }
.brand small { display:block; margin-top:2px; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.topbar-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.link-action,.primary-action { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 13px; border:0; border-radius:8px; font-size:13px; font-weight:800; text-decoration:none; }
.link-action { color:var(--navy); background:transparent; } .link-action:hover { background:#f2f6f9; }
.primary-action { color:#fff; background:var(--navy); box-shadow:0 5px 12px rgba(8,43,85,.2); }
.primary-action:hover { background:#0f3b70; }
.workspace { display:grid; grid-template-columns:390px minmax(0,1fr); min-height:0; }
.sidebar { overflow:auto; padding:18px; background:#fff; border-right:1px solid var(--line); z-index:3; }
#map { min-height:0; background:#dbe7ec; }
.eyebrow { margin:2px 0 13px; color:var(--teal); font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.notice { margin:0 0 15px; padding:11px 12px; border-left:3px solid var(--teal); border-radius:0 9px 9px 0; color:#2e5a6f; background:var(--teal-pale); font-size:12px; line-height:1.5; }
.panel { margin:0 0 14px; padding:13px; border:1px solid var(--line); border-radius:11px; background:#fff; box-shadow:0 2px 8px rgba(18,50,83,.04); }
.panel h2 { margin:0 0 10px; color:var(--navy); font-size:13px; font-weight:800; }
label { display:block; margin:9px 0 5px; color:var(--ink); font-size:11px; font-weight:800; }
input,select,textarea { width:100%; padding:9px 10px; border:1px solid #cbd7e2; border-radius:8px; color:var(--ink); outline:0; background:#fff; font-size:12px; }
input:focus,select:focus,textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(7,143,144,.13); }
textarea { min-height:62px; resize:vertical; }
.actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; }
.actions.one { grid-template-columns:1fr; }
button.control { min-height:38px; padding:8px 10px; border:1px solid #c4d0da; border-radius:8px; color:var(--navy); background:#fff; font-size:12px; font-weight:800; }
button.control:hover:not(:disabled) { border-color:var(--teal); color:var(--teal); background:#f7fcfc; }
button.control.primary { border-color:var(--navy); color:#fff; background:var(--navy); }
button.control.teal { border-color:var(--teal); color:#fff; background:var(--teal); }
button.control.warn { border-color:#a73b47; color:#fff; background:#a73b47; }
button.control:disabled { opacity:.45; cursor:not-allowed; }
.status { margin-top:12px; padding:10px; border-radius:8px; color:#3b5f77; background:#f1f6f8; font-size:11px; line-height:1.45; white-space:pre-line; }
.status.good { color:#176556; background:#eaf8f3; }.status.error { color:#941f32; background:#fff0f2; }
.small { margin:8px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }.hidden { display:none !important; }
.feature-list,.file-list { display:grid; gap:7px; }
.feature-card,.file-card { padding:10px; border:1px solid var(--line); border-left:4px solid #9bb0c0; border-radius:8px; background:#fbfdfe; }
.feature-card.route { border-left-color:#078f90; }.file-card.accepted { border-left-color:#078f90; }.file-card.conflict { border-left-color:#d08b24; background:#fffaf0; }.file-card.rejected { border-left-color:#b23c4d; background:#fff7f8; }
.feature-card b,.file-card b { display:block; font-size:11px; }.feature-card span,.file-card span { display:block; margin-top:3px; color:var(--muted); font-size:10px; line-height:1.4; white-space:pre-line; }
.card-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }.card-actions button { min-height:27px; padding:3px 7px; border:1px solid #cbd7e2; border-radius:6px; color:var(--navy); background:#fff; font-size:10px; font-weight:800; }.card-actions button.danger { color:#a52c3e; border-color:#e2b4bb; }
.route-controls { padding:9px; border:1px dashed #a9c5ce; border-radius:8px; background:#f8fcfc; }.endpoint { margin-top:5px; color:#277079; font-size:10px; font-weight:700; }
.summary { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }.summary div { padding:7px 3px; border:1px solid var(--line); border-radius:8px; color:var(--muted); text-align:center; font-size:9px; }.summary b { display:block; color:var(--navy); font-size:16px; }
.boundary-note,.legend { padding:7px 9px; border-radius:6px; background:rgba(255,255,255,.94); box-shadow:0 2px 8px rgba(8,43,85,.16); color:var(--ink); font:11px/1.35 Manrope,Arial,sans-serif; }.legend { display:grid; gap:5px; }.legend i { display:inline-block; width:16px; height:4px; margin-right:6px; vertical-align:middle; }.legend em { display:inline-block; width:10px; height:10px; margin:0 9px 0 3px; border:2px solid; border-radius:50%; vertical-align:middle; }
.route-flow { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border:2px solid #fff; border-radius:50%; color:#fff; background:#082b55; box-shadow:0 2px 5px rgba(8,43,85,.35); font-size:12px; }.route-flow.left { background:#078f90; }.route-flow.right { background:#0f4c8a; }.route-flow.both { background:#7a59ad; }
.route-endpoint { display:grid; place-items:center; min-width:58px; height:28px; padding:0 7px; border:3px solid #fff; border-radius:14px; color:#fff; box-shadow:0 3px 8px rgba(8,43,85,.36); font:800 9px/1 Manrope,Arial,sans-serif; letter-spacing:.04em; }.route-endpoint.start { background:#078f90; }.route-endpoint.end { background:#b23c4d; }.route-travel-arrow,.route-nozzle-arrow { display:grid; place-items:center; width:34px; height:34px; border:3px solid #fff; border-radius:50%; box-shadow:0 3px 9px rgba(8,43,85,.4); }.route-travel-arrow { background:#082b55; color:#fff; font-size:25px; }.route-nozzle-arrow { color:#fff; font-size:24px; }.route-nozzle-arrow.left { background:#078f90; }.route-nozzle-arrow.right { background:#7a59ad; }.route-travel-arrow i,.route-nozzle-arrow i { display:block; font-style:normal; line-height:1; }.route-guide { padding:14px; border:2px solid #b9dcd8; border-radius:11px; background:#f3fbfa; color:#153d58; font-size:13px; line-height:1.55; }.route-guide strong { color:#082b55; }.route-guide ol { display:grid; gap:8px; margin:10px 0 0; padding-left:22px; }.route-guide li::marker { color:#078f90; font-weight:800; }.route-legend { display:grid; gap:7px; margin-top:10px; padding-top:10px; border-top:1px solid #c8e2df; font-size:12px; }.route-legend span { display:flex; align-items:center; gap:8px; }.route-key { display:inline-grid; place-items:center; flex:0 0 27px; width:27px; height:27px; border-radius:50%; color:#fff; font-weight:800; }.route-key.travel { background:#082b55; }.route-key.nozzle { background:#078f90; }.route-key.start { background:#078f90; font-size:8px; }.route-key.end { background:#b23c4d; font-size:8px; }.workflow-check { display:grid; gap:7px; margin-top:10px; padding:11px; border:1px solid #ccdce6; border-radius:9px; background:#fbfdfe; color:#36536a; font-size:12px; line-height:1.45; }.workflow-check.good { border-color:#a7d8d0; background:#effaf7; color:#176556; }.workflow-check.error { border-color:#e9bbc3; background:#fff7f8; color:#9b3343; }.large-action { min-height:48px !important; font-size:14px !important; }.help-toggle { width:100%; margin-top:9px; }.help-panel[hidden] { display:none; }
.photo-marker-icon { display:grid; place-items:center; width:32px; height:32px; border:3px solid #fff; border-radius:50%; color:#fff; background:#b23c4d; box-shadow:0 3px 9px rgba(83,20,32,.38); font-size:14px; }.photo-marker-icon.has-photo { background:#078f90; }.leaflet-container.is-placing-photo { cursor:crosshair; }.photo-card { padding:9px; border:1px solid var(--line); border-left:4px solid #b23c4d; border-radius:8px; background:#fbfdfe; }.photo-card.has-photo { border-left-color:var(--teal); }.photo-card b { display:block; font-size:11px; }.photo-card span { display:block; margin-top:3px; color:var(--muted); font-size:10px; line-height:1.4; }.photo-card button { margin-top:7px; min-height:27px; padding:3px 7px; border:1px solid #cbd7e2; border-radius:6px; color:var(--navy); background:#fff; font-size:10px; font-weight:800; }.photo-card button.danger { margin-left:5px; border-color:#e2b4bb; color:#a52c3e; }.photo-popup { min-width:220px; max-width:280px; }.photo-popup h3 { margin:0 0 7px; font-size:13px; }.photo-popup p { margin:0 0 8px; color:var(--muted); font-size:11px; line-height:1.4; }.photo-popup img { display:block; width:100%; max-height:180px; margin:0 0 8px; border-radius:7px; object-fit:cover; }.photo-popup textarea { min-height:56px; margin:4px 0 8px; }.photo-popup .actions { grid-template-columns:1fr 1fr; margin-top:0; }.photo-popup .full { grid-column:1 / -1; }
@media (max-width:900px) { .topbar { padding:0 15px; }.brand { min-width:auto; font-size:17px; }.brand small { display:none; }.topbar-actions a:first-child { display:none; }.workspace { grid-template-columns:360px minmax(0,1fr); } }
@media (max-width:720px) { .app { height:auto; min-height:100%; }.topbar { min-height:64px; }.topbar-actions .link-action { display:none; }.workspace { display:block; }.sidebar { border-right:0; border-bottom:1px solid var(--line); } #map { height:68vh; min-height:460px; } }

/* Опознание объектов разметки: подписи на карте, бейджи, легенда и журнал объектов.
   Общие классы для редактора района и приёмки префектуры. */
.object-label { padding:2px 7px; border:2px solid #fff; border-radius:11px; color:#fff; background:#082b55; box-shadow:0 2px 6px rgba(8,43,85,.34); font:800 10px/1.4 Manrope,Arial,sans-serif; white-space:nowrap; }
.object-label-route { background:#082b55; }
.object-label-zone { background:#0f7b78; }
.object-label-point { background:#4a5f74; }
.object-label-pin { position:absolute; transform:translate(-50%,-50%); pointer-events:none; }
.object-label-pin::before { display:none; }
.object-badge { display:inline-flex; align-items:center; flex:0 0 auto; padding:2px 7px; border-radius:9px; color:#fff; background:var(--object-color,#4a5f74); font:800 10px/1.5 Manrope,Arial,sans-serif; letter-spacing:.02em; white-space:nowrap; }
.feature-card .object-badge { margin-bottom:4px; }
.labels-toggle-wrap { margin:0 0 4px; }
button.labels-toggle { width:100%; min-height:34px; padding:7px 10px; border:1px solid #c4d0da; border-radius:8px; color:var(--navy); background:#fff; font-size:11px; font-weight:800; }
button.labels-toggle:hover { border-color:var(--teal); color:var(--teal); background:#f7fcfc; }
button.labels-toggle[data-mode="hover"] { border-color:var(--teal); color:var(--teal); background:#f2fbfa; }
.legend .route-key { width:27px; height:27px; flex:0 0 27px; }
.type-legend { display:grid; gap:5px; margin-top:8px; }
.type-legend .eyebrow { margin:0 0 2px; }
.type-legend-row { display:grid; grid-template-columns:22px auto 1fr; align-items:center; gap:6px; font-size:10px; line-height:1.35; }
.type-legend-row i { width:22px; height:6px; border-radius:3px; }
.type-legend-row b { color:var(--navy); font-size:10px; }
.type-legend-row span { color:var(--ink); font-weight:700; }
.type-legend-row em { grid-column:2 / -1; color:var(--muted); font-size:9px; font-style:normal; }
.object-group-head { margin:9px 0 4px; color:var(--navy); font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.object-subhead { margin:6px 0 3px; color:var(--teal); font-size:10px; font-weight:800; }
.object-journal { display:grid; gap:5px; max-height:340px; overflow:auto; }
.object-row { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:3px 7px; width:100%; padding:7px 8px; border:1px solid var(--line); border-radius:8px; background:#fbfdfe; text-align:left; font:inherit; cursor:pointer; }
.object-row:hover { border-color:var(--teal); background:#f6fcfb; }
.object-row-text { color:var(--ink); font-size:11px; font-weight:700; line-height:1.3; }
.object-row em { grid-column:2; }
.object-popup { min-width:230px; max-width:300px; }
.object-popup-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.object-popup-title { color:var(--navy); font-size:12px; font-weight:800; line-height:1.25; }
.object-popup-purpose { margin:0 0 8px; color:var(--muted); font-size:10px; line-height:1.4; }
.object-popup-rows { display:grid; gap:3px; margin:0 0 8px; }
.object-popup-rows div { display:grid; grid-template-columns:118px 1fr; gap:6px; }
.object-popup-rows dt { color:var(--muted); font-size:10px; }
.object-popup-rows dd { margin:0; color:var(--ink); font-size:10px; font-weight:700; }
.object-popup-comment { margin:0 0 8px; color:#36536a; font-size:10px; line-height:1.4; }
.object-popup-status { margin:0; padding:6px 8px; border-radius:7px; color:#3b5f77; background:#f1f6f8; font-size:10px; font-weight:800; }
.object-popup-status[data-status="submitted"] { color:#7a4d05; background:#fff7e6; }
.object-popup-status[data-status="approved"] { color:#176556; background:#eaf8f3; }
.object-popup-status[data-status="rejected"] { color:#941f32; background:#fff0f2; }
