*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden { display: none !important; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Toolbar ─────────────────────────────────────────────────────────── */

#toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  z-index: 10;
  flex-shrink: 0;
  min-height: 52px;
}

#tag-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.filter-label {
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  white-space: nowrap;
}

.tag-btn {
  padding: 4px 13px;
  border: 1.5px solid #d0d0d0;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  transition: all 0.12s;
  font-family: inherit;
  white-space: nowrap;
}

.tag-btn:hover { border-color: #888; color: #222; }
.tag-btn.active { background: #222; border-color: #222; color: #fff; }

/* Search input */

#search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

#search-input {
  padding: 6px 28px 6px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 150px;
  transition: border-color 0.12s, width 0.2s;
  color: #222;
  background: #fff;
}
#search-input:focus { border-color: #888; width: 190px; }
#search-input::placeholder { color: #ccc; }

#search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #aaa;
  line-height: 1;
  padding: 0 2px;
  border-radius: 50%;
  transition: color 0.12s;
}
#search-clear:hover { color: #333; }

/* Edit toggle button */

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

/* Hide the real checkbox */
.mode-switch input[type="checkbox"] { display: none; }

.mode-switch-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.02em;
}

.mode-switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  background: #d8d8d8;
  border-radius: 12px;
  transition: background 0.22s ease;
  flex-shrink: 0;
}

.mode-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
  transition: transform 0.22s ease;
}

/* Checked state: track darkens, thumb slides right */
.mode-switch input[type="checkbox"]:checked ~ .mode-switch-track {
  background: #1a1a1a;
}
.mode-switch input[type="checkbox"]:checked ~ .mode-switch-track .mode-switch-thumb {
  transform: translateX(18px);
}

#btn-edit-toggle {
  padding: 6px 14px;
  border: 1.5px solid #aaa;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  transition: all 0.12s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
#btn-edit-toggle:hover { border-color: #333; color: #333; }
#btn-edit-toggle.edit-active {
  background: #222;
  border-color: #222;
  color: #fff;
}

/* Actions group */

#actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
#actions.edit-hidden { display: none; }

#actions button {
  padding: 6px 12px;
  border: 1.5px solid #333;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  transition: all 0.12s;
  font-family: inherit;
  white-space: nowrap;
}
#actions button:hover { background: #333; color: #fff; }
#actions button:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ── Graph ───────────────────────────────────────────────────────────── */

#graph-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

#graph {
  width: 100%;
  height: 100%;
  cursor: grab;
  display: block;
}

#graph:active { cursor: grabbing; }

#empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #c0c0c0;
  font-size: 15px;
  line-height: 1.8;
  pointer-events: none;
  display: none;
}

/* ── Insights Panel ──────────────────────────────────────────────────── */

#insights-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 240px;
  background: rgba(255,255,255,0.97);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  z-index: 50;
  user-select: none;
}
#insights-panel.hidden { display: none; }

#insights-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

#insights-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

#insights-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -2px;
  transition: color 0.1s;
}
#insights-close:hover { color: #555; }

.ins-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  padding: 3px 0;
  color: #333;
}

.ins-label {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 1px;
}

.ins-value {
  color: #222;
  text-align: right;
  word-break: break-word;
}

.ins-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 0;
}

/* ── Modals ──────────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 26px 28px;
  width: min(420px, 92vw);
  max-height: 82vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.modal-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content select,
.login-card input[type="text"],
.login-card input[type="password"] {
  padding: 8px 11px;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s;
  color: #222;
  background: #fff;
  width: 100%;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="password"]:focus,
.modal-content select:focus,
.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus { border-color: #555; }

.modal-content input[type="text"]::placeholder,
.modal-content input[type="password"]::placeholder,
.login-card input::placeholder { color: #ccc; }

#r-crush-hint {
  font-size: 12px;
  color: #888;
  margin-top: -8px;
  margin-bottom: 8px;
  display: none;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.modal-actions-split { justify-content: space-between; }

.modal-actions button {
  padding: 8px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #555;
  transition: all 0.12s;
  font-family: inherit;
}

.modal-actions button:hover { opacity: 0.8; }
.btn-primary { background: #222 !important; border-color: #222 !important; color: #fff !important; }
.btn-danger { border-color: #e53935 !important; color: #e53935 !important; }

/* Tag checkboxes */

.tag-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
}

.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 4px 10px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.1s;
  color: #444;
  user-select: none;
}

.tag-check:has(input:checked) { border-color: #444; background: #f8f8f8; }
.tag-check input[type="checkbox"] { cursor: pointer; }

.tag-checks-empty {
  font-size: 12px;
  color: #bbb;
  padding: 2px 0;
}

/* Relation items */

#detail-relations {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.rel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #f9f9f9;
  border-radius: 6px;
  font-size: 13px;
  gap: 8px;
  color: #333;
}

.del-rel-btn {
  border: none;
  background: none;
  color: #d0d0d0;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.1s;
}

.del-rel-btn:hover { color: #e53935; }

/* Inline type selector inside relation list items */
.rel-type-select {
  padding: 3px 5px;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #555;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
}
.rel-type-select:focus { border-color: #888; }
.rel-type-select:hover { border-color: #aaa; }

.rel-dir-btn {
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: #555;
  padding: 3px 8px;
  font-family: inherit;
  transition: all 0.12s;
  flex-shrink: 0;
  outline: none;
}
.rel-dir-btn:hover { border-color: #888; color: #111; }
.rel-dir-btn.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.rel-dir-btn.active-secret { background: #6b7280; color: #fff; border-color: #6b7280; }

.rel-other-name {
  flex: 1;
  font-size: 13px;
  color: #333;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-rel-from-btn {
  margin-top: 6px;
  padding: 7px 12px;
  border: 1.5px dashed #d0d0d0;
  border-radius: 6px;
  background: none;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: all 0.12s;
  text-align: center;
}

.add-rel-from-btn:hover { border-color: #888; color: #444; }

.detail-sub {
  font-size: 13px;
  color: #bbb;
  margin-top: -14px;
  margin-bottom: 18px;
}

/* Tooltip */

.node-tooltip {
  position: fixed;
  background: rgba(20,20,20,0.85);
  color: #fff;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  pointer-events: none;
  z-index: 500;
  max-width: 230px;
  display: none;
}

/* ── Insights panel ──────────────────────────────────────────────────── */

#insights-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

#insights-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

#insights-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
  background: #eee;
}

#insights-subtitle {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Person search results ───────────────────────────────────────────── */

.search-results {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.search-results.hidden { display: none; }

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.1s;
}
.result-item:last-child { border-bottom: none; }
.result-item:hover { background: #f5f8ff; }

.result-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.result-info { flex: 1; min-width: 0; }
.result-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #1a1a1a;
}
.result-meta {
  font-size: 11.5px;
  color: #aaa;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: #bbb;
  text-align: center;
}
.result-spinner {
  padding: 12px;
  text-align: center;
  color: #ccc;
  font-size: 13px;
}

/* Selected EPFL person card */

.selected-person-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  margin-bottom: 6px;
  position: relative;
}
.selected-person-card .result-name { color: #1d4ed8; }
.selected-person-card .result-meta { color: #93c5fd; }

.clear-selected-btn {
  position: absolute;
  top: 5px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  color: #93c5fd;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.1s;
}
.clear-selected-btn:hover { color: #3b82f6; }

/* ── Person-mode tabs (Recherche EPFL / Ajout manuel) ────────────────── */

.p-mode-tabs {
  display: flex;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2px;
}

.p-tab {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: #999;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}

.p-tab:first-child { border-right: 1.5px solid #e0e0e0; }

.p-tab:hover:not(.p-tab-active) {
  background: #f5f5f5;
  color: #444;
}

.p-tab.p-tab-active {
  background: #1a1a1a;
  color: #fff;
}

/* optional label inside field-label */
.optional-label {
  font-weight: 400;
  color: #bbb;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}

/* ── Quick-relation panel (done state) ───────────────────────────────── */

.p-done-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}

.p-done-badge {
  font-size: 12px;
  font-weight: 500;
  color: #16a34a;
  margin-left: auto;
}

.p-done-hint {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

#p-quick-rels {
  max-height: 230px;
  overflow-y: auto;
}

.quick-rel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  border-bottom: 1px solid #f5f5f5;
}
.quick-rel-row:last-child { border-bottom: none; }

.quick-rel-name {
  flex: 1;
  font-size: 13px;
  color: #333;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-rel-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.quick-rel-btn {
  padding: 3px 8px;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  font-family: inherit;
  transition: all 0.1s;
  white-space: nowrap;
}
.quick-rel-btn:hover:not(:disabled) { background: #f5f5f5; border-color: #aaa; }
.quick-rel-btn:disabled { opacity: 0.45; cursor: default; }
.quick-rel-btn.done-peche         { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.quick-rel-btn.done-ambigue       { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.quick-rel-btn.done-problematique { background: #e53935; color: #fff; border-color: #e53935; }
.quick-rel-btn.done-crush         { background: #555;    color: #fff; border-color: #555;    }

/* ── Map navigation controls ─────────────────────────────────────────── */

#map-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 50;
}

#map-controls button {
  width: 32px;
  height: 32px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  background: rgba(255,255,255,0.96);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 0;
}

#map-controls button:hover {
  background: #fff;
  border-color: #888;
  color: #1a1a1a;
}

/* ── Editable person name in detail modal ────────────────────────────── */

#detail-name-fields {
  margin-bottom: 20px; /* matches h2 margin-bottom so detail-sub sits at the same distance */
}

.detail-name-row {
  display: flex;
  gap: 8px;
}

.detail-name-input {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: inherit;
  outline: none;
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
}

.detail-name-input:hover {
  border-color: #e0e0e0;
  background: #fafafa;
}

.detail-name-input:focus {
  border-color: #555;
  background: #fff;
}

/* ── Or divider ──────────────────────────────────────────────────────── */

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #ccc;
  font-size: 12px;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

/* ── Login page ──────────────────────────────────────────────────────── */

body.login-body {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.login-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 36px 32px 32px;
  width: min(380px, 92vw);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.login-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #aaa;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.login-error {
  font-size: 13px;
  color: #d00;
  margin-bottom: 10px;
}

.login-btn {
  width: 100%;
  padding: 10px 20px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 7px;
  border: 1.5px solid #222;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.12s;
}
.login-btn:hover { opacity: 0.85; }
.login-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Logout + Users buttons ──────────────────────────────────────────── */

#btn-logout, #btn-users, #btn-proposals, #btn-propose {
  padding: 6px 14px;
  border: 1.5px solid #aaa;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #555;
  transition: all 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
}
#btn-logout:hover, #btn-users:hover, #btn-proposals:hover, #btn-propose:hover { border-color: #333; color: #333; }
#btn-logout { margin-left: auto; }

/* ── User management modal ───────────────────────────────────────────── */

.users-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 4px; }
.users-table th { text-align: left; font-weight: 600; color: #888; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 0 8px 8px; }
.users-table td { padding: 7px 8px; border-top: 1px solid #f0f0f0; vertical-align: middle; }
.users-table tr:first-child td { border-top: none; }

.role-badge {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em;
}
.role-badge.admin  { background: #1a1a1a; color: #fff; }
.role-badge.viewer { background: #f0f0f0; color: #555; }

.user-actions { display: flex; gap: 5px; }
.user-action-btn {
  border: 1.5px solid #e0e0e0; border-radius: 5px; background: #fff;
  cursor: pointer; font-size: 11px; color: #555; padding: 3px 7px;
}
.user-action-btn:hover { border-color: #888; color: #111; }
.user-action-btn.danger:hover { border-color: #d00; color: #d00; }

.users-add-section {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee;
}
.users-add-section h3 {
  font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px;
}

.inline-pw-form {
  display: flex; gap: 6px; align-items: center; margin-top: 6px;
}
.inline-pw-form input {
  flex: 1;
  font-size: 13px;
  padding: 6px 10px;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  font-family: inherit;
  outline: none;
  color: #222;
  background: #fff;
  transition: border-color 0.12s;
  width: 0; /* flex takes over */
}
.inline-pw-form input:focus { border-color: #555; }

/* ── Proposals ───────────────────────────────────────────────────────── */

.prop-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #e53935; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 10px; min-width: 16px; height: 16px; padding: 0 4px;
  margin-left: 5px; vertical-align: middle; line-height: 1;
}

.prop-textarea {
  width: 100%; resize: vertical; font-size: 13px; padding: 8px 10px;
  border: 1.5px solid #e0e0e0; border-radius: 8px; font-family: inherit;
  outline: none; color: #222; background: #fff; transition: border-color 0.12s;
  box-sizing: border-box;
}
.prop-textarea:focus { border-color: #555; }

.prop-success {
  text-align: center; color: #16a34a; font-size: 13px;
  font-weight: 500; padding: 4px 0;
}

.prop-card {
  border: 1.5px solid #e8e8e8; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; background: #fff;
  transition: border-color 0.12s;
}
.prop-card.prop-s-pending  { border-color: #e8e8e8; }
.prop-card.prop-s-accepted { background: #f0fdf4; border-color: #bbf7d0; }
.prop-card.prop-s-rejected { background: #fafafa; border-color: #e5e5e5; opacity: 0.7; }

.prop-card-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.prop-type-badge {
  font-size: 11px; font-weight: 600; color: #555;
  background: #f3f3f3; border-radius: 5px; padding: 2px 7px;
}
.prop-status-pill {
  font-size: 11px; font-weight: 600; border-radius: 5px; padding: 2px 7px;
}
.prop-status-pill.prop-s-pending  { background: #fef9c3; color: #854d0e; }
.prop-status-pill.prop-s-accepted { background: #dcfce7; color: #166534; }
.prop-status-pill.prop-s-rejected { background: #f3f3f3; color: #888; }

.prop-card-label {
  font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px;
}
.prop-card-warn {
  font-size: 12px; color: #b45309; margin-bottom: 4px;
}
.prop-card-note {
  font-size: 12px; color: #666; font-style: italic; margin-bottom: 4px;
}
.prop-card-meta {
  font-size: 11px; color: #aaa; margin-bottom: 8px;
}
.prop-card-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.prop-action-btn {
  padding: 5px 12px; border: 1.5px solid #e0e0e0; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 12px; font-weight: 500;
  font-family: inherit; color: #444; transition: all 0.12s;
}
.prop-action-btn:hover { border-color: #888; color: #111; }
.prop-action-btn:disabled { opacity: 0.5; cursor: default; }
.prop-delete-btn:hover { border-color: #e53935; color: #e53935; }

.prop-hidden-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: #444;
}
.prop-hidden-label input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.prop-hidden-hint {
  font-size: 12px; color: #aaa; margin-top: 4px; line-height: 1.4;
}

.prop-new-person-section {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f9f9f9;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
}
.prop-new-person-section input[type="text"] {
  width: 100%; font-size: 13px; padding: 8px 10px;
  border: 1.5px solid #e0e0e0; border-radius: 8px;
  font-family: inherit; outline: none; color: #222; background: #fff;
  transition: border-color 0.12s; box-sizing: border-box;
}
.prop-new-person-section input[type="text"]:focus { border-color: #555; }

