/* Daybook account + cross-device sync */
.sync-row {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  margin: -4px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.sync-row:hover { border-color: var(--ink-soft); }
.sync-cloud {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  flex: 0 0 auto;
  font-size: 17px;
}
.sync-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sync-copy strong {
  font-size: 14px;
  font-weight: 700;
}
.sync-copy small {
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-copy {
  margin: -7px 0 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}
.password-input-wrap {
  position: relative;
}
.password-input-wrap input {
  padding-right: 68px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  min-width: 56px;
  min-height: 36px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  touch-action: manipulation;
}
.password-toggle:hover {
  background: rgba(27, 42, 46, 0.06);
  color: var(--ink);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.account-message {
  min-height: 20px;
  margin: 3px 0 10px;
  color: var(--sage);
  font-size: 13px;
  line-height: 1.4;
}
.account-message.error { color: var(--brick); }
.account-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  margin-bottom: 14px;
}
.account-label {
  color: var(--ink-soft);
  font-size: 12px;
  margin-bottom: 4px;
}
.account-email {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-actions .btn-primary,
.account-actions .btn-ghost {
  min-height: 42px;
}
.account-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 390px) {
  .account-actions {
    flex-direction: column-reverse;
  }
  .account-actions button {
    width: 100%;
  }
}