:root {
  --ink: #183a34;
  --muted: #526963;
  --line: #cedbd2;
  --soft: #edf2eb;
  --paper: #fbfcf7;
  --green: #17584b;
  --orange: #b14b32;
  font-family:
    "Instrument Sans",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4vw;
  background: #122f2a;
  color: #fbfff5;
}
header b {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.mark {
  font: italic bold 25px Georgia;
  color: #e2ad70;
  border: 1px solid #9aaf93;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.bar {
  height: 20px;
  border-left: 1px solid #758c80;
}
#account {
  margin-left: auto;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
header button {
  color: #fff;
  border-color: #728980;
  background: transparent;
}
#shell {
  display: flex;
  min-height: calc(100vh - 68px);
}
nav {
  width: 220px;
  background: var(--soft);
  border-right: 1px solid var(--line);
  padding: 38px 20px;
  flex-shrink: 0;
}
nav button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  margin-bottom: 4px;
  font-weight: 550;
}
nav button.active {
  background: #d3e3d6;
  color: #123e32;
}
main {
  width: 100%;
  min-width: 0;
  max-width: 1420px;
  margin: 0 auto;
  padding: 42px clamp(18px, 4vw, 70px) 80px;
}
h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 15px;
}
h1 {
  font-size: clamp(32px, 4.4vw, 60px);
  letter-spacing: -0.045em;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin-top: 28px;
}
p {
  line-height: 1.6;
  white-space: pre-line;
  max-width: 80ch;
}
small,
.muted {
  color: var(--muted);
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  display: block;
  margin: 0 0 14px;
}
button,
a.btn {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover,
a.btn:hover {
  background: #dfebe1;
  color: var(--ink);
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 13px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid #a7bbae;
  border-radius: 5px;
  padding: 9px;
  background: white;
  color: var(--ink);
  font: inherit;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  margin-right: 8px;
}
textarea {
  min-height: 110px;
}
form {
  max-width: 690px;
}
.search {
  max-width: 540px;
  margin: 23px 0;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row select {
  width: auto;
  max-width: 100%;
}
.cardlist {
  border-top: 2px solid var(--ink);
  margin-top: 17px;
}
.entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.entry button.name {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0;
  font-size: 19px;
  font-weight: 650;
}
.entry small {
  display: block;
  margin-top: 4px;
}
.login {
  margin: 9vh auto;
  max-width: 440px;
}
.map {
  height: clamp(310px, 58vh, 750px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 14px 0;
  overflow: hidden;
  position: relative;
}
.map .djs-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.bjs-powered-by {
  z-index: 2;
}
.bjs-breadcrumbs {
  display: none;
}
.tablewrap {
  overflow: auto;
  max-height: 62vh;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  padding: 9px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #eaf1e9;
  position: sticky;
  top: 0;
}
.panel {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.back {
  margin-bottom: 22px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #522c22;
  color: white;
  padding: 13px 20px;
  border-radius: 5px;
  z-index: 10;
  max-width: 90vw;
}
.empty {
  padding: 24px 0;
  color: var(--muted);
}
a {
  color: var(--green);
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bc663e;
}
@media (max-width: 760px) {
  #shell {
    display: block;
  }
  nav {
    width: 100%;
    padding: 8px 12px;
    border: 0;
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    width: auto;
    margin: 0;
  }
  header {
    gap: 8px;
    padding: 12px;
  }
  header > span {
    display: none;
  }
  #account {
    font-size: 11px;
  }
  main {
    padding-top: 26px;
  }
  .entry {
    align-items: flex-start;
  }
  .map {
    height: 390px;
  }
}

/* Keep interaction targets transparent while preserving diagram geometry. */
.djs-element .djs-hit, .djs-element .djs-hit-all { fill: none; stroke: transparent; stroke-width: 15px; }
.djs-element .djs-hit-all { fill: transparent; }
.djs-outline, .djs-bendpoint, .djs-resizer { display: none; }
.djs-overlay-container { position: absolute; width: 0; height: 0; }
.djs-palette, .djs-context-pad { display: none; }
