* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4f8;
  color: #2d3748;
}

nav {
  background: #2b6cb0;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: background 0.2s;
}

nav a:hover { background: rgba(255,255,255,0.15); }
nav a.active { background: rgba(255,255,255,0.25); color: white; }

.page-content {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2b6cb0;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
}

input, select, textarea {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fafafa;
}

input:focus, select:focus, textarea:focus {
  border-color: #2b6cb0;
  background: white;
}

textarea { resize: vertical; min-height: 80px; }

/* Buttons */
.btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: #2b6cb0; color: white; }
.btn-success { background: #38a169; color: white; }
.btn-danger  { background: #e53e3e; color: white; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* Member list */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.member-card {
  background: #f7fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.member-card .name {
  font-weight: 700;
  font-size: 1rem;
  color: #2d3748;
}

.member-card .meta {
  font-size: 0.8rem;
  color: #718096;
}

.member-card .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Relation form */
.rel-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.5rem;
}

/* Relation list */
.rel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
}

.rel-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rel-parent  { background: #bee3f8; color: #2b6cb0; }
.rel-child   { background: #c6f6d5; color: #276749; }
.rel-spouse  { background: #fed7e2; color: #97266d; }
.rel-sibling { background: #fefcbf; color: #744210; }

/* Toast */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #2d3748;
  color: white;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  pointer-events: none;
}

#toast.show { opacity: 1; transform: translateY(0); }

/* Tree page */
#tree-container {
  width: 100%;
  height: calc(100vh - 60px);
  background: white;
  position: relative;
  overflow: hidden;
}

#tree-svg {
  width: 100%;
  height: 100%;
}

.tree-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.tree-controls .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* D3 nodes */
.person-node rect {
  rx: 10;
  ry: 10;
  fill: white;
  stroke: #2b6cb0;
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  cursor: pointer;
  transition: fill 0.2s;
}

.person-node rect:hover { fill: #ebf8ff; }
.person-node.female rect { stroke: #d53f8c; }
.person-node.deceased rect { stroke-dasharray: 6 3; }

.person-node text {
  font-family: 'Segoe UI', sans-serif;
  pointer-events: none;
}

.link-parent { stroke: #3182ce; stroke-width: 2; fill: none; }
.link-spouse  { stroke: #d53f8c; stroke-width: 2; fill: none; stroke-dasharray: 6 3; }

/* Info panel */
#info-panel {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 1.2rem;
  width: 240px;
  display: none;
  z-index: 10;
}

#info-panel.open { display: block; }
#info-panel .close-panel { float: right; background: none; border: none; cursor: pointer; font-size: 1.1rem; color: #718096; }
#info-panel h3 { font-size: 1rem; color: #2b6cb0; margin-bottom: 0.5rem; clear: both; }
#info-panel p { font-size: 0.82rem; color: #4a5568; margin-bottom: 0.25rem; }

.legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  color: #4a5568;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.legend-line {
  width: 28px;
  height: 3px;
  border-radius: 2px;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .rel-row { grid-template-columns: 1fr 1fr; }
}

/* Photos / avatars */
.avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ebf8ff;
  color: #2b6cb0;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #2b6cb0;
}
.avatar.female { background: #fff5f7; color: #d53f8c; border-color: #d53f8c; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 96px; height: 96px; font-size: 1.8rem; }

.member-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }

.photo-edit { display: flex; align-items: center; gap: 1rem; }
.photo-edit-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }

#info-panel .ip-photo {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.25rem 0 0.75rem;
  cursor: zoom-in;
}

/* Full-size photo viewer */
#photo-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}
#photo-viewer.open { display: flex; }
#photo-viewer img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

.node-initials { font-family: 'Segoe UI', sans-serif; pointer-events: none; }

/* Nav: signed-in user */
.nav-user { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.nav-user form { margin: 0; }
.nav-logout {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.nav-logout:hover { background: rgba(255,255,255,0.25); }
.role-badge {
  background: #f6e05e;
  color: #744210;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Flash messages */
.flash-area { max-width: 1100px; margin: 1rem auto 0; padding: 0 1.5rem; }
.flash {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #22543d;
}
.flash-error { background: #fff5f5; border-color: #feb2b2; color: #9b2c2c; }
.flash-warning { background: #fffaf0; border-color: #fbd38d; color: #7b341e; }

/* Login page */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .form-group { margin-bottom: 1rem; }
.auth-title { font-size: 1.4rem; color: #2b6cb0; margin-bottom: 1rem; text-align: center; }
.auth-submit { width: 100%; margin-top: 0.5rem; }
.auth-hint { margin-top: 1rem; font-size: 0.8rem; color: #718096; text-align: center; }

/* Account and settings */
.page-content.narrow { max-width: 520px; }
.page-content.narrow .form-group { margin-bottom: 1rem; }
.muted { color: #718096; font-size: 0.9rem; margin-bottom: 1rem; }
.inline-form { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.inline-form .grow { flex: 1; min-width: 200px; }
.checkbox { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; cursor: pointer; }
.checkbox input { width: auto; }
.btn-secondary { background: #e2e8f0; color: #2d3748; }

.user-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.user-table th, .user-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid #e2e8f0; }
.user-table th { color: #718096; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; }
.role-pill { padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.role-pill.admin { background: #fefcbf; color: #744210; }
.role-pill.viewer { background: #e2e8f0; color: #4a5568; }

/* Family profile card and settings extras */
.family-card h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.family-about { white-space: pre-line; color: #4a5568; line-height: 1.5; }
.or-divider { margin: 1rem 0 0.75rem; font-style: italic; }
.muted-cell { color: #a0aec0; font-style: italic; }
.subhead { font-size: 0.95rem; color: #4a5568; margin: 1.5rem 0 0.5rem; }
.login-create { display: flex; align-items: center; gap: 0.5rem; }
.checkbox.small { font-size: 0.8rem; color: #4a5568; }
code { background: #edf2f7; padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.85em; }

/* Shared page bits */
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.card-header h2 { margin-bottom: 0; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-title { font-size: 1.5rem; color: #2b6cb0; margin-bottom: 0.25rem; }
.page-header .muted { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 0.75rem; color: #2b6cb0; text-decoration: none; font-size: 0.9rem; }
.back-link:hover { text-decoration: underline; }
.page-content.wide { max-width: 1200px; }
.page-content.narrow-wide { max-width: 820px; }
a.btn { text-decoration: none; display: inline-block; }
.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-state p { color: #718096; margin-bottom: 1rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; border-width: 1.5px; }
.member-cell { display: flex; align-items: center; gap: 0.6rem; }
.page-content .form-group { margin-bottom: 1rem; }
.form-grid .form-group { margin-bottom: 0; }

/* Family profile */
.stat-row { display: flex; gap: 1rem; margin: 1.25rem 0 1rem; flex-wrap: wrap; }
.stat { background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.75rem 1.25rem; min-width: 110px; display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: #2b6cb0; }
.stat-label { font-size: 0.8rem; color: #718096; text-transform: uppercase; letter-spacing: 0.5px; }

/* Edit area with sidebar */
.edit-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.edit-sidebar { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 1rem; position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-back { font-size: 0.85rem; color: #718096; text-decoration: none; margin-bottom: 0.5rem; }
.sidebar-back:hover { color: #2b6cb0; }
.sidebar-title { font-size: 0.75rem; font-weight: 700; color: #a0aec0; text-transform: uppercase; letter-spacing: 0.5px; margin: 0.25rem 0 0.4rem; }
.sidebar-link { padding: 0.55rem 0.75rem; border-radius: 8px; color: #2d3748; text-decoration: none; font-weight: 500; }
.sidebar-link:hover { background: #edf2f7; }
.sidebar-link.active { background: #ebf8ff; color: #2b6cb0; font-weight: 700; }
.edit-main { min-width: 0; }
@media (max-width: 760px) {
  .edit-layout { grid-template-columns: 1fr; }
  .edit-sidebar { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar-title { display: none; }
}

/* Recipes */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.recipe-card { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.recipe-photo { height: 170px; background: #fefcbf; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-photo-empty { font-size: 3rem; }
.recipe-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.recipe-body h3 { font-size: 1.05rem; color: #2d3748; }
.recipe-desc { font-size: 0.88rem; color: #4a5568; line-height: 1.4; flex: 1; }
.recipe-meta { font-size: 0.8rem; color: #718096; }

.recipe-detail { padding: 0; overflow: hidden; }
.recipe-detail > *:not(.recipe-hero) { margin-left: 1.75rem; margin-right: 1.75rem; }
.recipe-detail > .card-header { margin-top: 1.5rem; }
.recipe-detail > *:last-child { margin-bottom: 1.75rem; }
.recipe-hero { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.recipe-title { font-size: 1.7rem; color: #2d3748; }
.recipe-byline { color: #718096; font-size: 0.9rem; margin-bottom: 0.5rem; }
.recipe-facts { display: flex; gap: 1.25rem; color: #4a5568; font-size: 0.9rem; margin-bottom: 0.75rem; }
.recipe-lead { font-size: 1.05rem; color: #4a5568; line-height: 1.5; margin: 0.5rem 0 1rem; }
.recipe-detail h2 { font-size: 1.1rem; color: #2b6cb0; margin: 1.25rem 0 0.6rem; }
.ingredient-list { padding-left: 1.25rem; line-height: 1.8; }
.step-list { padding-left: 1.4rem; line-height: 1.6; }
.step-list li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.recipe-thumb { display: block; max-width: 200px; border-radius: 8px; margin: 0.25rem 0 0.5rem; }

/* Tree: focus toolbar */
.tree-toolbar {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  padding: 0.5rem 0.75rem;
  z-index: 10;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 9rem);
}
.tb-label { font-weight: 700; color: #2b6cb0; font-size: 0.9rem; }
.tb-check { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; cursor: pointer; color: #4a5568; }

/* Tree: the logged-in user's card */
.person-node.me rect { stroke: #d69e2e; stroke-width: 3.5; fill: #fffff0; }
.person-node.me rect:hover { fill: #fefcbf; }
.me-badge { font-size: 9px; font-weight: 800; fill: #b7791f; letter-spacing: 0.5px; }
/* Tree: the person the view is centred on */
.person-node.focus:not(.me) rect { stroke-width: 3; filter: drop-shadow(0 0 6px rgba(49,130,206,0.45)); }

/* Tree: +/- buttons for parents and children */
.tree-toggle { cursor: pointer; }
.tree-toggle circle { fill: white; stroke: #3182ce; stroke-width: 1.5; }
.tree-toggle text { fill: #2b6cb0; font-size: 14px; font-weight: 700; font-family: 'Segoe UI', sans-serif; pointer-events: none; }
.tree-toggle:hover circle { fill: #3182ce; }
.tree-toggle:hover text { fill: white; }
.legend-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #3182ce; color: #2b6cb0; font-weight: 700; font-size: 11px;
  margin-right: 2px; background: white;
}

/* Nav brand links home */
.nav-brand { color: white !important; text-decoration: none; padding: 0 !important; background: none !important; font-size: inherit !important; }

/* Home page */
.home-page { min-height: 100vh; background: linear-gradient(160deg, #ebf8ff 0%, #f0f4f8 45%, #fffff0 100%); }
.home-hero { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; text-align: center; }
.home-brand { font-size: 1.1rem; font-weight: 700; color: #2b6cb0; margin-bottom: 1rem; }
.home-hero h1 { font-size: 2.2rem; color: #1a365d; line-height: 1.2; margin-bottom: 0.75rem; }
.home-hero p { color: #4a5568; font-size: 1.05rem; line-height: 1.5; }
.home-panels { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem 3rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: start; }
.home-card .form-group { margin-bottom: 0.9rem; }
.home-card .form-grid .form-group { margin-bottom: 0; }
.home-card .form-grid { margin-bottom: 1rem; }
@media (max-width: 760px) {
  .home-panels { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 1.7rem; }
}

/* Sign-up step 2 */
.onboarding-card { max-width: 460px; }
.onboarding-card .form-group { margin-bottom: 1rem; }
.steps { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; font-size: 0.8rem; }
.step { padding: 0.2rem 0.7rem; border-radius: 999px; background: #edf2f7; color: #718096; }
.step.done { background: #c6f6d5; color: #22543d; }
.step.current { background: #2b6cb0; color: white; font-weight: 600; }
.onboarding-logout { text-align: center; margin-top: 1rem; }
.link-button { background: none; border: none; color: #718096; cursor: pointer; font-size: 0.85rem; text-decoration: underline; }

/* Member profiles, phone numbers and emergency contacts */
[hidden] { display: none !important; }
.muted-inline { color: #718096; font-size: 0.85rem; font-weight: 400; }
.phone-input { display: flex; gap: 0.5rem; }
.phone-input select { flex: 0 0 45%; min-width: 0; }
.phone-input input { flex: 1; min-width: 0; }
.member-link { color: inherit; text-decoration: none; }
.member-link:hover .name { text-decoration: underline; }
.member-card.is-me { border-color: #d69e2e; box-shadow: 0 0 0 2px #faf089; }
.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.profile-head .grow { flex: 1; min-width: 180px; }
.profile-head h2 { margin-bottom: 0.2rem; }
.profile-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin-bottom: 0.75rem; }
.profile-facts dt { color: #718096; font-size: 0.9rem; }
.profile-facts dd { margin: 0; }
.profile-bio { white-space: pre-line; color: #4a5568; font-style: italic; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
                padding: 0.6rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 0.5rem; }
.contact-phone { font-size: 0.9rem; color: #2d3748; margin-top: 0.15rem; }
.contact-tag { font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 999px; margin-left: 0.35rem; vertical-align: middle; }
.contact-tag.family { background: #c6f6d5; color: #276749; }
.contact-tag.other { background: #e9d8fd; color: #553c9a; }
.contact-form { border-top: 1px solid #e2e8f0; padding-top: 1rem; }
.contact-form .form-grid { margin-bottom: 1rem; }
.contact-kind { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.small-note { font-size: 0.8rem; margin: 0.75rem 0 0; }

/* Invite and reset links */
.link-card { border: 2px solid #9ae6b4; }
.link-copy { display: flex; gap: 0.5rem; }
.link-copy input { flex: 1; min-width: 0; font-family: Consolas, 'Courier New', monospace; font-size: 0.85rem; }

/* Home page with sign-up turned off: one centred sign-in card */
.home-panels.single { grid-template-columns: minmax(0, 440px); justify-content: center; }
