:root {
  font-family: system-ui, sans-serif;
  color: #172522;
  background: #f3f7f6;
  line-height: 1.55;
  --ink: #172522;
  --muted: #4f625c;
  --accent: #12624f;
  --border: #d7e3df;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
p, h1, h2, dl, dd { margin: 0; }
h1 { font-size: clamp(1.85rem, 5vw, 2.55rem); line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: 1.2rem; line-height: 1.25; }
button, input { font: inherit; }
button, .button {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: 1px solid transparent;
  border-radius: .55rem;
  padding: .55rem .9rem;
  min-height: 44px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { filter: brightness(.93); }
.secondary { background: white; border-color: var(--border); color: var(--accent); }
.danger { color: #9c302c; }
:focus-visible { outline: 3px solid #298975; outline-offset: 3px; }
input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: .5rem .7rem;
  border: 1px solid #9cb0a9;
  border-radius: .5rem;
  color: var(--ink);
  background: #fff;
}
label { display: grid; gap: .25rem; font-weight: 600; }
.wrap { width: min(calc(100% - 2rem), 66rem); margin-inline: auto; }
main.wrap { padding-block: 2.5rem; }
.top { background: white; border-bottom: 1px solid var(--border); padding-block: .65rem; }
.brand { color: var(--accent); text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.stack { display: grid; gap: 1.1rem; }
.heading p { margin-top: .4rem; }
.muted { color: var(--muted); }
.panel { background: white; border: 1px solid var(--border); border-radius: .85rem; padding: clamp(1rem, 3vw, 1.6rem); }
.focused { display: grid; min-height: 100svh; place-items: center; padding: 1rem; }
.focused .panel { width: min(100%, 30rem); padding: clamp(1.3rem, 5vw, 2.2rem); }
.focused h1 { margin-block: .65rem .8rem; }
.focused p + p { margin-top: .85rem; }
.focused form, .focused #share-actions { margin-top: 1.35rem; gap: .65rem; }
.message { background: #e7f5ef; color: #164b39; padding: .65rem .8rem; border-radius: .5rem; }
.focused .message { margin-top: 1rem; }
.error { background: #fcefed; color: #8e2b25; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.stats .panel { display: grid; gap: .2rem; color: var(--muted); }
.stats strong { color: var(--ink); font-size: 1.8rem; line-height: 1.2; }
.badge { display: inline-block; border-radius: 2rem; padding: .15rem .6rem; font-size: .875rem; font-weight: 650; background: #eef1ef; color: #465951; }
.badge.pending { background: #fff3d9; color: #73510a; }
.badge.captured { background: #e2f3e8; color: #175b3d; }
.badge.revoked { background: #fcefed; color: #8e2b25; }
.copy-row { display: flex; align-items: center; gap: .5rem; }
.copy-row button { flex-shrink: 0; }
.section-title { margin-bottom: .65rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: .65rem .65rem .65rem 0; white-space: nowrap; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: .875rem; }
.session-id { display: block; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; }
.session-full { overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: .8rem 2rem; }
.facts dt { color: var(--muted); font-size: .875rem; }
.facts dd { overflow-wrap: anywhere; }
#map { min-height: 21rem; border-radius: .55rem; background: #e8eeec; }
@media (max-width: 660px) {
  main.wrap { padding-block: 1.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  #map { min-height: 16rem; }
}

.reflections { background: #fbf4e9; }
.reflections .reflection-panel {
  width: min(100%, 35rem);
  border-color: #ead8c2;
}
.reflections .brand { color: #964119; }
.reflection-art { margin: 0 0 .8rem; }
.reflection-art img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #f3e7d7;
  border-radius: .6rem;
}
.reflection-art figcaption {
  margin-top: .3rem;
  font-size: .875rem;
  text-align: right;
}
.reflection-text {
  display: grid;
  align-items: center;
  min-height: 9.5rem;
  padding: 1rem;
  background: #fcf3e7;
  border-radius: .6rem;
  font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  line-height: 1.7;
}
.reflection-nav { margin-top: 1.25rem; }
.reflection-nav button { min-width: 6.25rem; }
