/* ---------- Account & sharing ---------- */

.modal-sm { max-width: 400px; }

.modal-hint,
.share-hint {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 14px;
}

.auth-error {
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 10px;
}

.auth-forgot {
  margin: -6px 0 10px;
  text-align: right;
  font-size: 12.5px;
}
.auth-forgot a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}
.auth-forgot a:hover { color: var(--accent); text-decoration: underline; }
.auth-forgot[hidden] { display: none; }

.auth-toggle {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.auth-toggle a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.auth-toggle a:hover { text-decoration: underline; }

.settings-section { margin: 0; }
.settings-section .field { margin-bottom: 10px; }

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-actions .primary {
  padding: 8px 16px;
  font-size: 13px;
}

.share-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.share-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  outline: none;
}

.share-row input:focus { border-color: var(--accent); }

.share-sub {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
}

.share-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 16px 0 14px;
}

.collab-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.collab-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
}

.collab-list li:last-child { border-bottom: none; }

.collab-email {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collab-email small { font-weight: 600; color: var(--ink-soft); }

/* Friend-row action cluster (accept / make editor / remove). */
.friend-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.friend-actions small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.mini-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 4px 9px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

