/* MTO Sport pneumatic simulator — technical-drawing views on paper, cockpit as a dark instrument panel. */

:root {
  --paper: #ffffff;
  --bg: #eef1f5;
  --line: #d5dbe3;
  --ink: #1e293b;
  --ink-soft: #64748b;
  --ink-faint: #94a3b8;
  --panel: #111827;
  --panel-2: #1f2937;
  --panel-ink: #e5e7eb;
  --panel-soft: #9ca3af;
  --pipe-empty: #aab4c0;
  --flow: #0284c7;
  --exhaust: #ea580c;
  --active: #16a34a;
  --coil: #f59e0b;
  --warn: #dc2626;
  --hl: #f59e0b;
  --radius: 10px;
  --dock-pad: max(8px, env(safe-area-inset-bottom));
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App grid (wide default) ---------- */
.app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top" "cockpit views" "foot foot";
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.topbar {
  grid-area: top;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: var(--panel);
  color: var(--panel-ink);
}
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand strong { font-size: 16px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { color: var(--panel-soft); font-size: 13px; white-space: nowrap; }
.top-actions { display: flex; gap: 8px; flex: none; }
.chip-btn {
  min-height: 44px; min-width: 44px; padding: 4px 14px;
  border: 1px solid #374151; border-radius: 999px;
  background: var(--panel-2); color: var(--panel-ink);
  cursor: pointer;
}
.chip-btn:hover { border-color: #6b7280; }
.chip-btn:focus-visible, .hold-btn:focus-visible, .selector:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
.chip-btn--icon { width: 44px; padding: 0; font-weight: 700; font-style: italic; font-family: Georgia, serif; }

/* ---------- Cockpit (instrument panel) ---------- */
.cockpit {
  grid-area: cockpit;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--panel-ink);
  border-right: 1px solid #000;
  overflow: hidden;
}
.dock-row { display: flex; flex-direction: column; gap: 14px; }

.selector {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  width: 100%; min-height: 64px; padding: 10px 12px;
  border: 1px solid #374151; border-radius: var(--radius);
  background: #0b1220; cursor: pointer; text-align: left;
}
.selector-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--panel-soft); }
.selector-track {
  position: relative; display: grid; grid-template-rows: 1fr 1fr;
  width: 92px; height: 48px; padding-left: 26px;
  font-weight: 700; font-size: 13px; letter-spacing: .04em;
}
.selector-pos { display: flex; align-items: center; color: #4b5563; transition: color .2s; }
.selector-knob {
  position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f9fafb, #9ca3af);
  box-shadow: 0 0 0 2px #374151;
  transition: transform .2s ease;
}
.selector-track::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: #374151; }
.selector[data-mode="FLIGHT"] .selector-pos--flight { color: #4ade80; }
.selector[data-mode="BRAKE"] .selector-pos--brake { color: #f87171; }
.selector[data-mode="BRAKE"] .selector-knob { transform: translateY(24px); }

.gauge-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gauge-wrap figcaption { font-size: 12px; color: var(--panel-soft); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.gauge { width: 168px; height: 168px; display: block; }
.gauge-face { fill: #0b1220; stroke: #4b5563; stroke-width: 2; }
.gauge-tick { stroke: #e5e7eb; stroke-width: 1.6; }
.gauge-num { fill: #e5e7eb; font-size: 10px; font-weight: 600; }
.gauge-unit { fill: var(--panel-soft); font-size: 9px; }
.gauge-readout { fill: #4ade80; font: 600 11px ui-monospace, "Cascadia Mono", Consolas, monospace; }
.gauge-red { fill: none; stroke: var(--warn); stroke-width: 5; }
.gauge-needle { stroke: #fb923c; stroke-width: 3; stroke-linecap: round; }
.gauge-hub { fill: #e5e7eb; }

.dock-row--buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hold-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 64px; padding: 8px 6px;
  border: 1px solid #374151; border-radius: var(--radius);
  background: linear-gradient(180deg, #374151, #1f2937);
  box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255,255,255,.08);
  font-weight: 600; font-size: 14px; line-height: 1.15; text-align: center;
  cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .06s, box-shadow .06s, background .15s;
}
.hold-icon { font-size: 18px; line-height: 1; }
.hold-btn.is-held { transform: translateY(3px); box-shadow: 0 0 0 #000, inset 0 2px 6px rgba(0,0,0,.5); background: linear-gradient(180deg, #0c4a6e, #075985); border-color: #38bdf8; }
.hold-btn--prerot { grid-column: 1 / -1; background: linear-gradient(180deg, #7c2d12, #431407); border-color: #9a3412; letter-spacing: .06em; }
.hold-btn--prerot.is-held { background: linear-gradient(180deg, #c2410c, #9a3412); border-color: #fb923c; }
.hint { margin: -4px 0 0; font-size: 12px; color: var(--panel-soft); text-align: center; }

.toast {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 15; /* above the views on phones */
  padding: 10px 12px; border-radius: var(--radius);
  background: #7f1d1d; color: #fee2e2; border: 1px solid #ef4444;
  font-size: 13px; font-weight: 600; text-align: center;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Views ---------- */
.views {
  grid-area: views;
  display: grid;
  grid-template-rows: minmax(0, 0.75fr) auto minmax(0, 1.7fr);
  gap: 8px;
  padding: 10px;
  min-height: 0; min-width: 0;
}
.view {
  position: relative; min-height: 0; min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.view > svg { display: block; width: 100%; height: 100%; }
.view > svg.is-zoomed { cursor: grab; touch-action: none; }
/* Schematic: drawing on top, slim toolbar (legend + zoom) below — nothing overlays the drawing. */
.view--schematic { display: flex; flex-direction: column; }
.view--schematic > svg { flex: 1 1 0; height: auto; min-height: 0; }
.schematic-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 6px 4px 10px; border-top: 1px solid var(--line); background: #fbfcfe;
}
.zoom-controls { display: flex; gap: 6px; flex: none; }

/* Aircraft view: overview + magnified Detail A side by side */
.view--aircraft { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.detail-pane { position: relative; min-width: 0; min-height: 0; border-left: 1px dashed var(--line); background: #fbfcfe; }
.detail-pane > svg { display: block; width: 100%; height: 100%; }
.detail-caption {
  position: absolute; left: 8px; bottom: 6px; right: 8px;
  font-size: 11px; color: var(--ink-soft); line-height: 1.2;
}

/* Schematic legend (HTML so it stays readable when the drawing is scaled down) */
.legend {
  margin: 0; padding: 0; list-style: none; min-width: 0; flex: 1 1 auto;
  display: flex; flex-wrap: wrap; gap: 2px 14px;
  font-size: 11px; color: var(--ink-soft);
}
.legend li { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.15; }
.legend svg { width: 30px; height: 9px; flex: none; }
.lg-empty, .lg-press, .lg-vent { stroke-width: 3.5; stroke-linecap: round; }
.lg-empty { stroke: var(--pipe-empty); }
.lg-press { stroke: rgb(59, 130, 246); }
.lg-vent { stroke: var(--ink-faint); stroke-width: 2.5; }
.lg-flow { fill: var(--flow); }
.lg-exhaust { fill: var(--exhaust); }
.zoom-btn {
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .15);
}
.zoom-btn:disabled { opacity: .35; cursor: default; }
.zoom-btn:focus-visible { outline: 3px solid var(--hl); outline-offset: 1px; }

.status {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 0 2px; min-width: 0;
}
.status::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; gap: 6px; align-items: baseline;
  padding: 3px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 12px; white-space: nowrap;
}
.chip-k { color: var(--ink-soft); }
.chip-v { font-weight: 600; }
.chip.is-on { border-color: #7dd3fc; background: #f0f9ff; }
.chip.is-on .chip-v { color: var(--flow); }
.chip.is-warn { border-color: #fca5a5; background: #fef2f2; }
.chip.is-warn .chip-v { color: var(--warn); }

.footer {
  grid-area: foot;
  padding: 4px 14px calc(4px + env(safe-area-inset-bottom));
  font-size: 12px; color: var(--ink-soft);
  border-top: 1px solid var(--line); background: var(--bg);
}

/* ---------- Dialog, update bar, tooltip ---------- */
dialog {
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  color: var(--ink); background: var(--paper);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .35);
}
dialog::backdrop { background: rgba(15, 23, 42, .45); }
dialog h2 { margin: 0 0 8px; font-size: 18px; }
dialog h3 { margin: 14px 0 6px; font-size: 14px; }
dialog ul { margin: 0; padding-left: 18px; }
dialog li { margin: 4px 0; font-size: 14px; }
dialog .muted { color: var(--ink-soft); font-size: 13px; }
dialog form { margin-top: 14px; text-align: right; }
dialog .chip-btn { background: var(--ink); color: #fff; border-color: var(--ink); }

.update-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 16px; border-radius: 999px;
  background: var(--panel); color: var(--panel-ink);
  box-shadow: 0 8px 30px rgba(0,0,0,.35); z-index: 20;
}
.update-bar[hidden] { display: none; }

.part-tip {
  position: fixed; z-index: 30; max-width: 260px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 13px;
  pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.part-tip[hidden] { display: none; }

/* ---------- SVG: shared drawing language ---------- */
svg text { font-family: inherit; }
.sch-title { font-size: 17px; font-weight: 700; fill: var(--ink); }
.sch-label { font-size: 13px; fill: var(--ink-soft); }
.sch-small { font-size: 11px; fill: var(--ink-soft); }
.valve-label { font-size: 16px; font-weight: 700; fill: var(--ink); }
.port-label { font-size: 10px; fill: var(--ink-faint); }
.panel-box { fill: none; stroke: var(--ink-faint); stroke-width: 1.2; stroke-dasharray: 8 6; }
.divider { stroke: var(--ink-faint); stroke-width: 1.2; stroke-dasharray: 14 4 2 4; }

.pipe { fill: none; stroke: var(--pipe-empty); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.pipe--vent { stroke: var(--ink-faint); stroke-width: 3; }
.flow-arrow { fill: var(--flow); stroke: #fff; stroke-width: .8; }
.arrow-track.is-exhaust .flow-arrow { fill: var(--exhaust); }
.puff-cloud { fill: #cbd5e1; stroke: #94a3b8; stroke-width: .6; }

.body { fill: #f8fafc; stroke: var(--ink); stroke-width: 1.6; }
.body-outline, .ac-outline { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.chamber { stroke: none; transition: fill .15s; }
.piston { fill: var(--ink); }
.rod { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.symbol { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.symbol-ink { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.symbol-fill { fill: var(--ink); }
.switch.is-tripped .symbol { fill: #fef3c7; stroke: #b45309; }
.switch-blade { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; transition: all .15s; }
.switch.is-tripped .switch-blade { stroke: #b45309; }
.pump.is-running .symbol, [data-part="pump"].is-running circle.symbol { stroke: var(--flow); }
.pump-rotor { transform-box: fill-box; transform-origin: center; }

.square-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.square.is-open .square-box { fill: #f0fdf4; stroke: var(--active); stroke-width: 2; }
.passage { stroke: var(--ink-faint); stroke-width: 1.5; }
.passage-head { fill: var(--ink-faint); }
.square.is-open .passage { stroke: var(--active); stroke-width: 2.2; }
.square.is-open .passage-head { fill: var(--active); }
.square.is-open .passage.is-flowing { stroke: var(--flow); stroke-dasharray: 5 4; animation: passage-flow .5s linear infinite; }
.square.is-open .passage-head.is-flowing { fill: var(--flow); }
.square.is-open .passage.is-flowing.is-exhaust { stroke: var(--exhaust); }
.square.is-open .passage.is-flowing.is-reverse { animation-direction: reverse; }
.square.is-open .passage-head.is-flowing.is-exhaust { fill: var(--exhaust); }
.block { stroke: var(--ink); stroke-width: 1.6; }
.coil { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; transition: fill .15s; }
.coil.is-energised { fill: var(--coil); filter: drop-shadow(0 0 4px var(--coil)); }
.spring, .lever { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.spool { transition: transform .28s ease; }
@keyframes passage-flow { to { stroke-dashoffset: -9; } }

.legend-box { fill: var(--paper); stroke: var(--line); }

/* Aircraft view */
.ac-context { fill: #f1f5f9; stroke: #94a3b8; stroke-width: 1.5; }
.ac-context-line { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; }
.ac-ground { stroke: #cbd5e1; stroke-width: 2; }
.ac-blade { stroke: #334155; stroke-width: 6; stroke-linecap: round; }
.ac-metal { fill: #cbd5e1; stroke: var(--ink); stroke-width: 1.4; }
.ac-ring { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 3 2; }
.ac-pad { fill: #9ca3af; stroke: var(--ink); stroke-width: 1; transition: fill .15s; }
.ac-pad.is-engaged { fill: var(--warn); }
.ac-pinion { fill: #e2e8f0; stroke: var(--ink); stroke-width: 1.4; transition: fill .15s; }
.ac-pinion.is-meshed { fill: var(--active); }
.ac-belt { fill: none; stroke: #334155; stroke-width: 3; }
.ac-belt.is-tight { stroke: var(--active); }
.ac-label { font-size: 13px; fill: var(--ink-soft); }
.ac-note { font-size: 13px; font-weight: 700; fill: var(--exhaust); }
.ac-stick { stroke: #334155; stroke-width: 5; stroke-linecap: round; }
.ac-glass { fill: #e0f2fe; }
.rod--thin { stroke-width: 3; }
.rod--lever { stroke: #334155; stroke-width: 4; }
.ac-blade--detail { stroke-width: 5; }
.ac-label--detail { font-size: 9px; fill: var(--ink); font-weight: 600; }
.ac-detail-mark { fill: none; stroke: var(--exhaust); stroke-width: 1.4; stroke-dasharray: 5 4; }
.ac-detail-letter { font-size: 13px; font-weight: 800; fill: var(--exhaust); }

/* Cross-highlight */
.is-hl { filter: drop-shadow(0 0 2px var(--hl)) drop-shadow(0 0 6px var(--hl)); }
[data-part] { cursor: help; }
.cockpit [data-part] { cursor: default; }

/* ---------- Phone portrait: fixed viewport, bottom dock ---------- */
@media (max-width: 899px) and (orientation: portrait) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top" "views" "cockpit";
  }
  .footer { display: none; }
  .brand-sub { display: none; }
  .brand strong { font-size: 15px; }
  .views {
    grid-template-rows: 28dvh auto minmax(0, 1fr);
    gap: 6px; padding: 6px;
  }
  .cockpit {
    gap: 8px; padding: 8px 10px var(--dock-pad);
    border-right: 0; border-top: 1px solid #000;
    overflow: visible;
  }
  .dock-row--top { flex-direction: row; align-items: center; gap: 10px; }
  .selector { flex: 1; min-height: 56px; }
  .gauge-wrap { flex: none; flex-direction: row; gap: 6px; }
  .gauge-wrap figcaption { display: none; }
  .gauge { width: 92px; height: 92px; }
  .dock-row--buttons { grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; }
  .hold-btn { min-height: 56px; font-size: 13px; }
  .hold-btn--prerot { grid-column: auto; }
  .hint { display: none; }
  .toast { left: 10px; right: 10px; bottom: auto; top: -48px; }
  .sch-small, .port-label { display: none; }
  .detail-caption { display: none; }
  .legend { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 1px 10px; font-size: 10px; }
  .legend svg { width: 22px; }
  .zoom-btn { width: 36px; height: 36px; }
  #zoom-out { display: none; } /* reset + double-tap cover zooming out; keeps the legend readable */
}

@media (max-width: 360px) and (orientation: portrait) {
  .selector-label { display: none; }
  .selector { grid-template-columns: 1fr; justify-items: center; }
  .gauge { width: 80px; height: 80px; }
  .hold-btn { font-size: 12px; min-height: 52px; }
}

/* ---------- Short landscape (phones on their side) ---------- */
@media (orientation: landscape) and (max-height: 499px) {
  .app { grid-template-columns: 200px minmax(0, 1fr); }
  .footer { display: none; }
  .topbar { padding-top: 2px; padding-bottom: 2px; }
  .brand-sub { display: none; }
  .chip-btn { min-height: 44px; min-width: 44px; }
  .chip-btn--icon { width: 44px; }
  .cockpit { gap: 8px; padding: 8px 10px; }
  .dock-row { gap: 8px; }
  .dock-row--top { flex-direction: column; align-items: stretch; }
  .selector { min-height: 48px; padding: 6px 8px; grid-template-columns: 1fr; justify-items: center; }
  .selector-label { display: none; }
  .gauge-wrap figcaption { display: none; }
  .gauge { width: 84px; height: 84px; }
  .legend { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 1px 10px; font-size: 10px; }
  .legend svg { width: 22px; }
  .zoom-btn { width: 36px; height: 36px; font-size: 17px; }
  #zoom-out { display: none; }
  .detail-caption { display: none; }
  .view--aircraft { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .detail-pane { border-left: 0; border-top: 1px dashed var(--line); }
  .dock-row--buttons { gap: 6px; }
  .hold-btn { min-height: 46px; font-size: 12px; padding: 4px; }
  .hint { display: none; }
  .views {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "status status" "aircraft schematic";
    padding: 6px; gap: 6px;
  }
  .view--aircraft { grid-area: aircraft; }
  .view--schematic { grid-area: schematic; }
  .status { grid-area: status; }
  .sch-small, .port-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spool, .selector-knob, .toast, .hold-btn { transition: none; }
  .square.is-open .passage.is-flowing { animation: none; }
}

/* ---------- Blocked PREROTATION: pulse the cause (selector / V1, or gauge / 3 bar switch) ---------- */
@keyframes cause-pulse-box { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .0); } 50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, .85); } }
@keyframes cause-pulse-svg { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 3px #ef4444) drop-shadow(0 0 7px #ef4444); } }
.selector.is-cause, .gauge-wrap.is-cause { border-radius: var(--radius); animation: cause-pulse-box 0.9s ease-in-out infinite; }
.gauge-wrap.is-cause { border-radius: 50%; }
svg .is-cause { animation: cause-pulse-svg 0.9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .selector.is-cause, .gauge-wrap.is-cause { animation: none; box-shadow: 0 0 0 3px #ef4444; }
  svg .is-cause { animation: none; filter: drop-shadow(0 0 3px #ef4444); }
}

/* ---------- Aircraft (MTOsport side view after POH §1.6) ---------- */
.ac-thin { stroke-width: 1.1; }
.ac-pod { fill: #f8fafc; }
.ac-mast { fill: #e2e8f0; }
.ac-engine { fill: #eef2f6; }
.ac-prop { fill: #cbd5e1; stroke: #94a3b8; stroke-width: 1; }
.ac-tire { fill: #475569; }
.ac-hub { fill: #f1f5f9; }
.ac-glass { fill: #cbd5e1; stroke: #94a3b8; stroke-width: 1; fill-opacity: .85; }
