/* SHARE PAGE */
.share-page { padding: 0; }
.share-card { background: white; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid rgba(200,216,232,0.5); margin-bottom: 12px; }
.share-link { 
  background: var(--paper); border-radius: 10px; padding: 10px 12px;
  font-size: 12px; color: var(--green); word-break: break-all;
  border: 1px solid var(--paper2); margin-bottom: 10px;
}
.share-btn { 
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: white; border: none;
  padding: 12px 16px; border-radius: 12px; width: 100%;
  font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
  margin-bottom: 8px; transition: opacity 0.15s;
}
.share-btn:active { opacity: 0.85; }
.share-btn.secondary { background: var(--paper2); color: var(--ink); }
#member-list { display: flex; flex-direction: column; gap: 10px; }
.member-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px 12px;
  padding: 10px; border: 1px solid var(--paper2); border-radius: 14px;
  background: rgba(255,255,255,0.72); box-shadow: 0 4px 12px rgba(60,45,30,0.06);
}
.member-avatar {
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0; position: relative;
  border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 4px 10px rgba(40,28,18,0.14);
}
.member-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.member-avatar-fallback { position: relative; z-index: 0; }
.member-info { min-width: 0; align-self: end; }
.member-name {
  font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: keep-all;
}
.member-role {
  font-size: 11px; color: var(--ink3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: keep-all;
}
.member-actions {
  grid-column: 2; display: flex; align-items: center; justify-content:flex-start;
  gap: 6px; flex-wrap:nowrap; min-width: 0;
}
.member-avatar-btn {
  background: var(--paper); border: 1px solid var(--paper2); color: var(--ink2);
  min-height: 30px; padding: 0 9px; border-radius: 999px; font-size: 12px;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.member-avatar-btn:active { transform: scale(0.96); }
.member-remove {
  background: var(--paper); border: 1px solid var(--paper2); color: var(--ink3);
  width: 32px; height: 32px; border-radius: 50%; font-size: 17px;
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}
.member-remove:active { transform: scale(0.96); }

/* ADJUST MODAL */
.adjust-form { display: flex; flex-direction: column; gap: 10px; }
.form-label { font-size: 12px; color: var(--ink3); font-weight: 600; margin-bottom: 4px; letter-spacing: 0.02em; }
.form-input { 
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--paper2); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--paper); outline: none;
  color: var(--ink); transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-textarea { resize: none; height: 80px; }
.submit-btn { 
  background: var(--accent); color: white; border: none; border-radius: 12px;
  padding: 13px; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: opacity 0.15s; margin-top: 4px;
}
.submit-btn:active { opacity: 0.85; }

/* TOAST */
.toast {
  position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: white; padding: 10px 18px; border-radius: 99px;
  font-size: 13px; white-space: nowrap; z-index: 200;
  opacity: 0; transition: all 0.3s; pointer-events: none;
  box-shadow: 0 4px 16px rgba(15,25,35,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* PDF EXPORT BTN */
.export-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: white; border: none;
  padding: 13px 16px; border-radius: 12px; width: 100%;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  margin-top: 12px; transition: opacity 0.15s; justify-content: center;
}
.export-btn:active { opacity: 0.85; }

/* SECTION LABEL */
.section-label { font-size: 11px; font-weight: 700; color: var(--ink3); letter-spacing: 0.08em; text-transform: uppercase; margin: 14px 0 8px; }

/* Loading spinner */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

