:root {
  /* Desk tool: list and card on the left, the map fills the rest. One light theme (office screens). */
  --ink: #14232a; --muted: #5b6c74; --edge: #dde4e6; --wash: #f2f5f6; --panel: #ffffff;
  --accent: #0e5466; --a: #1f6fd1; --b: #e0700f; --ok: #12885f; --warn: #b4232c; --zone: #ffd23f; --pin: #d81b60;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; font: 14px/1.45 var(--font); color: var(--ink); background: var(--wash); overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#panel { flex: 0 0 420px; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--edge); min-height: 0; }
header { padding: 12px 16px 8px; border-bottom: 1px solid var(--edge); }
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
h1 { font-size: 18px; margin: 0; }
.me { font: 600 12px/1 var(--font); background: var(--accent); color: #fff; padding: 5px 8px; border-radius: 999px; }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--wash); margin-top: 10px; }
.bar span { display: block; height: 100%; }
.small { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--edge); }
.tabs button { border: 1px solid var(--edge); background: transparent; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--muted); }
.tabs button b { font-variant-numeric: tabular-nums; color: var(--ink); margin-left: 3px; }
.tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs button[aria-pressed="true"] b { color: #fff; }
.search { padding: 8px 16px; border-bottom: 1px solid var(--edge); }
.search input { width: 100%; padding: 7px 10px; border: 1px solid var(--edge); border-radius: 8px; background: var(--wash); }
.list { flex: 1 1 0; overflow: auto; min-height: 90px; }
.grp { position: sticky; top: 0; z-index: 1; background: var(--panel); padding: 6px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--edge); }
.row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--edge); background: transparent; padding: 7px 16px; }
.row:hover { background: var(--wash); }
.row.on { background: #e3f0f3; }
.row strong { font-weight: 600; }
.row small { display: block; color: var(--muted); font-size: 12px; }
.chip { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; border: 1px solid currentColor; }
.chip.first { color: var(--warn); } .chip.lock { color: var(--b); } .chip.st-pointe { color: var(--a); } .chip.st-desaccord { color: var(--b); }
.chip.st-confirme { color: var(--ok); } .chip.st-terrain { color: var(--muted); } .chip.sky { color: var(--accent); }
.card { flex: 0 0 auto; padding: 12px 16px 14px; border-bottom: 2px solid var(--accent); overflow: auto; max-height: 66vh; background: #fbfdfd; }
.card h2 { font-size: 17px; margin: 0 22px 2px 0; line-height: 1.25; }
.card .close { float: right; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--muted); }
.card .sub { color: var(--muted); font-size: 12.5px; }
.card dl { display: grid; grid-template-columns: 92px 1fr; gap: 2px 10px; margin: 8px 0; font-size: 12.5px; }
.card dt { color: var(--muted); } .card dd { margin: 0; }
.status { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--wash); font-size: 13px; }
.status.warn { background: #fdecea; color: var(--warn); }
.status.ok { background: #e6f4ee; color: var(--ok); }
h3 { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.sugg { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.sugg li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 3px 4px; border-radius: 6px; font-size: 12.5px; }
.sugg li:hover { background: var(--wash); }
.num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.sugg small { color: var(--muted); display: block; }
.sugg button { border: 1px solid var(--edge); background: var(--panel); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.actions button { border: 1px solid var(--accent); background: var(--panel); color: var(--accent); border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: 13px; }
.actions button.main { background: var(--accent); color: #fff; }
.actions button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.actions button.quiet { border-color: var(--edge); color: var(--muted); font-weight: 500; }
.actions button:disabled { opacity: .45; cursor: not-allowed; }
textarea { width: 100%; min-height: 44px; border: 1px solid var(--edge); border-radius: 8px; padding: 6px 8px; font-size: 13px; margin-top: 8px; }
#stage { position: relative; flex: 1 1 auto; min-width: 0; }
#map { position: absolute; inset: 0; }
.hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 500; background: rgba(20, 35, 42, .86); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; pointer-events: none; max-width: calc(100% - 140px); text-align: center; }
.links { position: absolute; left: 12px; bottom: 26px; z-index: 500; display: flex; gap: 6px; flex-wrap: wrap; }
.links a { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: 5px 9px; color: var(--accent); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.numicon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 11px/1 var(--font); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.numicon.hot { background: var(--pin); }
.pinicon { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.pinicon.a { background: var(--a); } .pinicon.b { background: var(--b); } .pinicon.new { background: var(--pin); } .pinicon.ok { background: var(--ok); }
.pinlabel { position: absolute; left: 22px; top: -4px; transform: rotate(45deg); background: #fff; color: var(--ink); font: 700 11px/1.3 var(--font); padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.empty { padding: 16px; color: var(--muted); }
main.solo { display: block; padding: 40px; }
@media (max-width: 900px) { #panel { flex-basis: 340px; } }
