:root {
  --navy: #1c2f57;
  --navy-soft: #445883;
  --ink: #1c2f57;
  --muted: #5b6b85;
  --line: #dfe4ee;
  --bg: #f7f6f3;
  --surface: #ffffff;

  --coral: #e2775f;
  --coral-bg: #fdf1ee;
  --coral-line: #f4d3c9;

  --green: #6f9a6a;
  --green-bg: #eef5ec;
  --green-line: #cfe3c9;

  --blue: #7f92b0;
  --blue-bg: #eef1f7;
  --blue-line: #d7deea;

  --gold: #e0ae4c;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
html { overflow-x: hidden; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--navy);
  margin: 0;
}

.script {
  font-family: 'Caveat', cursive;
}

a { color: var(--navy); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* ---------- header ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 0 22px;
}

.masthead .title-block h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.masthead .kicker {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.masthead .kicker span { margin: 0 8px; color: var(--coral); }

.banner-quote {
  align-self: center;
  background: linear-gradient(100deg, var(--blue-bg), var(--coral-bg));
  border-radius: 999px 999px 999px 4px;
  padding: 14px 26px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.15;
  white-space: nowrap;
}

.event-box {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  min-width: 200px;
}

.event-box strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.event-box .tags {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
  letter-spacing: 0.14em;
  font-weight: 600;
  white-space: nowrap;
}
.event-box .tags span { color: var(--coral); margin: 0 2px; }

/* ---------- lens strip ---------- */

.lens-panel {
  background: var(--blue-bg);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.lens-panel .lens-label {
  flex: 0 0 150px;
  font-weight: 700;
  color: var(--navy);
}
.lens-panel .lens-label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

.lens-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: 1;
}

.lens-option { position: relative; }
.lens-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }

.lens-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 116px;
  min-height: 128px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: var(--surface);
  text-align: center;
  transition: border-color .15s ease, transform .15s ease;
}

.lens-option input:checked + .lens-card {
  border-color: var(--lens-color, var(--coral));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px rgba(28,47,87,.35);
}
.lens-option input:focus-visible + .lens-card { outline: 2px solid var(--navy); outline-offset: 2px; }

.lens-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lens-color, var(--coral));
  color: #fff;
}
.lens-icon svg { width: 24px; height: 24px; }

.lens-card .lens-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

/* ---------- identity fields ---------- */

.identity-panel {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--muted); }

.field input[type=text],
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
}
.field input[type=text]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-soft);
}

/* ---------- section blocks ---------- */

.section {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.section.tone-coral { background: var(--coral-bg); }
.section.tone-green { background: var(--green-bg); }
.section.tone-blue  { background: var(--blue-bg); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head .heading { display: flex; gap: 14px; align-items: flex-start; }

.badge {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px;
  display: grid; place-items: center;
}
.tone-coral .badge { background: var(--coral); }
.tone-green .badge { background: var(--green); }
.tone-blue  .badge { background: var(--blue); }

.section-head h2 { font-size: 20px; font-weight: 700; }
.section-head p.lede { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.section-prompt {
  margin-left: auto;
  text-align: right;
  font-family: 'Caveat', cursive;
  font-size: 19px;
  color: var(--navy-soft);
  line-height: 1.2;
  max-width: 230px;
}
.section-prompt svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }

.obs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.obs-card {
  background: var(--surface);
  border: 1.5px dashed var(--coral-line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.obs-card .obs-num {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--coral);
  font-size: 13px;
  margin-bottom: 10px;
}
.obs-card .obs-num svg { width: 18px; height: 18px; }

.photo-drop {
  border: 1.5px dashed var(--coral-line);
  border-radius: var(--radius-sm);
  background: #fffaf8;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.photo-drop .placeholder { padding: 14px; }
.photo-drop .placeholder strong { display:block; color: var(--coral); font-size: 13px; margin-bottom: 2px; }

.obs-card textarea {
  width: 100%;
  min-height: 70px;
  border: 1.5px solid var(--coral-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
}
.obs-card textarea:focus { outline: none; border-color: var(--coral); }

.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.opp-card {
  background: var(--surface);
  border: 1.5px dashed var(--green-line);
  border-radius: var(--radius-md);
  padding: 16px;
}
.opp-card .opp-num {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--green); font-size: 13px; margin-bottom: 10px;
}
.opp-card .opp-num svg { width: 18px; height: 18px; }
.opp-card textarea {
  width: 100%; min-height: 90px;
  border: 1.5px solid var(--green-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; background:#fff;
}
.opp-card textarea:focus { outline: none; border-color: var(--green); }
.opp-card input[type=text] {
  width: 100%;
  border: 1.5px solid var(--green-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.opp-card input[type=text]:focus { outline: none; border-color: var(--green); }
.opp-card select {
  width: 100%;
  border: 1.5px solid var(--green-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.opp-card select:focus { outline: none; border-color: var(--green); }

.question-box {
  background: var(--surface);
  border: 1.5px dashed var(--blue-line);
  border-radius: var(--radius-md);
  padding: 16px;
}
.question-box textarea {
  width: 100%; min-height: 90px;
  border: 1.5px solid var(--blue-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; background:#fff;
}
.question-box textarea:focus { outline: none; border-color: var(--blue); }

/* ---------- submit ---------- */

.submit-row {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

button.primary, a.primary {
  appearance: none;
  border: none;
  background: var(--navy);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
button.primary:hover, a.primary:hover { background: var(--navy-soft); }

.submit-note { font-size: 13px; color: var(--muted); max-width: 46ch; text-wrap: balance; }

.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 47, 87, 0.55);
  backdrop-filter: blur(2px);
  animation: overlay-in 0.25s ease;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.success-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px -12px rgba(28, 47, 87, 0.45);
  animation: card-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-check {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-check svg { width: 32px; height: 32px; flex-shrink: 0; }

.success-card h2 { font-size: 22px; margin-bottom: 8px; }
.success-card p { color: var(--muted); margin: 0 0 22px; }
.success-card .primary { width: 100%; justify-content: center; }

.error-banner {
  margin-top: 18px;
  background: #fdeceb;
  border: 1px solid #f3c4bf;
  color: #7a2118;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-weight: 600;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer img { height: 46px; width: auto; display: block; }
.site-footer .host-city {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.site-footer .host-city span { display:block; color: var(--navy); font-size: 13px; letter-spacing: 0.04em; }
.host-city-logo {
  display: block;
  margin: 10px auto 0;
  height: 44px;
  width: auto;
}

.dashboard-link {
  text-align: center;
  margin-top: 30px;
  font-size: 12.5px;
}
.dashboard-link a { color: var(--muted); text-decoration: underline; }

/* ---------- dashboard ---------- */

.pin-shell {
  max-width: 380px;
  margin: 12vh auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.pin-shell h1 { font-size: 20px; margin-bottom: 6px; }
.pin-shell p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.pin-shell input[type=password] {
  width: 100%;
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 18px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  margin-bottom: 14px;
}

.dash-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
  text-align: center;
}
.dash-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-top h1 { font-size: 24px; }
.dash-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--navy-soft); }

.filter-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-row a {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}
.filter-row a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.stats-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 130px;
}
.stat-tile .num { font-family:'Sora',sans-serif; font-size: 26px; font-weight:700; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-tile .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

.entry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.entry-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.entry-who strong { color: var(--navy); font-size: 15px; }
.entry-who span { display:block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
}
.entry-actions { display: flex; align-items: center; gap: 10px; }
.btn-delete {
  appearance: none;
  border: none;
  background: #b3413a;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-delete:hover { background: #963428; }
.entry-observations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.entry-opportunities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.entry-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}
.entry-block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.entry-block img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 8px; display:block; }
.entry-block p { margin: 0; font-size: 13.5px; color: var(--ink); white-space: pre-wrap; }
.entry-block p.empty { color: #b7bfce; font-style: italic; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ---------- stakeholder → ally canvas ---------- */

.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.stakeholder-card {
  background: var(--surface);
  border: 1.5px dashed var(--coral-line);
  border-radius: var(--radius-md);
  padding: 16px;
}
.stakeholder-card .stakeholder-num {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--coral);
  font-size: 13px;
  margin-bottom: 12px;
}
.stakeholder-num svg { width: 18px; height: 18px; flex-shrink: 0;
}
.stakeholder-field { margin-bottom: 10px; }
.stakeholder-field:last-child { margin-bottom: 0; }
.stakeholder-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.stakeholder-field .hint2 {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.stakeholder-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--coral-line);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  background: #fff;
}
.stakeholder-field textarea:focus { outline: none; border-color: var(--coral); }

.priority-box {
  background: #fdf6e8;
  border: 1.5px dashed #ecd39b;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 22px;
}
.priority-box textarea {
  width: 100%;
  min-height: 70px;
  border: 1.5px solid #ecd39b;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
}
.priority-box textarea:focus { outline: none; border-color: var(--gold); }

.entry-stakeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.stakeholder-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}
.stakeholder-summary h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--coral);
  margin: 0 0 10px;
}
.stakeholder-summary dt {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-top: 8px;
}
.stakeholder-summary dt:first-child { margin-top: 0; }
.stakeholder-summary dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink);
  white-space: pre-wrap;
}
.stakeholder-summary dd.empty { color: #b7bfce; font-style: italic; }

.priority-block { border-left: 3px solid var(--gold); }

/* ---------- learning harvest table ---------- */

.harvest-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
table.harvest-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.harvest-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.harvest-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.harvest-table tr:last-child td { border-bottom: none; }
.harvest-table td.city { font-weight: 700; color: var(--navy); white-space: nowrap; }
.harvest-table td.empty-cell { color: #b7bfce; font-style: italic; }
.harvest-table td.meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.harvest-table .btn-delete { white-space: nowrap; }

/* ---------- refining an action ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.detail-field {
  background: var(--surface);
  border: 1.5px solid var(--blue-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.detail-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.detail-field textarea {
  width: 100%;
  min-height: 64px;
  border: 1.5px solid var(--blue-line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
  background: #fff;
}
.detail-field textarea:focus { outline: none; border-color: var(--blue); }
.detail-field input[type=text] {
  width: 100%;
  border: 1.5px solid var(--blue-line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
  background: #fff;
}
.detail-field input[type=text]:focus { outline: none; border-color: var(--blue); }

.editable-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
table.editable-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.editable-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 10px 10px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.editable-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.editable-table tr:last-child td { border-bottom: none; }
.editable-table td.row-num { font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; }
.editable-table input[type=text] {
  width: 100%;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}
.editable-table input[type=text]:focus { outline: none; border-color: var(--blue); }
.editable-table td.empty-cell { color: #b7bfce; font-style: italic; }
.editable-table td.meta { font-size: 11px; color: var(--muted); white-space: nowrap; }

.instructions-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--coral);
  border: 1.5px solid var(--coral-line);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 14px;
}
.instructions-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.instructions-btn:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.instructions-btn.good { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.instructions-btn.good:hover { background: var(--green); color: #fff; border-color: var(--green); }

.instructions-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(28, 47, 87, 0.78);
  backdrop-filter: blur(2px);
}
.instructions-overlay.open { display: flex; }
.instructions-overlay-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.instructions-overlay img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  display: block;
}
.instructions-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  z-index: 201;
}
@media (max-width: 640px) {
  .instructions-overlay { padding: 20px 12px; }
  .instructions-close { top: 12px; right: 12px; width: 36px; height: 36px; }
}

@media (max-width: 640px) {
  .wrap { padding: 16px 16px 48px; }

  .masthead { flex-direction: column; align-items: center; gap: 16px; padding: 20px 0 16px; text-align: center; }
  .masthead .title-block { width: 100%; }
  .event-box { text-align: center; width: 100%; }
  .event-box .tags { display: inline-block; }
  .banner-quote { white-space: normal; font-size: 22px; padding: 12px 18px; }
  .site-footer { flex-direction: column; align-items: center; }
  .site-footer .host-city { text-align: center; }

  .lens-panel { flex-direction: column; padding: 18px; gap: 14px; }
  .lens-panel .lens-label { flex: none; width: 100%; }
  .lens-options { width: 100%; gap: 10px; }
  .lens-option { width: calc(50% - 5px); }
  .lens-card { width: 100%; }

  .identity-panel { padding: 16px; }

  .section { padding: 18px 16px; }
  .section-head { flex-direction: column; align-items: center; text-align: center; }
  .section-head .heading { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .section-prompt { text-align: center; margin-left: 0; max-width: none; }

  .obs-grid, .opp-grid, .entry-observations, .entry-opportunities { grid-template-columns: 1fr; }
  .stakeholder-grid, .entry-stakeholders { grid-template-columns: 1fr; }

  .submit-row { flex-direction: column; align-items: stretch; }
  button.primary, a.primary { justify-content: center; }

  .dash-top { flex-direction: column; align-items: stretch; }
  .dash-actions { justify-content: stretch; }
  .dash-actions .btn-ghost { flex: 1; text-align: center; }

  .pin-shell { margin: 18vh 0; padding: 24px; }
}

@media (max-width: 760px) and (min-width: 641px) {
  .entry-observations { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .lens-option { width: 100%; }
  .lens-card { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 0; }
  .lens-icon { flex: none; }
}
